Forum Replies Created
-
AuthorPosts
-
Hi Rolf,
I think on the second site the problem is that jQuery 1.5 is being loaded. That version is too old – the current one with WordPress is 1.8.x. Here’s the line:
<scripttype='text/javascript'src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js?ver=3.4.2'></script>
Can you try disabling your other plugins / theme to find where that line is being loaded? Or you can change it to “…/jquery/1.8.3…” for the current version.
Hi,
I don’t know anything about Gravity Forms, but not all forms plugins may be compatible. I can really only answer specific questions about MapPress.
December 10, 2012 at 9:17 pm in reply to: Add permalink in maps of post | display post have maps near together #11064Hi, the settings control mashup display. They automatically display the permalink OR what was saved in the POI.
If you want to control it, you can set it to show the POI title, then you can edit the title to be a permalink when you feel like it – but you’ll have to enter the link manually. For example in the title enter:
<a href='www.myblog.com/?p=123'>My page 123</a>
December 10, 2012 at 11:55 am in reply to: Add permalink in maps of post | display post have maps near together #11059Hi,
I was referring to the normal WordPress capability of showing posts from a tag or category (a category archive page, for example).
MapPress can also do a mashup by tag and category, and there are some examples in the help:
http://mappresspro.com/mappress-documentation
December 10, 2012 at 4:55 am in reply to: Add permalink in maps of post | display post have maps near together #11053Hi,
For #1, try installing the latest version, it has options for what to display:
I’m not sure I understand #2. The plugin doesn’t support location-based searches right now, only search by tag/category/etc.
Hi, you can upgrade to the latest beta. They provide default alpha sorting as well as a filter you can use to implement your own.
Hi,
You’ll need to enter a query for the post you want to display (rather than the map). There’s a parameter ‘p’ for post or ‘post__in’ for posts, for example for post 123 enter this in the query input in the widget:
“p=123”
For anyone else with a similar problem: there was a bug that caused mashups to display empty in 2.38.9. It should now be fixed in 2.38.10.
December 4, 2012 at 3:50 pm in reply to: Setting custom default icon by editing the default png file? #11015Hi,
There was a bug in one of the beta versions that could cause that behavior, or it could be the icon is in the wrong directory.
Could you please do this:
1) Install the latest version of the plugin (2.38.10)
2) Copy the icon file to the directory shown on the MapPress ‘settings’ screen
If you still have this issue after doing the above, please send a login using the contact form and I’ll be happy to take a look.
Hi Jim,
It’s a bug, I think introduced in 2.38.9. I’ve just fixed it.
Please let me know about your other problem with the mashup – if that’s a bug I’ll try to include both fixes in 2.38.10.
Hi Jim
I take it you’re putting that shortcode into your template somehow? Are you using do_shortcode() to call it?
I understand it’s working now, but I ask because $cat will only work in PHP, not in a shortcode that you insert into a post.
I’d be happy to take a look. I’ll need to have 2.38.9 installed so I can see the problem. Is it OK if I login and install it for testing? You sent me a login a while back.
December 1, 2012 at 9:03 am in reply to: Separate query selections for multiple post types in one mashup #10981Hi Brad,
There’s no example of building a mashup, since if you’re using PHP you can just create a map (you don’t need a query).
There’s an example of creating two POIs and displaying them together on a map, so that’s what you’d need to extend:
1) Read the unit post and create a POI for it
2) Query the news posts and create POIs for each one
3) Combine the two sets of POIs into one array and display the map
Here’s an example of how to get all the POIs for an array of WordPress posts ($posts):
$pois = array(); foreach($posts as $post) { // Get the maps for each post $maps = Mappress_Map::get_post_map_list($post->ID); // Add the pois for each map foreach($maps as $map) { foreach ($map->pois as $poi) { $poi->postid = $post->ID; $pois[] = $poi; } } }December 1, 2012 at 8:02 am in reply to: Separate query selections for multiple post types in one mashup #10979Hi Brad,
If I understood, you’re trying to limit the news releases to 10 but *always* show the unit?
If so, I don’t think that’s possible because WP allows only one “posts_per_page” for the whole query. You could set “posts_per_page=-1” and get ALL news, which may not be what you want.
Or you could take a look at the WP_Query “orderby” clause. Maybe there’s a way you could order the query so the unit always appears first? I think the database will read and sort the results be limiting them to 10:
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Finally, you could resort to using PHP to generate the mashup. Then you can build the POIs based on your news query and add the unit at to the beginning of the POIs array.
And yes, I’m still working on proximity search – although it might have the same problem if there are > 10 news items in the vicinity.
Hi, to format code click the kitchen sink icon on the right of the editor toolbar, then change ‘paragraph’ format to ‘preformatted’.
Sorry, I should’ve tested the code first. There are two problems:
1 – I gave you the wrong syntax. The KML parameter should itself be an array with ‘url’ as an element (I thought I might eventually add more KML options). Corrected code is below.
2- when a KML is added programmatically (vs. in the Map Editor) it doesn’t have a center until the file is loaded. I hadn’t considered that case and the map ends up centering on NULL, which gives a blank map.
I can easily update the code to use (0,0) as the center if the KML isn’t loaded – but then the map won’t automatically center correctly.
A better solution is to load the POIs asynchronously, but that may require a lot of re-coding. Do you plan to set a map center explicitly, or did you need it to automatically center using the KML data?
If you like, send me a note using the contact form and I can send you the 0,0 fix to try out right away. Otherwise, I’ll work on the other solution but I can’t say yet when it will be ready.
$mymap = new Mappress_Map(array("width" => "100%")); $mypoi_1= new Mappress_Poi(array("iconid" => "green-dot", "title" => "KML Example", "type" => "kml", "kml" => array("url" => "http://kml-samples.googlecode.com/svn/trunk/kml/Region/polygon-min-max.kml"))); $mypoi_2 = new Mappress_Poi(array("title" => "500 Chestnut St", "body" => "Independence National Park, Philadelphia, PA<br/>19106", "point" => array("lat" => 39.948712,"lng" => -75.15001))); $mymap->pois = array($mypoi_1, $mypoi_2); echo $mymap->display(array("directions"=>"none"));Hi,
Just to close this out from our email exchange:
The missing icon on the settings screen was a bug, it’ll be fixed in 2.38.9, which I hope to release tonight. It’s already fixed in your system.
The other issues were just about how to use the buttons in the updated editor.
Good luck with your go-live!
-
AuthorPosts
