WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
BGMP 1.10-rc1 available (27 posts)

  1. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    The release candidate for BGMP 1.10 is now available. The biggest changes are:

    • Fixes a few persistent bugs in the 1.9 releases
    • Adds new shortcode options for only displaying a single placemark on the map, and adding links to map markers in the text list.
    • Add more hooks for developers.
    • Adds a German translation.

    If you'd like to try it out, just download and install it. If you notice any problems, give detailed feedback here and then downgrade to 1.8 until they're fixed.

    If you don't notice any problems, please leave a quick note here so that I know it's working for others.

    I've also setup an email list to notify everyone when new RCs are available in the future. That way you'll have time to test it out on your staging server, and we can work out any bugs before the official release.

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. yzqiang
    Member
    Posted 1 year ago #

    Did you add the feature in this post already?
    I think it's a useful feature.
    Providing a filter for the support of no post is also helpful.

  3. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    The features listed above aren't available in the current version (1.8); they're available in the upcoming 1.10 version. The release candidate for 1.10 is available for people to test out so that any bugs can be discovered and fixed before it's officially released.

    What do you mean by "Providing a filter for the support of no post is also helpful"?

  4. H_Andrea
    Member
    Posted 1 year ago #

    Hello Ian,

    Thank you very much for the implementing of the ClusterMarkers!
    Great plugin, the new funcction works on my single page also very well.

    But I am working also on a multi blog system and in this case the plugin calculate with the placemarkers list, but only the default pin images appear on the map, the other, with the featured images unfortunately disappeared. I added new test places to the prewious and the result was the same, the map shows only the default markers and the cluster markers.

    I would be very glad, if you could post some solution for it.

    Thank you very much,
    Andrea

  5. H_Andrea
    Member
    Posted 1 year ago #

    Additionally, I found some idea for the modifying of the standard cluster images, insread of the replace of the defaults with a new pictures (this is my current solution).
    Is it possible to insert this or similar code into the plugin?
    If yes, please be so kind and publish, where/which file is the correct place of this?
    Thanks a lot,
    Andrea

    var clusterStyles = [
      {
        opt_textColor: 'white',
        url: 'path/to/smallclusterimage.png',
        height: 50,
        width: 50
      },
     {
        opt_textColor: 'white',
        url: 'path/to/mediumclusterimage.png',
        height: 50,
        width: 50
      },
     {
        opt_textColor: 'white',
        url: 'path/to/largeclusterimage.png',
        height: 50,
        width: 50
      }
    ];
  6. H_Andrea
    Member
    Posted 1 year ago #

    Hello,
    Fortunately everything is ok, it seems, that there was a conflivt between the theme and the pugin, but the use of the categories to set up the icons solved it.
    Only the midifying of the cluster image would be interesting.
    Than you,
    KR,
    Andrea

  7. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    @H_Andrea, you can use the bgmp_map-options filter to modify the cluster styles. If you're having trouble with that, please start a new thread. This thread is for any bug reports in the 1.10 release; I'd like to keep new feature requests separate.

  8. Gillian
    Member
    Posted 1 year ago #

    Hi Ian

    I have just had time to install 1.10 tc1 but on inserting the [bgmp-list] shortcode (without even any optional parameters) in a map page on two of my websites the following error messages appear and the page doesn't load (even the non-BGMP text on the page doesn't load). Any ideas what I'm doing wrong?

    Warning: BasicGoogleMapsPlacemarks::require(__DIR__/views/shortcode-bgmp-list-marker.php) [basicgooglemapsplacemarks.require]: failed to open stream: No such file or directory in /MYWEBSITEPATH/wp-content/plugins/basic-google-maps-placemarks/core.php on line 1058

    Warning: BasicGoogleMapsPlacemarks::require(__DIR__/views/shortcode-bgmp-list-marker.php) [basicgooglemapsplacemarks.require]: failed to open stream: No such file or directory in /MYWEBSITEPATH/wp-content/plugins/basic-google-maps-placemarks/core.php on line 1058

    Fatal error: BasicGoogleMapsPlacemarks::require() [function.require]: Failed opening required '__DIR__/views/shortcode-bgmp-list-marker.php' (include_path='.:') in /MYWEBSITEPATH/wp-content/plugins/basic-google-maps-placemarks/core.php on line 1058

    I upgraded to from 1.9.3 rc2 to 1.10 rc1. I haven't previously used the bgmp-list shortcode on either of the websites so I don't know how long the issue (or conflict with something else on my sites) might have been present.

  9. magic_square
    Member
    Posted 1 year ago #

    Hi Ian

    Thanks for rc 1.10 which works fine as far as I can tell on both staging, and now live, sites. Our theme was recently updated, and I think that actually resolved the underlying conflict problem.

    Thanks for being so persistent in working to resolve the problems!

  10. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    @magic_square, Glad to hear it's all working now.

    @Gillian, thanks for reporting that. Can you check to make sure the there's a file named "shortcode-bgmp-list-marker.php" in the "views" directory of the plugin? That's a new file, and the plugin will crash without it. Your "views" directory should look like http://plugins.svn.wordpress.org/basic-google-maps-placemarks/tags/1.10-rc1/views/.

    I'm not sure why it wasn't installed when you upgraded, though. Can you describe the steps you did to upgrade?

  11. Gillian
    Member
    Posted 1 year ago #

    Hi Ian

    Yes, there is a file named "shortcode-bgmp-list-marker.php" in the "views" directory of the plugin in both sites I installed the new version in (there are 9 files in total in the views directory as per your link).

    The plug-in only crashes if I use the [bgmp-list] shortcode, it still works fine using the [bgmp-map] shortcode.

  12. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, I see now. The __DIR__ constant wasn't added until PHP 5.3, so if you're using 5.2 then it won't be able to resolve the filename. I'll push a new RC shortly that uses an older method to resolve the path.

  13. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for catching that Gillian. Could you download RC2 from http://downloads.wordpress.org/plugin/basic-google-maps-placemarks.1.10-rc2.zip and make sure it's working for you?

  14. Gillian
    Member
    Posted 1 year ago #

    Hi Ian

    Apologies for the delay in replying, I've been busy in other directions unfortunately.

    RC2 has fixed the problem I was having - thanks very much for the quick fix :-)

    I do have a couple of other issues, though, the first of which at least seems to have only started with 1.10.

    1) For many months I have used the following CSS rule to alter the display of the titles of my placemarks as they appear in the info window on this site:

    .bgmp_placemark h3 {font-family: arial !important; text-transform: uppercase !important; color: #d70000 !important; font-weight: bold !important;}

    This CSS is no longer working and instead I am getting the same font and font-size as set in my theme (Weaver II Pro) for post titles. Is the placemark title no longer h3, or do I need to modify my CSS rule to get back to the look that I had before?

    2) This issue relates to the use of [bgmp-list] which I haven't previously been using so it might have been there for a while. In some of my info windows I have an address (or simply a suburb or town). Instead of just displaying the address in the list as text (which is what I want) the address is being "translated" into a linked Google map reference and displayed as an extra line in the list (which I don't want - after all, the placemark for that address is already on a BGMP map!). How can I stop this happening?

    I have put a [bgmp-list] shortcode in this page temporarily so you can see what I mean with respect to issue 2. The issue is there whether or not I include the new "viewonmap" parameter.

    I have some more questions about formatting the output of bgmp-list but as they are off-topic for this thread I will start a new thread for them when I get a chance.

    Thanks in advance for your help.

  15. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Gillian, thanks for the feedback.

    1) That's fixed now, thanks for pointing it out.

    2) The address link has always been a part of the [bgmp-list] output, but there was a new bug with it that I just noticed, which is fixed now too.

    If you'd like to remove the link, you can do it one of two ways:

    • Use CSS to hide the containing paragraph. e.g.,
      .bgmp_list-link
      {
          display: none;
      }
    • Use the bgmp_list-marker-output filter to set the output to whatever you want. e.g.,
      function set_bgmp_marker_output( $marker_output, $placemark_id)
      {
          // use the $placemark_id to lookup it's coordinates, title, content, etc
          return 'you can put whatever you want here';
      }
      add_filter( 'bgmp_list-marker-output', 'set_bgmp_marker_output', 10, 2 );

    You can download RC3 at http://downloads.wordpress.org/plugin/basic-google-maps-placemarks.1.10-rc3.zip

  16. MVerminski
    Member
    Posted 1 year ago #

    I can't install 1.10 because 1.8 exists on the site. If I uninstall 1.8 to instal 1.10 am I going to lose all of my placemarks? It took a looong time to get them all entered on there.

  17. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    Hi MVerminski. You won't lose your placemarks. Some plugins remove options/settings when they're remove, but they're not supposed to remove significant data (like posts).

    Of course, you should always have backups, but baring some kind of freak accident, you shouldn't lose anything.

  18. Gillian
    Member
    Posted 1 year ago #

    Hi Ian

    Sorry again to take so long to get back to you.

    RC3 now installed and has cleared up my first issue.

    Many thanks for the advice and example code re using the bgmp_list-marker-output filter to set the output of the [bgmp-list] shortcode to whatever I want. I'll give it a try soon and report back.

    Cheers

  19. fegi
    Member
    Posted 1 year ago #

    I use on my site http://www.vlakovi.com 1.8 version of plugin.
    When I install v1.10 then news slider on my site don't work

    What can I do to solve these?

    On 1.8 version

  20. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    Hi fegi. Are you talking about the slider on the home page? It looks like it's working for me.

  21. jeroenm77
    Member
    Posted 1 year ago #

    After installing 1.10rc1 this morning it seems in placemark title the - character gets replaced by & #8211; without the space between the & and # characters. I have been tinkering with a filter/function so probably that's the cause, but restoring everything to default (disabling all the filters in functions.php) doesn't seem to fix it though.

  22. fegi
    Member
    Posted 1 year ago #

    Yes these slider don't work on ver1.10.
    Now is v1.8 activated, I delete v1.10

    But v1.8 have too some error on homepage (Basic Google Maps Placemarks error: JavaScript and/or CSS files aren't loaded. If you're using do_shortcode() you need to add a filter to your theme first. See the FAQ for details. )

    I have the same portal for testing and trying some plugins on link: http://www.vlakovi.hr/

    Here you can see whats hapend when is v1.10 activated

    Map is show ok, problem is just on homepage where ist these slider..

    Map link: http://www.vlakovi.hr/?p=962

  23. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    jeroenm77, I wasn't able to reproduce that on my test install. Can you post a link to your map? Did you just type the dash into WordPress using your keyboard, or did you copy/paste from another application?

  24. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    fegi, for the error that says "Basic Google Maps Placemarks error... See the FAQ for details.", you should see the FAQ for details ;)

    The reason the slider isn't working is because there's a JavaScript error on the page. If you install the latest development version of the plugin, it should fix that.

  25. fegi
    Member
    Posted 1 year ago #

    Tnx, its work now slider.

    And for homepage error I must add filter on theme?
    Where and what? :)

    <?php
    	if ( is_home() ) {
    		$args=array(
    			'showposts'=> (int) get_option('aggregate_homepage_posts'),
    			'paged'=>$paged,
    			'category__not_in' => (array) get_option('aggregate_exlcats_recent')
    		);
    		if (get_option('aggregate_duplicate') == 'false') {
    			global $ids;
    			$args['post__not_in'] = $ids;
    		}
    		query_posts($args);
    		global $paged;
    	}
    	$i = 0;
    ?>
    <?php
    	if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<?php
    		$i++;
    		$et_is_latest_post = ( $paged == 0 && ( is_home() && $i <= 5 ) ) || !is_home();
    	?>
    		<div class="post entry clearfix<?php if ( $et_is_latest_post ) echo ' latest'; ?>">
    			<?php
    				$thumb = '';
    				$width = $et_is_latest_post ? 130 : 67;
    				$height = $et_is_latest_post ? 130 : 67;
    				$classtext = 'post-thumb';
    				$titletext = get_the_title();
    				$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
    				$thumb = $thumbnail["thumb"];
    			?>
    
    			<?php if($thumb <> '' && get_option('aggregate_thumbnails_index') == 'on') { ?>
    				<div class="thumb">
    					<a href="<?php the_permalink(); ?>">
    						<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
    						<span class="overlay"></span>
    					</a>
    				</div> 	<!-- end .post-thumbnail -->
    			<?php } ?>
    
    			<h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    			<?php get_template_part('includes/postinfo'); ?>
    
    			<?php if (get_option('aggregate_blog_style') == 'on') the_content(''); else { ?>
    				<?php
    					$et_excerpt_length = $et_is_latest_post && is_home() ? 215 : 80;
    					if ( !is_home() ) $et_excerpt_length = 140;
    				?>
    				<p><?php truncate_post($et_excerpt_length); ?></p>
    			<?php }; ?>
    			<a href="<?php the_permalink(); ?>" class="more"><span><?php esc_html_e('Read More','Aggregate'); ?></span></a>
    		</div> 	<!-- end .post-->
    <?php endwhile; ?>
    	<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    	else { ?>
    		 <?php get_template_part('includes/navigation','entry'); ?>
    	<?php } ?>
    <?php else : ?>
    	<?php get_template_part('includes/no-results','entry'); ?>
    <?php endif; wp_reset_query(); ?>
  26. fegi
    Member
    Posted 1 year ago #

    Today in wp admin area its show new error:
    That address couldn't be geocoded, please make sure that it's correct.

    Geocode response:

    stdClass Object
    (
    [results] => Array
    (
    )

    [status] => OVER_QUERY_LIMIT
    )

    What that mean?

  27. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    fegi, Google Maps places a limit on how many geocoding requests it will serve per day. If you're using shared hosting, there are probably other sites that are also making requests, and you've hit the limit for the day.

    You can either use coordinates to bypass the geocoding process, or wait until tomorrow and try again. If you'd like to use coordinates, see the FAQ for details.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.