Chris

Forum Replies Created

Viewing 15 posts - 646 through 660 (of 1,120 total)
  • Author
    Posts
  • in reply to: mashup_thumbnails in widget #13288
    Chris
    Keymaster

      The shortcode parameters are in the documentation. That one isn’t included – no one has asked about turning off thumbnails for a single map before.

      in reply to: mashup_thumbnails in widget #13283
      Chris
      Keymaster

        Hi,

        Try this, I think it’ll work:

        thumbs=”false”

        in reply to: Custom mashup query on search page #13257
        Chris
        Keymaster

          I don’t know if understand the problem – is it that you want to see an empty map when there are no matching posts for the query?

          It would help you if you could email me with a login to your (test) blog along with an example, so I can see it.

          in reply to: Custom mashup query on search page #13254
          Chris
          Keymaster

            Hi,

            Try removing the do_shortcode() call and see what wp_query would fetch by itself instead – it may just be a query issue:

            <?php 
              $wpq = new WP_Query("post__in=" . $result . "&post_type=restaurant");
              print_r($wpq);
            ?>
            in reply to: Important -> Why Is v2.40.7 So Resource Intensive???? #13253
            Chris
            Keymaster

              Hi Clive,

              Sorry, but I can’t tell anything from those statistics. There weren’t any major changes between those versions.

              If you’d like to put your page back up and provide a URL I’ll take a quick look.

              You may want to try using developer tools (such as Firebug) yourself to see what’s being loaded rather than just a summary. MapPress itself uses only 1 javascript file and a CSS file. The Google API fetches various map tiles based on what location(s) are mapped, the map type, etc.

              in reply to: mappress in widget #13248
              Chris
              Keymaster

                Hi,

                I’d like to help, but I didn’t understand. What’s a page builder row?

                Are you talking about the widget that’s available for the theme sidebar? Or are you using the shortcode?

                in reply to: Import a list of POI #13247
                Chris
                Keymaster

                  Hi Nick,

                  Yes it’s possible. You’ll need to create one post per location (you can combine the posts into a single map with a mashup). Then you can import the posts or overwrite them with TurboCSV or a similar importer.

                  You can configure custom fields in MapPress for the title, iconid, and content. For the image I’d suggest just using the post featured image.

                  in reply to: Pre filled route / directions #13207
                  Chris
                  Keymaster

                    Hi,

                    With the initialopendirections option, you can open the directions and specify the “to” location as a number (0 is the first POI, 1 is the second, etc.):

                    [mappress initialopendirections="0"]

                    If you want *both* locations filled in it’s trickier:

                    1) Modify the directions.php template and enter the default addresses in the input form, then use initialopendirections=”true” to open the directions when the map is displayed. This will still require the user to click the ‘get directions’ button and it’ll always use the same 2 locations.

                    2) Use javascript:

                    // Open directions between two addresses:
                    mapp0.openDirections("first address", "second address");
                    
                    // Open directions between two pois:
                    mapp0.openDirections(0, 1);
                    
                    // Click the 'directions' button to get the route:
                    jQuery('mapp-dir-get', 'mapp0_directions').click();
                    

                    Note: each map has a name – “mapp0” is the default for the first map on the page. You can override the name using the “name” option in the shortcode:

                    in reply to: Mashup displays 1st post alpahabetically #13195
                    Chris
                    Keymaster

                      Hi,

                      I’m not sure I understood, but this may help: you can turn off the initial infowindow (the bubble). It’s usually off by default unless you have initialopeninfo=”true” in the shortcode.

                      If you want to leave the infowindow on, you can still sort the POIs by date. Turn off the MapPress alphabetical sorting with sort=”false”. Then WP should sort by post date (by default), or you can use one of the other sorts here:

                      http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

                      in reply to: Ajax error #13190
                      Chris
                      Keymaster

                        Hi,

                        Usually, AJAX Errors are caused by other plugins or the theme, not by MapPress.

                        Try deactivating your other plugins and switching to the standard 2012 or 2013 theme. There are some other tips in the FAQ:
                        http://mappresspro.com/mappress-faq

                        If that doesn’t help you can send me a login and I’ll trace it for you.

                        in reply to: Set the order of the POIs #13176
                        Chris
                        Keymaster

                          Hi, you can turn off the default sorting with sort=”false” in the shortcode:
                          [mappress sort="false"]

                          in reply to: multiple mashups #13173
                          Chris
                          Keymaster

                            Hi,

                            The first example should be using the category slug, so just double check you have a slug “nsw”.

                            In the second, “category” isn’t valid, you need to use “cat”:
                            [mashup query="posts_per_Page=-1&cat=7"]

                            See here for some examples:
                            http://codex.wordpress.org/Class_Reference/WP_Query

                            You can also put a little code in your theme to see what WordPress would output for a query – without using a map:

                            <?php
                              $query = new WP_Query( 'cat=7' );
                              print_r($query->posts);
                            ?>
                            in reply to: Export/Import #13172
                            Chris
                            Keymaster

                              The plugin has its own database tables ‘mappress_maps’ and ‘mappress_posts’. You’ll need to do a database copy (either the whole database or those tables).

                              If you’ve changed post ID numbers, you’ll also need to update the ‘mappress_posts’ table with the new post IDs.

                              in reply to: multiple mashups #13162
                              Chris
                              Keymaster

                                It would help if you posted the query or queries that don’t work for you so I can see if there’s a formatting error.

                                in reply to: Ajax error #13135
                                Chris
                                Keymaster

                                  Hi,

                                  You can definitely increase memory.

                                  The wp-config settings are here:
                                  http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

                                  The php.ini setting is usually “memory_limit”, for example:
                                  memory_limit = 64M

                                Viewing 15 posts - 646 through 660 (of 1,120 total)