Chris

Forum Replies Created

Viewing 15 posts - 706 through 720 (of 1,120 total)
  • Author
    Posts
  • in reply to: How to: Import 100 POIs to 1 Map using TurboCSV #12797
    Chris
    Keymaster

      Hi,

      You can’t import a single map; instead you import 100 separate posts, each with one location, and then display them all using a single ‘mashup’ map. Try assigning the posts to one or more special categories or tags to make it easy to locate the posts to display.

      in reply to: POI Styling Changed in Upgrade #12796
      Chris
      Keymaster

        Hi,

        Sorry, but I don’t plan to make this functionality available again until the next major release (3.0). Until then you’ll need to do it yourself if you need clickable rows.

        You can use the javascript listed above to open a marker, and modify the POI list template (map_poi_list.php) for the poi list. The non-template files will be overwritten during upgrades.

        in reply to: Map doesn't show up on mobile device #12764
        Chris
        Keymaster

          Great, I’m glad it’s working for you now!

          in reply to: Map doesn't show up on mobile device #12761
          Chris
          Keymaster

            Hi,

            You didn’t mention your phone model or Opera version, but it’s possible the maps javascript API isn’t supported on your device. Static maps work on everything but the API doesn’t.

            You can try a simple test map here:
            https://developers.google.com/maps/documentation/javascript/examples/map-simple

            And Google’s FAQ lists supported devices:
            https://developers.google.com/maps/faq

            •IE 8.0+ (Windows) *
            •Firefox 3.0+ (Windows, Mac OS X, Linux)
            •Safari 4+ (Mac OS X, iOS)
            •Chrome (Windows, Mac OS X, Linux)
            •Android
            •BlackBerry 6
            •Dolfin 2.0+ (Samsung Bada)
            * Internet Explorer’s Compatibility View is not supported.

            in reply to: MapPress Pro + WPML #12742
            Chris
            Keymaster

              Hi,

              Sorry, that’s really not possible with the current version of the plugin.

              A workaround might be to use your own custom field or table for the POI title and body. Then you could translate that data with WPML.

              There are the filters available to replace the POI title/body with your own HTML when the map is displayed: (mappress_poi_title and mappress_poi_body).

              in reply to: Show map on WP homepage #12739
              Chris
              Keymaster

                No, I don’t have a list.

                I assume you’re still wondering how to place a map on the home page? If so, try using do_shortcode() in your home page template file:

                Or, use a sticky post/page as the front page, and place your map shortcode there.

                in reply to: Mashup shortcode to show by event date #12730
                Chris
                Keymaster

                  Hi,

                  Something like:
                  $query = “post_type=events&meta_key=event_end_date&meta_value=” . date(‘Ymd’) . “&meta_compare=’<'"; do_shortcode('[mashup query="' . $query . '"]');

                  in reply to: Mashup shortcode to show by event date #12728
                  Chris
                  Keymaster

                    Hi,

                    I think the problem is that you can’t put PHP statements like date(‘Ymd’) into a shortcode.

                    You could instead insert a do_shortcode() statement into your template. There’s a simple example here that you could modify to include the current date:
                    http://mappresspro.com/mappress-documentation

                    in reply to: Show only current categories #12724
                    Chris
                    Keymaster

                      Hi,

                      I haven’t heard back from you so I assume the code is working? For anyone else who needs this, here’s the code to pick up the category from the current post:

                      <?php
                      $cats = get_the_category();
                      if (isset($cats[0]) && $cats[0]->slug != &#039;uncategorized&#039;) {
                              $cat = $cats[0]->cat_ID;
                              $query = "posts_per_page=-1&cat=$cat";
                              $shortcode = &#039;[mashup query="&#039; . $query . &#039;" poilist="true"]&#039;;
                              echo do_shortcode($shortcode);
                      }
                      ?>
                      in reply to: Add class to link #12713
                      Chris
                      Keymaster

                        Hi,

                        I’m sorry, but I don’t think that’s possible. When you click the marker, it’s not like clicking an anchor link – it actually redirects the browser URL directly to the new post. So there’s no way to apply a ‘class’ the way you would with a link.

                        I think you’ll need to let the marker open first, to display the link, as in the code I listed earlier.

                        in reply to: Add class to link #12710
                        Chris
                        Keymaster

                          Hi,

                          I’m assuming you want class ‘thickbox’ added to the link that appears in the infoWindow around the title, when you open a marker?

                          If so you can copy the code from get_title_link and modify it (it doesn’t accept ‘class’ as an argument unfortunately).

                          In map_poi.php:`

                          map();
                          $link = ($poi->postid) ? $map->options->mashupLink : false;
                          echo ($link) ? “postid) . “'>$poi->title” : $poi->title;
                          ?>

                          `

                          in reply to: Show map on WP homepage #12688
                          Chris
                          Keymaster

                            Hi,

                            That’s a pretty general question, and it’s specific to your site, but you can use these methods:
                            – a shortcode
                            – a call to do_shortcode() in the theme
                            – PHP

                            There are a some examples in the documentation.

                            in reply to: Custom Post Type Mashups (using toolset plugin) #12670
                            Chris
                            Keymaster

                              Hi,

                              I don’t know if there’s a way to affect the regular query, you could ask the ‘views’ folks. If not, you can’t use ‘current’ in the mashup.

                              You could set the mashup query to match whatever query ‘views’ is using. Or you could have the mashup display all locations in a category/tag/etc. rather than just the current sub-set.

                              in reply to: Custom Post Type Mashups (using toolset plugin) #12667
                              Chris
                              Keymaster

                                Hi,

                                The mashup will show the results of the current page query, which is normally all the posts being displayed on the page. It won’t work if the query is empty.

                                You can try printing out the current query – without the map – to see what’s being selected (just add this to your theme where the map would be):

                                <?php 
                                  global $wp_query;
                                  print_r($wp_query);
                                ?>
                                in reply to: Custom Post Type Mashups (using toolset plugin) #12664
                                Chris
                                Keymaster

                                  Hi, I don’t know – I don’t think there’s any easy way to display the parents of all the current posts.

                                  Maybe rather than showing just the current events you could show them all? Then you could use the event (parent) post type in the query. a lot of sites show everything on the map but just 1 page of results in the list.

                                Viewing 15 posts - 706 through 720 (of 1,120 total)