Chris

Forum Replies Created

Viewing 15 posts - 1,036 through 1,050 (of 1,120 total)
  • Author
    Posts
  • in reply to: Link in infowindow causing ajax error #9956
    Chris
    Keymaster

      Hi,

      There’s no special setting for URLs, they’re just plain HTML.  The formatting can be tricky though.  The links actually are garbled in your post, but I’m guessing that’s just because you were using the html editor in the forum?  You might also try using single quotes:

      <a href=”http://mysite.com”>Example</a&gt;

      Should be:

      <a href='http://mysite.com'>Example</a>

      If that doesn’t help, try switching to a standard theme and deactivating your other plugins for a moment.   That will rule out any conflict, and themes and plugins are the most common cause of AJAX errors.

      You can also send me a login and I’ll see if I can spot the error for you.

      in reply to: mapp0_zoommarker #9955
      Chris
      Keymaster

        Hi ftadoug:

        I know what you mean.  The reason is that when zooming, the map has to be exactly centered on the poi, otherwise it would zoom in on the wrong location.  If the map’s not tall enough, the infowindow may not be fully visible.

        I’m not sure if it will help, but one workaround is to just make your map slightly taller so there’s room for the full infowindow.

        I’ll see if there’s anything I can do in the plugin.  I tried to center, zoom, and then open the infowindow, but then the map seems to jump around a lot, rather than having the effect of smoothly zooming on a point.

        Google probably came to the same conclusion – maps.google.com works exactly the same way if you shrink the window a bit.

        in reply to: Can't see custom icons in 2.38.4-beta #9954
        Chris
        Keymaster

          Hi,

          iradoki: sorry you beat me to it, but I’m glad you got that figured out – I had no idea a theme would alter the uploads folder.  I’ll update the release notes to be a little clearer.

          ftadoug: the beta version expects the custom icons in the uploads directory, not in the plugin directory, as iradoki mentioned.  You can also see the release notes for beta 2.38.2:

          http://mappresspro.com/mappress-2-38-2-beta-available

           

           

           

          in reply to: Can't see custom icons in 2.38.4-beta #9940
          Chris
          Keymaster

            Hi, do you have a URL for your page, or better yet a login so I can take a look?

            in reply to: How can i change the link color in the balloon / pop up? #9924
            Chris
            Keymaster

              Hi,

              Could you please take a look at beta 2.38.4?  It adds some better CSS handling.  The issue is that in earlier versions the ‘!important’ modifier was applied to many of the CSS styles, which prohibits you from overriding them in your theme’s style.css.

              See the post below for details:

              http://mappresspro.com/mappress-2-38-4-beta-available

              Please let me know if the new version works better for you.

              in reply to: mapp0_zoommarker #9908
              Chris
              Keymaster

                The javascript function is only available in the beta.

                This will zoom in on a POI by index number. 0 is the first POI on the map, 1 is the second, and so on:

                <a href='#' onclick='mapp0.getPoi(0).zoomIn(); return false;' >$text</a>

                You can also read the POIs by postid:

                mapp0.getPoiById(1234);

                Note that ‘mapp0’ is the default name for the first displayed map.  See the FAQ for info about how to choose another name.

                If you want to open the POI first, use:

                mapp0.getPoi(0).open(true);

                The ‘true’ value means to open the POI and show its viewport (for example, for a city the plugin will show the entire city).  ‘false’ means don’t zoom, and a number will zoom the map to that zoom level (0-15).

                Both the open and zoom link are available in PHP.  If you have a poi object you can use:

                echo $poi->get_open_link();
                echo $poi->get_zoom_link();

                You can see the file ‘mappress_poi.php’ for the code for those functions.

                in reply to: Mobile Resize Map #9896
                Chris
                Keymaster

                  Hm, I don’t know.  Maybe use the MapPress settings to turn off pan and zoom with the keyboard?

                  in reply to: Mobile Resize Map #9892
                  Chris
                  Keymaster

                    Hi,

                    You can specify a % for the map width and height :

                    [mappress width="100%" height="500px"]

                    Does that help?  If not, do you have an example page that illustrates what you want it to do?

                    in reply to: mapp0_zoommarker #9888
                    Chris
                    Keymaster

                      Yes, it’s actually part of 2.38.3 beta – why don’t you give that version a try and see if it works for you?  If not there’s a javascript function you can call for the same effect.

                      in reply to: How to Center the Mashup? #9887
                      Chris
                      Keymaster

                        Hi, when you set a center, the plugin also expects you to set the zoom – you can use the ‘zoom’ parameter to do it.  I went to that page and it looked OK, so maybe you already did that?  If not, something like this might work:

                         

                        [mashup width="100%" query="posts_per_page=25&category_name=members" directions="none" center_lat="-32" center_lng="122" marker_link="false" zoom="5"]

                        in reply to: How to Center the Mashup? #9879
                        Chris
                        Keymaster

                          Hi,

                          Ah, OK, I’ve got it now!  It was a bug when using ‘center’.  I found it and I’ll fix it in 2.38.4.

                          I think as a workaround you can use this syntax where you specify the lat/lng separately (also, in the beta you can just write ‘query’ instead of show and show_query).  Here’s the shortcode:

                          [mashup width="100%" query="posts_per_page=25&category_name=members" directions="none" center_lat="-32" center_lng="122" marker_link="false"]

                          Please let me know if that doesn’t work for you, and thanks for reporting the problem.

                          in reply to: Shortcode in category description #9876
                          Chris
                          Keymaster

                            Hi,

                            Ok, I’ll see if I can replicate the error.

                            But I would also suggest you try another approach.  I think a little code in the theme file would work better than trying to embed shortcodes into the category descriptions.

                            For example: you could indicate that a category needs a map by using “*” as the first character in the category name.  In the theme file if you see an “*” in the name then output the map for that category using do_shortcode().

                            This would also help to determine if there’s a general issue or if it was just a problem when embedding shortcodes in the descriptions.

                            in reply to: How to Center the Mashup? #9873
                            Chris
                            Keymaster

                              Hi, those were just examples of how to enter the center.  You’ll need to use them in your mashup shortcode, e.g. [mashup center="-32,122".... ]

                              If you look at the release notes for 2.38.2 it mentions that marker_body isn’t supported any more.  You’ll need to use marker_link=”false” instead, e.g. [mashup center="-32,122" marker_link="false"]

                              in reply to: Shortcode in category description #9862
                              Chris
                              Keymaster

                                Hi,

                                If I understood, you want to output a map automatically when printing a category description?

                                I’m guessing the [mashup] shortcode is actually part of the description then?  For example you have a category 123 with description “My category [mashup]“?

                                I would suggest trying this using the 2.38.3 beta version.  It outputs the scripts in the footer rather than immediately, so it might work better in this case.

                                in reply to: How to Center the Mashup? #9859
                                Chris
                                Keymaster

                                  Hi,

                                  Ok, what sort of trouble are you having?  Can you paste in the exact shortcode you’re using?  Assuming a center of -32,122, you should be able to write:

                                  [mappress center="-32,122"]

                                  or

                                  [mappress center_lat="-32" center_lng="122"]

                                Viewing 15 posts - 1,036 through 1,050 (of 1,120 total)