Chris

Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 1,120 total)
  • Author
    Posts
  • in reply to: v2.38.5 beta no custom marker icon link #10181
    Chris
    Keymaster

      Hi,

      There’s no link for custom icons, but you should see them listed first in the list of icons.  This sounds like it could be related to the directory structure for multisite.

      Do you happen to have a single-site blog where you could try the same thing?

      Could you send me a login (you can use the contact form or email me) so I can take a look?

      in reply to: Mobile site requires page reload to display maps #10180
      Chris
      Keymaster

        Hi,

        Could you provide a test URL that is permanently set to the mobile theme with jquery mobile loaded (so I can test it from a desktop)?

        I briefly browsed through the jquery mobile forums and it appears others were having trouble with this as well, for example:

        http://forum.jquery.com/topic/google-maps-inside-jquery-mobile

        They may have been confusing the Google issue with displaying maps in an initially hidden container, but if you’re a javascript developer, you can try triggering the map resize event like this (assuming the map is named ‘mapp0’ – see the FAQ for some info about map names):

        mapp0.resize();

         

        in reply to: POI List Template: Call from Custom Field #10179
        Chris
        Keymaster

          Hi,

          The release notes are very skimpy.  I’ll try to get the beta documentation done ASAP so you can see some examples.

          Basically, you can copy the ‘map-poi-list.php’ template file to your theme directory and then edit it, much like a regular blog template file.  It sounds like you’ve already done that.

          Then, assuming you’re using the default table layout, you could add the two columns like so:

          <?php if ($poi->postid): ?>
          	<td>   
          		<?php echo get_post_meta($poi->postid, 'wpcf-facility', true); ?>
          	</td>
          	<td>
          		<?php echo get_post_meta($poi->postid, 'wpcf-phone', true); ?>
          	</td>
          <?php endif; ?>

          If you like, send me an email and I’ll reply with the entire file.

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

            Hi,

            For anyone else searching on this thread: WordPress offsers separate settings for the uploads URL and the uploads PATH.  They must be consistent (pointing to the same directory) in order for MapPress to find the icons directory.

            in reply to: Mobile site requires page reload to display maps #10157
            Chris
            Keymaster

              Hi, I see the issue (only on a phone) but it’s tough to say what the cause might be.  The issue in the FAQ occurs only when the map container is initially hidden.

              Could you try switching to the standard twentyeleven theme for starters, to see there’s a conflict?  I’d suggest deactivating ALL plugins as well, in case there’s a javascript error from another plugin.

              If that doesn’t work, is it possible to enable the mobile theme on a test page, so I can trace it in a normal web browser (it’s tougher to debug from the phone).

              in reply to: marker_title and marker_body in v2.38.5? #10156
              Chris
              Keymaster

                Hi,


                @doctorproctor
                : marker_body set to ‘none’ is no longer supported, but you should still be able to just leave your markers blank or link them to posts.  Will that work for you?


                @rainmaster
                : could you please create a separate thread for your questions – they don’t seem related to the original post.  The custom icons have moved in the beta – take a look at the release notes for some more info – essentially the new directory is in your uploads folder: ‘/wp-content/uploads/mappress/icons’.

                in reply to: Multiple Fields for Address Custom Field #10155
                Chris
                Keymaster

                  Hi, that feature is already in the beta versions, check out the release notes and see here for info about how to download:

                  http://mappresspro.com/betas

                  Hopefully, they’ll do what you want without custom code?

                  in reply to: Show Infowindow Text in POI List #10122
                  Chris
                  Keymaster

                    Hi, sorry for my slow reply, I’m on vacation but I’ll be back at work again next week.

                    To answer your questions:

                    1) If you install the latest beta (see http://mappresspro.com/betas ) you can use a POI list ‘template’ to display whatever you like.  I haven’t completed the beta documentation yet so there’s only an overview in the release notes.  If you need help with the template before it’s available let me know.

                    2) The beta also applies a default sort by title, and has a filter you can use to apply your own sorting.  You can also drag & drop markers on individual maps.   Also, if you use a mashup, you can apply a sort order using the mashup query – WordPress offers sort by post date and some other fields.

                    Chris
                    Keymaster

                      Hi,

                      I don’t know how to identify the posts you’re using with T&V.  Maybe you can assign them to a particular category or post type.  If you want to use a variable, you can just add something like this to the mappress ‘the_content’ filter:

                      if ($myvar == true)
                      	return;

                      Or, you can add your own filter to remove the MapPress ‘the_content’ filter.  For example, if you want to always suppress MapPress when the post type = ‘mytype’ add this to functions.php:

                      function myfunc() {  
                      	global $post, $mappress;  
                      	if ($post->post_type == 'mytype')   
                      		remove_filter('the_content', array($mappress, 'the_content'), 2); 
                      } 
                      
                      add_filter('the_content', 'myfunc', 1);
                      in reply to: Preserving query before mashup and restoring after #10100
                      Chris
                      Keymaster

                        Hi, what version of MapPress are you using?

                        The mashup should, in general, save and restore the original query.  Let me know your version and I’ll see if I can replicate the problem.

                        Chris
                        Keymaster

                          Hi, I don’t know much about Types & Views, but I can explain that the MapPress automatic map always adds a map to the post content except in two cases:

                          1) If there’s already a mappress shortcode on the post/page

                          2) The post/page is an excerpt (to determine this, MapPress checks if the standard WP filter for excerpts is active – and it’s probably not used by T&V)

                          You could try putting a [mappress] shortcode into the particular post you don’t want automated.  Or you can switch off automatic map display and use shortcodes.

                          There’s a function remove_shortcode() in WordPress that can be used to disable a shortcode.  You could add it to your functions.php and use some criteria for the posts where you want to suppress it.

                          Finally, the T&V folks might be able to tell you how to disable a specific shortcode in the template, it seems like that might be a common request.

                          in reply to: Direction overlapped by footer widget #10090
                          Chris
                          Keymaster

                            Hi, from the sound of it that’s strictly a CSS problem and not something that could be controlled by the plugin.  I can’t really say what might be done to fix it without seeing a URL, though, so if you’d like to provide one that would help.

                            My guess is the footer widget has a CSS float: or position: style applied to it – those can both cause an element to break out of the normal flow and overlap other elements.

                            If nothing else works, you could also switch the directions to ‘google’ which will open a separate window for the directions.

                            in reply to: Show Dates in POI List #10073
                            Chris
                            Keymaster

                              There’s a bug in my little code snippet – I wrote $postid instead of $poi->postid, so it always prints the first date.  I didn’t realize the dates were repeating when I tried it.

                              It should be as shown below.  I tested it and it looked OK.  Hopefully it’ll work for you as well:

                              <td>
                                <?php
                                  if ($poi->postid) {        
                                    $p = get_post($poi->postid);        
                                    echo $p->post_date;       
                                  }      
                                ?>     
                              </td>

                               

                              in reply to: Show Dates in POI List #10068
                              Chris
                              Keymaster

                                Hi,

                                I’m sorry I was thinking of modifying the template for individual posts.  For the poi list you can read the post ID for each poi from the field $poi->postid;

                                So you’ll need this in the ‘foreach’  loop:

                                <td>
                                  <?php       
                                    if ($poi->postid) {
                                      $p = get_post($postid);
                                      echo $p->post_date;
                                    }      
                                  ?>     
                                </td>

                                Don’t forget to add a “<th>” header for the column too.

                                I hope that helps.  If you like I can also email you the whole file.  Send me an email at “chrisvrichardson” at mappresspro.com.

                                in reply to: Show Dates in POI List #10064
                                Chris
                                Keymaster

                                  Hi, yes you can actually show anything you like in the POI list.

                                  I’m still working on the documentation so it’s not documented except in the release notes.  But the idea is you can modify a template, much like a theme template file:

                                  1) Find the file ‘map_poi_list’ in the MapPress directory /pro/templates

                                  2) Copy it to your theme directory

                                  3) Change the contents as needed.  I think you’ll need something like:

                                  <td><?php echo $post->post_date; ?></td>
                                  
                                  

                                   

                                Viewing 15 posts - 1,006 through 1,020 (of 1,120 total)