Comment Geo Maps
This is a plugin for WordPress. It was developed initially for Streetsblog.org and has been bundled up and released on Wordpress.org. The main project page for this plugin has been moved to here but the discussion and questions are still being posted below.
May 9th, 2009 at 11:01 am
Works great, thank you
May 9th, 2009 at 1:53 pm
Hey. I installed the plugin automatically from within word press. Where do I find the “cgm-comment.php” file?
Thanks
May 11th, 2009 at 2:16 pm
@Rollins: the cgm-comments.php file will be in the wp-content/plugins/comment-geo-maps directory of your wordpress installation.
May 11th, 2009 at 3:38 pm
Yeah Thanks. Don’t really know what I was thinking. Guess was just hungry. lol
May 22nd, 2009 at 2:16 am
None of the functions are being found (ie. cgm_pageclass(), cgm_insert_map()) . How do include the functions?
May 22nd, 2009 at 8:47 am
@Ming: Did you activate the plugin?
May 22nd, 2009 at 10:10 am
@chris: yep… maybe i have a conflict with another plugin
June 3rd, 2009 at 3:30 pm
Hello,
Total noob here but I would like to create a wordpress page that hosts the map and whenever a specific type of post is created (which has an address) that address is mapped to the page with the map. any idea if I can do this? I really don’t get the instructions on how to get the map to show up or integrate.
Thank you
June 3rd, 2009 at 3:41 pm
Uttnyan: this plugin maps comments on posts and pages on a map. It really would require some solid html/css/php skills to fit it to your blog so you may want to get some help doing this.
July 28th, 2009 at 2:51 pm
I installed the plugin but I only get javascript errors and a blank box for the map. Do you have more documentation or examples of integration?
Thanks a lot!
J. Carlos
July 28th, 2009 at 2:55 pm
@Juan: This is the only live example of its use right now: http://gothamschools.org/comment-maps/whats-on-the-chopping-block-at-your-school/ and I must admit that if your theme is complicated it might be tricky to get it to work well on all browsers.
August 13th, 2009 at 11:05 am
This plugin is exactly what I need. Thank you. I am not a complete newb and understand PHP a little, but I am not able to follow the editing instructions for the header.php and the index.php correctly. I believe if a line does not have a + or - symbol it should exist within the template. If it has a + sign then you need to add it and a - sign means to remove a particular line of code.
I am not able to find in the index.php files of a number of templates some of the lines in your instructions that should exist like in the index.php
<div id=”page” class=””>
or
-
Any help would be appreciated, I could be missing something obvious.
Thanks.
August 13th, 2009 at 2:21 pm
@Mike: The instructions here are only an example of how to fit the plugin to a theme. Each theme will be a little different. So if you can’t find a particular line, don’t worry so much.
August 13th, 2009 at 5:14 pm
OK - so the lines below are required in the two .php files?
Index: index.php
===================================================================
+
+ <div class=”content ”>
+
+if (function_exists(’cgm_activated’) && cgm_activated())
+ comments_template(’/cgm-comments.php’);
+elseif (!is_page())
+ comments_template();
+ ?>
Index: header.php
===================================================================
+
August 13th, 2009 at 9:55 pm
Apologies ignore earlier post, lines were stripped out. I will figure it myself our try another angle.
Thanks.
September 23rd, 2009 at 3:13 pm
Hi,
I like the premise.
I am trying to integrate into the journalist theme and I get this error:
Fatal error: Call to undefined function the_last_commenter() in /…/wp-content/themes/journalist/cgm-comments.php on line 255
theme:
http://wordpress.org/extend/themes/journalist
Any thoughts?
September 28th, 2009 at 3:03 pm
@Matthew: You can just take out that line that calls the_last_commenter(). That should fix things.
September 30th, 2009 at 6:10 am
How to add map? I have installed the plugin, activated, followed the customization for index.php and header.php but I don’t see the map. Your plugin concept is great! Bright idea!
September 30th, 2009 at 1:47 pm
@Jesse: Did you follow all the instructions here?
https://projects.openplans.org/commentgeomaps/wiki/WikiStart#Installation
It’s turning out that getting this plugin working for themes is pretty tricky, especially if you’re not a html/css adept.
December 16th, 2009 at 12:41 pm
Hi Chris, I really am struggling to get this working…
Using the latest release of WP, default theme, index.php:
Would be grateful of you showing me where I place your code, thanks, Paul:
<div id=”post-”>
<a href=”" rel=”bookmark” title=”Permanent Link to “>
<!– by –>
<?php the_tags(’Tags: ‘, ‘, ‘, ”); ?> Posted in |
Not Found
Sorry, but you are looking for something that isn’t here.
December 16th, 2009 at 12:45 pm
Sorry about the above posts - how do I share my code!?
December 16th, 2009 at 2:20 pm
@Paul. From what you’ve posted, I really don’t know what is wrong. Sorry. And you might find pastebin.com useful in sharing code and such.
December 16th, 2009 at 2:54 pm
Sorry about that Chris, Thanks for Pastebin link:
http://pastebin.com/m2eec5947
I’m basically using the default theme, before I transfer to my own theme…
But the latest seems very different to the example you gave.
Hope you can help, but understand if you’re busy.
Thanks, Paul
December 16th, 2009 at 3:02 pm
@Paul. Integrating this plugin into your theme is not an easy task and will vary from theme to theme. I could give you a few instructions but I’m pretty sure it won’t work properly immediately but only after some HTML/CSS tweaks. You should probably find someone with those skills to help you out.
December 16th, 2009 at 3:07 pm
Really? but the code I pasted is the unaltered index.php for the WordPress default theme. It would be great if you could provide the code for this release.