Recent Comments
Purpose
This plugin displays a list of the most recent comments to your blog in a highly customisable way.
This is version 2.6.0.1
. It is compatible with WordPress 1.5–2.6.
Please note the new upgrade instructions!
Note: If you had the misfortune to download version 2.5.0.7 you may run into problems when you try to update to a newer version. I managed to introduce a circular dependence between this plugin and the Post-Plugin Library which means trying to update either from the admin plugins page will cause an error. Instead you need to delete the 2.5.0.7 version from the server and upload the newer one and the problem should be solved. I apologise for any worry or inconvenience.
- 2.6.0.1 fixes the option to include attachments and adds a parameter to the {imagesrc} output tag to append a suffix to the image name.
- 2.5.0.11 has a new option to include posts which are attachments; a new output template tag {authorurl} which points to the archive of the author’s posts; new behaviour for the {php} output tag which can now accept other output tags in the code.
- 2.5.0.10 fixes several bugs.
- 2.5.0.9 adds an option to match the current post’s author and extends the options for snippet and excerpt output tags to make the ‘more’ text into a link.
- 2.5.0.8 adds an option to show posts by status, i.e., published/private/draft/future, changes the {categorynames} and {categorylinks} output tags by applying the ’single_cat_name’ filter, and fixes a bug in WordPress pre-2.2 that stopped installation code running on Windows servers.
- 2.5.0.1 has a new option to only show comments from the current post and improvements to the output tags {commentsnippet} and {commentexcerpt}.
- 2.5.0 introduces a new output tag {imagesrc}, and adds more parameters to {image}. Fixes bugs with empty categories, excluded posts, and the option to omit current posts.
- 2.5b25 makes some important changes: the {image} output tag now serves real thumbnails (couple of bug fixes too); output can now be sorted as you choose with sub-headings included; the {date:raw} tag modifier has been added to help the sorting; the ‘trim_before’ option has been replaced with the more logical ‘divider’.
- 2.5b24 fixes to stop recursive replacement by content filter, {gravatar} to allow for ‘identicon’ etc., to {commenter} to allow trimming, and to remove a warning in safe mode
- 2.5b23 brings a new option to filter on custom fields and adds proper nesting of braces in {if}.
- 2.5b22 fixes bugs in several output tags, and introduces two new options: to show only pages and to omit comments by registered users.
- 2.5b18 fixes a filtering problem and introduces the conditional tag, {if:condition:yes:no}.
- 2.5b16 fixes a problem with {php}.
- 2.5b15 more bug fixes and added ‘included posts’ setting.
- 2.5b14 continuing bug fixes.
- 2.5b11 has new features and improvements.
- 2.3.6 restores the widgetiness I managed to remove in 2.3.5!
- 2.3.5 has been rebuilt to save memory and can match the current post’s tags. It also fixes a bug with categories in WordPress < 2.3.
- 2.3.4 can be used as a WordPress widget. Also can include or exclude the current post from the output.
- 2.3.3 beta adds the ability to include as well as exclude categories and authors and is able to find posts by tag.
- 2.3.2 beta fixes a conflict between tags and categories and grouping bug introduced in 2.3.0.
- 2.3.1 fixes a stupid bug in category exclusion
- 2.3.0 is compatible with WP 2.3
- 2.1.1 fixes a bug when recent_comments() is used more than once on a page
The plugin has an settings page which lets you change how the output is generated and displayed.
Installation Instructions
- If upgrading from a previous version, first deactivate the plugin via the Plugins page and delete the plugin folder from your server.
- Upload the plugin folder to your /wp-content/plugins/ directory. You will also need to install the Post-Plugin Library.
- Go to your admin Plugins page and activate Recent Comments.
- Put
<?php recent_comments(); ?>at the place in your theme files where you want the list of similar posts to appear. Lorelle on WordPress has a good guide to modifying themes for plugins. If you are using a widget-ready theme the plugin can be placed from the widget admin page. - Use the admin Options|Recent Comments page to set all the available options. Alternatively, the options can be overridden by passing a parameter to the recent_comments template tag.
Usage and Options
The configuration page will help you to set up the plugin to your satisfaction.
If you also install the latest version of Plugin Output Cache the output of this plugin will be automatically cached for efficiency.
Finally…
I look forward to your help in ironing out any issues and implementing any good ideas. The plugin settings page has an option to submit bug reports but general comments can be left below.
Frequently Asked Questions
-
Is there a way to get output like ‘{commentauthor : snippetcharacterlink}’ but with the whole thing as a link?
You can build the output template any way you like using the tags as basic blocks with html and ordinary text as ‘glue’. In this case you could try:
<li><a href="{commenturl}">{commenter}: {commentsnippet:30} ...</a></li> <p>.
It’s a very flexible system and you can even extend it by creating new output tags. -
I wonder is it possible to display recent comments horizontally instead of the standard column fashion?
This applies to the output from the other post plugins too: the output is just a list and you can use CSS to style your list items to either display:inline or float:left. CSS gives you many possibilities.
-
How do I get it so that {link} displays the date instead of the title? If i use the {date} template tag, it shows the date but no link.
You need to use the output template to tell the plugin exactly what to display. For example, if you want a link where the visible text shows the date of posting you could try:
<li><a href="{url}">{date}</a></li> -
How do I format the output of the {date} tag?
The blog’s date format is used by default but you can change it by adding a format string. The Codex has a page on format strings. Let’s say you want the date to look like Sunday, January 14, 2007. The correct format string is ‘l, F j, Y’ so you would write
{date:l, F j, Y} -
I don’t want my post plugin widget to show on the main page, just the single post page. Is that possible?
Yes. The widgets now let you choose the condition under which they are visible. The condition can be set using any combination of WordPress Conditional Tags, e.g., ‘is_home()’, ‘is_category()’, or ‘is_page()’.
In this case the right condition is ‘is_single()’.
-
I’m trying to place the plugin output just after a single post but other plugins seem to get in there first. Any ideas?
Some plugins automatically tack on their output to the end of a post’s content. The only way to get something in between is to hope that those plugins offer a way to turn off that kind of behaviour and let you explicitly place their output with a template tag. The good news is that most plugins are cooperative.
-
I found a script that allows me to put thumbnail images [or anything else] with each post. I was wondering if there was a way to integrate that with this plugin?
If the script stores the thumbnails in a custom field you can use the output template tag {custom} to display them. Try
something like:<img src="{custom:thumbnail}" alt="{custom:thumbnail-alt}" />A similar thing can be done with many other plugins.
-
I want to show the same plugin in two different places but with different output: can I?
Yes. Decide on one of the output templates and other settings you need and set them up from the options pages. The other invocation of the plugin then gets called with passed parameters to get the different output.
e.g.,random_posts('limit=3&output_template={custom:another_field}') -
I want an output template tag to do xxxxxx. How do I invent one?
You have two choices: a) modify the output_tags.php in the post-plugin-library; b) use the {php} tag.
If you go down route (a) (which is actually very easy) please let me know the new tag and I’ll maybe include it in the next version. If you use the {php} tag do be careful not to start WWIII. -
I uninstalled one of your plugins and now my whole sidebar has disappeared. How do I get it back?
You have probably forgotten to remove the code calling the plugin, e.g., recent_posts();.
I find a good practice is to use something like:if (function_exists('recent_posts')) { recent_posts(); }That way, if I ever deactivate a plugin temporarily the website doesn’t fall apart.
101 Comments Add your own
1. Rob | March 17th, 2008 at 6:19 pm
Version 2.5 b3 posted
2. Komik Videolar | March 21st, 2008 at 5:32 am
Great plug-in….
3. Partz Partzescu | April 4th, 2008 at 12:31 pm
Hello,
Can you add a function to load Mybloglog avatars when no Gravatar is available? There is a plugin for this but it doesn’t work with recent comments. The plugins Name is MyAvatar.
4. marka,logo tasarımı | April 8th, 2008 at 12:35 pm
nuxmedya marklaşmaya yönelik kurumsal kimlik tasarımı ile ilgili
profesyonel çalışmalar yapmaktadır
5. Yuda | April 8th, 2008 at 2:59 pm
Hi
Thanks for your great plugins!
I’m using Recent Comments, and on my dev machine (Apache) it runs fine.
However, when uploaded to my host (IIS, as per client’s request), I get a CGI error when trying to access any tab except the General Config tab on the admin section.
And the plugin doesn’t work at all :-(
CGI errors when running WP on IIS are a known issue for years, and there’s a fix that sometimes work using a special wp-db.php file - see recent post here:
http://wordpress.org/support/topic/131976
But usually the problem is on the front-end, and this time it’s only on the back, and only on the Recent Comments plugin tabs.
Maybe there’s something that can be done through the plugin code, something along the lines of the wp-db.php fix.
BTW, the WP version where the trouble arose is 2.3.1, for which the fix should work, but on the Recent Comments case it doesn’t.
I appreciate your help very much!
Yuda
6. Rob | April 8th, 2008 at 9:07 pm
Yuda: I’m not sure I know enough to respond in any useful way. Does this link have any relevant suggestions?
7. Rob | April 8th, 2008 at 9:10 pm
Yuda: How does the wp-db.php fix work — it’s hard to tell where the fix is? Also do you have the same problem with my other post plugins? Or is it just Recent Comments? Could you test?
8. Yuda | April 8th, 2008 at 10:50 pm
Hi Rob, thanks for your reply.
The modified wp-db.php can be found here:
http://wordpress.pastebin.ca/924003?srch=cgi+error
I used it once on another WP Windows installation, where I also had CGI errors, and it evaporated them - so as your plugins are using the DB, maybe what was done in wp-db.php can be applied to other files as well.
I’m aware wp-db.php should (and does) solve DB-related CGI errors across the board, but still… Just a hope.
I will test the other plugins. The client didn’t ask for them, so they can thank you for the nice bonus :-)
Thanks again
Yuda
9. Yuda | April 8th, 2008 at 11:25 pm
Caught it!
I have no idea why, but the URL of any options page, except for General Settings, in both plugins, and only on IIS, includes a redundant section, eg:
wp-admin/options-general.php/wp-admin/options-general.php?page=recent-posts&subpage=output
Anything I did wrong?
Thanks again
Yuda
10. Rob | April 8th, 2008 at 11:32 pm
Yuda: Now that is interesting! I hope that lets me track down the problem… Unfortunately, it is late here and I need to go sleep so it will be a while before I can get back to you.
Thanks for all the effort!
11. Rob | April 8th, 2008 at 11:36 pm
Yuda: Could you send me a copy of the output of var_dump($_SERVER) for both a good page and one that is showing a duplication?
12. Yuda | April 8th, 2008 at 11:51 pm
OK, some more data: after stripping the redundant section, the options pages worked nicely, so did their saving.
But whenever I tried to move to another options page (and only among them) - I got the double URL section.
BTW, this also happened on the General Settings page, it just so happens that on the first call to the Recent Comments/Posts pages, it’s the General Settings tab that comes first - and correct.
But at least now I have a beautiful Recent Comments plugin working on the site! (it’s still under heavy dev, so no URL just yet).
Re the dump file - sorry, no can do, the host (oddly enough called easyCGI - go figure) does not provide access to it.
I do have access to IIS log files - will they help?
Have a good sleep!
Yuda
13. Rob | April 9th, 2008 at 7:53 am
Yuda: Good morning! (Well, cold, wet and unpleasant actually)
It sounds like this should be fixable! (the plugin, not the weather). BTW what I was asking for wasn’t a dump file but just for you to use var_dump($_SERVER) or print_r($_SERVER) on the pages in question so that I can get to see what the values of those globals are. Obviously they are setup differently to ‘usual’ and knowing what they are could really help. Do you see what I mean?
14. John Kolbert | April 13th, 2008 at 2:58 am
I just upgraded the plugin (I’ve been using it for a while) and where my recent comments used to be it now says: “post-plugin library missing”. What does that mean and how do I fix it?
15. John Kolbert | April 13th, 2008 at 3:00 am
Ah, never mind about my comment above. I upgraded using the auto-upgrade feautre on WordPress. I should know to check the plugins website first. Sorry!
16. Rob | April 13th, 2008 at 7:49 am
John Kolbert: No problem! It is unusual for one plugin to require another. I wish there were a way to make it more bulletproof. Any ideas?
17. Chris | April 14th, 2008 at 9:06 pm
Rob, I downloaded the most recent version of this plugin and uploaded it to my plugins dir and it wouldn’t show up in the list of available plugins in order for me to activate it.
Do you know anything about this?
I’m running a standard install of WP 2.5.
Thanks,
C
18. Rob | April 14th, 2008 at 10:20 pm
Chris: I just downloaded a copy myself and it looks fine. Was this an update or a new install? Did you remove any previous folder?
If all else fails, delete the folder you uploaded and try again.
19. Rob | April 15th, 2008 at 10:11 am
Chris: I’m glad to hear it is now working for you.
20. tbronson | April 16th, 2008 at 4:09 pm
Dunno if this belongs here, nor if it’s a known problem in general, but:
After upgrading to RC 2.5b19 using WP 2.5’s automatic plugin updating, my comments page displayed a no results found message. I fiddled around with it, resaved all the settings, but nothing. So I downloaded a copy and ftp-ed to overwrite the installed version, and everything was fine.
I guess it was a problem with WP auto updating, a file wasn’t copied or something?
21. Rob | April 16th, 2008 at 4:35 pm
tbronson: That’s very useful to know, thank you.
22. C.Harv | May 1st, 2008 at 6:08 pm
Looked at configuration page, but can’t figure out how to change “commented on” in Recent Comments to “on.”
Where do I make this edit?
Thank you.
23. Rob | May 2nd, 2008 at 10:57 am
C.Harv: You should be able to pass the new text as a parameter to the tag:
{commentlink: on }Let me know if it works for you or not.
24. Jarred | May 2nd, 2008 at 6:14 pm
Hi Rob. For some reason my category filter is not working. I have it set to exclude a category of posts from showing up, but they still do? If possible, shoot me an email instead of responding here and I can provide more detail?
Jarred
25. Jarred | May 2nd, 2008 at 6:18 pm
Scratch that, I’m not even using your plug-in for this, haha! Love Similar Posts and Recent Posts, though. :)
26. david | May 8th, 2008 at 7:12 am
Any chance you can provide some insight for me? I want comments from a specific category page to be posted on the main page in the main body. I have a middle column where I want this to pull, but I can’t seem to get it to pull. Thanks!
27. ClappingTrees | May 12th, 2008 at 11:15 am
Hi! For some reason, my Recent Comments are not showing up at all. Can help me please?
Josephine
28. ClappingTrees | May 12th, 2008 at 11:20 am
Hey! It’s okay now. :-p
29. Rob | May 12th, 2008 at 1:47 pm
Clapping Trees: I’m glad you solved your problem.
30. Jarred | May 15th, 2008 at 3:33 pm
Hi Rob,
NOW I am using your recent comments plugin (haha) and think it’s great.
A suggestion: I use the group by post function. Is there a way in the next update to have it so that the post with the most recent comment (and all recent comments within the restrictions of the output number) show up on top. Right now, the most recent post with a recent comment within the output restriction shows up first… but that means that the newest comments may not get noticed because they appear midway in the list of posts.
Does that make sense?
Jarred
31. Rob | May 16th, 2008 at 3:48 pm
Jarred: You make perfect sense–you want comments grouped by post but sorted by the date of the most recent comment in each group. But not very straightforward to implement… it has joined the list but don’t expect a quick turnaround.
32. Nick Mouratidis | May 17th, 2008 at 2:21 am
Thanks for the wonderful plugin!
One question though….
Is there a way so Recent Comments displays the i.e. the 5 more recent comments but only one comment per post?
I have the plugin on my blog showing my 5 most recent comments but I hate it that all of them are from the same post. I want only the latest comment from each most recently commented post.
I hope you got what I mean. My english are not so good.
Is there a way to do that?
Thanks.
33. Rob | May 17th, 2008 at 3:12 pm
Nick: There is an easy way if you don’t mind editing the plugin code. In recent-comments.php find the line:
and change it to:
Good luck!
34. MhawSayar | May 18th, 2008 at 8:23 am
Thank you so much for great plugin!
35. Sansnom | May 19th, 2008 at 12:11 pm
Hi,
The plugin works like a charm but links generated go to comments.php. How to make links go to comments_popup.php ? How to make links of recent comments open the comments popup ? Thanks in advance for light,
S
36. Rob | May 19th, 2008 at 3:27 pm
Sansnom: I’ll see if I can take care of that for you …
37. Rob | May 19th, 2008 at 4:48 pm
Sansnom: The new version (2.5.0.2) of the Post-Plugin Library has a new tag, {commentpopupurl}, which can be used to construct links that open up the comment popup window. Let me know if it works for you.
38. Sansnom | May 19th, 2008 at 5:48 pm
Hi,
1000 thanks for your help. I have tried to upgrade the Post-plugin library but impossible to desactivate the plugin ! I click but it doesn’t desactivate the plugin. So I have upload the new version 2.5.0.2 (called strangly 2.5.0.3 on the dedicate plugin page / I have download the 2503 but when upload admin panel tells it’s the 2502). After the upload done, the plugin is already activate (Because of my problem of desactivation) but in the options of Recent comments plugin there is not the {commentpopupurl}… I’m sorry to have these bad news… :-x :-)
39. Sansnom | May 19th, 2008 at 5:58 pm
News : I have succeed to upgrade to the 2503 because the admin page tells me it exists an upgrade and automatic upgrade have worked… but the tag doesn’t appear in my recent comments plugin… Still looking :)
40. Rob | May 19th, 2008 at 6:03 pm
Sansnom: You can still use it… I just forgot to add it to the list of available tags.
41. Sansnom | May 19th, 2008 at 6:20 pm
ok :-)) ! Thanks for everything. It’s perfect now for me !!!
42. Sansnom | May 19th, 2008 at 6:32 pm
Me again… :x Sorry !
Now the link open the right popup but… not in front of the right comment. With commenturl you are sent to the right comment under the right post, with commentpopupurl you are sent only to the right post. When there is lot of comments, it’s difficult… I tell this but perhaps I haven’t done the right thing…
S
43. Rob | May 19th, 2008 at 10:15 pm
Sansnom: I wondered about that myself. I have never used the comments popup before so I don’t know how it should behave — I just took the code of the WordPress template tag comments_popup_link as a guide. I couldn’t see a way to jump to the correct comment. How does the popup usually behave?
44. Sansnom | May 19th, 2008 at 11:40 pm
In fact, it’s a matter of comment-ID. When I use your commenturl, the url made is like that : http://www.mysite.com/2003/11/03/a-topie-1/#comment-11130, when I use your commentpopupurl, it’s like that : http://www.mysite.com/?comments_popup=123 where 123 is the post-ID. In WP, it’s the natural behaviour of the popupup because when you call it usually, you never call a comment in particular. But here, we need to target a specific comment but to make it appear in a popup… and I don’t know how because I can’t find on internet an example of link with these 2 parameters…. F^%£ :(
45. Sansnom | May 19th, 2008 at 11:45 pm
Perhaps It would be better to use comment_popup_script (http://codex.wordpress.org/Template_Tags/comments_popup_script) with the classic url (http://www.mysite.com/2003/11/03/a-topie-1/#comment-11130 where 11130 is the comment-ID), but I don’t know how to code this. I stay searching.
46. Sansnom | May 20th, 2008 at 12:48 am
This kind of link works : “http://www.mysite.com/?comments_popup=1334#comment-10928″ if we put in the comments_popup.php template just after
foreach ($comments as $comment)this :<a name="comment-<?php comment_ID() ?>" id="comment-<?php comment_ID() ?>"></a>,. The last problem is the automatic generation of this link. :)47. Rob | May 20th, 2008 at 10:14 am
Sansnom: That sounds good; I’ll implement it.
48. Rob | May 20th, 2008 at 11:39 am
Sansnom: OK. There’s a new version coming which will jump to the correct comment in the popup window as long as the theme correctly labels the comments: the default theme does; I had to edit Blix to work.
Thanks for the investigative work.
49. Sansnom | May 20th, 2008 at 1:55 pm
It works like Terminator now ! ;-) Thankx again for your plugin.
50. Richard | May 23rd, 2008 at 5:07 pm
(originally posted against ‘Configuring the Post Plugins’ by mistake) Sorry!
need to show comments for PRIVATE posts (not password protected) but This won’t work.
I checked ‘general settings>>show password protected posts’ but nothing is showing, unless I uncheck the PRIVATE setting on a post. I noticed that when all posts in a a category are checked as private, the category won’t even show in the include/exclude category list in the plugin config pages .
Using wp-2.5.1and latest download of plugin here
Any help much appreciated. Thanks.
51. Rob | May 23rd, 2008 at 9:27 pm
Richard: I’m afraid the plugins don’t handle private posts but I’ll investigate whether it would take much work to get them doing so.
52. Richard | May 23rd, 2008 at 9:38 pm
Thanks for that comment Rob. You maybe wondering why I want to make private posts commentable? It’s in conjunction with the ‘Private Plus plugin that grants any registered/ logged in user the right to view any post marked ‘Private’ So we can mark posts private to creat a ‘members section’ for registered userrs.
I’ll keep subscribed to this thread in case you see a work around for this. Thanks again… Richard
53. plywoodindonesia | May 27th, 2008 at 9:59 am
There’s a new version coming which will jump to the correct comment in the popup window as long as the theme correctly labels the comments
54. Richard | June 1st, 2008 at 10:08 am
Is it possible to display ALL site comments in on a dedicated page? Or display all comments from a particular category on a page? Im thinking that if this was possible, we could display in effect a stream of conversations that users could browse and then click to visit in order to continue their own comments. A bit like a forum showing all posts on the forum, in a certain category, or section. Comments and forum conversations are very similar so this might be a useful feature. Any ideas Rob?
TIA
55. Rob | June 1st, 2008 at 11:03 am
Richard: One ‘hacky’ way of doing it would be simply to specify a very large number for the number of comments to show (limit). If you get some mileage out of your idea it would be easy enough to add a ’show all’ option. I’ll be interested to see how it works out.
56. Richard | June 1st, 2008 at 11:47 am
Ok, her’s my starter.
1- Created a new page template called comments-full.php
2- inserted
<?php recent_comments(); ?>in the page3- created a new page called comments using that new template
4- All comments are show in the page as desired.
TODO
I am already using the comments in the side panel and using some restricted options, such as limiting the comments to 5 items only. In the comments-full.php page, I want to specify a new set of variable that won’t affect my sidebar comments settings. Such as adding {author} {commenter} {categorynames} {date} {excerpt} {gravatar}
How would I do that?
57. Rob | June 1st, 2008 at 3:30 pm
Richard: You can specify a parameter string, e.g.,
<?php recent_comments('limit=9999&output_template={author} {commenter} {categorynames} {date} {excerpt} {gravatar}'); ?>58. Richard | June 1st, 2008 at 4:52 pm
Kind of thought that might be the case … Thnaks, I’ll give this a try.
59. 2mk | June 2nd, 2008 at 9:22 am
I’ve got this error
Fatal error: Call to undefined function where_just_post() in /home/ismart/public_html/howtodownloadfiles.com/wp-content/plugins/recent-comments-plugin/recent-comments.php on line 99
60. Rob | June 2nd, 2008 at 10:23 am
2mk: You need to download the latest version of the Post-Plugin Library too.
61. chris | June 3rd, 2008 at 7:14 pm
Just did the lastest up not 1 hr ago and now get this error when trying to loginto the admin panel
Fatal error: Call to undefined function ppl_plugin_basename() in /home/bananabe/public_html/wp-content/plugins/recent-comments-plugin/recent-comments-admin.php on line 244
62. chris | June 3rd, 2008 at 7:38 pm
line 244 of the code has the error in it on the latest update, changed it to the previous version to read:
add_action(’activate_’.str_replace(’-admin’, ”, plugin_basename(__FILE__)), ‘recent_comments_install’);
and it worked
63. Rob | June 3rd, 2008 at 9:19 pm
chris: Are you sure you got the latest version (2.5.0.7) of the Post-Plugin Library? It provides the function ppl_plugin_basename which handles earlier versions of WP having problems with windows servers.
64. chris | June 3rd, 2008 at 10:24 pm
I just did the upgrade to 2.5.0.7 on another wp 2.5.1 install and got this:
Plugin failed to reactivate due to a fatal error.
Fatal error: Call to undefined function ppl_plugin_basename() in /home/bananabe/public_html/chrisneaves/wp-content/plugins/recent-comments-plugin/recent-comments-admin.php on line 244
And of course taking out the ppl_ alllowed the plugin to work again and no fatal error.
But from experiments here it all goes mad if the post plugin library is not installed first, as happened when you use the plugin central plugin to upload the updates
65. Rob | June 4th, 2008 at 1:00 am
Version 2.5.0.8 fixes, I hope, the ppl_plugin_basename problem. Don’t forget to get Post-PLugin Library 2.5.0.8 too.
66. Rob | June 4th, 2008 at 10:41 am
If you had the misfortune to download version 2.5.0.7 you may run into problems when you try to update to a newer version. I managed to introduce a circular dependence between this plugin and the Post-Plugin Library which means trying to update either from the admin plugins page will cause an error. Instead you need to delete the 2.5.0.7 version from the server (Post-Plugin LIbrary too) and upload the newer one and the problem should be solved. I apologise for any worry or inconvenience.
67. steve | June 6th, 2008 at 10:29 pm
I am working on a site on wp v2.3.2. When I install them I cant acitvate the post-plugin librairy without getting a fatal error. and when I install and activate recent comments all the admin screens return blank. If I delete these two plugins, everything returns to normal. Any thoughts on what I should try.
68. Rob | June 7th, 2008 at 9:52 am
steve: Are you sure you have the latest (2.5.0.8) versions? 2.5.0.7 was causing some issues.
Can you let me know some details about your server setup? Windows/Linux, versions of PHP, MySQL, etc.?
Meanwhile I’ll try installing here on a clean WP2.3.2 and see what happens.
69. gary | June 24th, 2008 at 4:18 am
hello Rob, I’d like to give you a heads up re what seems to be a recurring problem with my recent update to 2.5.0.9 for both recent comments and post plugin.
Directly after upgrading, all my recent comments on the index page disappear. My settings are:
posts to show: 10
posts to skip: 0
show password protected: yes
show static pages: both pages and posts
display posts that are: (all no)
ignore posts: (no date)
omit current post: no
show just current post: no
match the current posts category: no
match the current posts tags: no
match the current posts author: no
type of comment to show: all kinds of comments
omit comments by author: no
omit comments by registered users: no
I have two 2.5.1 wp blogs. On the 1st blog, all comments disappeared, but suddenly reappeared after a few days.
On this 2nd blog, I just updated all plugins and again, all comments disappeared. I’m waiting for them to reappear again, but I’ve decided to write you about it as well.
Does it cache somewhere first? I’ve tried uploading, deleting, uploading again, logging in and out, to no avail. Any help you can extend would be great.
many thanks!
Gary
70. Rob | June 24th, 2008 at 9:50 am
gary: The problem is that your setting tell the plugin not to display anything! You need to change ‘display posts that are’ to be yes for at least published.
If you when you update the plugins you make sure they get deactivated and reactivated any new default values get added–this one would have set to display published posts.
Good luck!
71. gary | June 24th, 2008 at 2:25 pm
@Rob oh my gosh you’re right. LOL. As usual, an oversight on my part. Thank you!
72. Marc | June 26th, 2008 at 2:15 pm
Hi Rob, thanks for this wonderful plugin. Just installed it and for some reason the output links on the homepage look like http://domain/.html#comment-3 which leads to 404 errors. In all other pages the output link is correct (http://domain/post-name.html#comment-3)
My output template is {commentexcerpt} {commentlink}
I’m using WP 2.3. Hope you can help!
73. Rob | June 27th, 2008 at 10:35 am
Marc: I’ll investigate!
74. Rob | June 27th, 2008 at 10:44 am
Marc: How do you set up your homepage?
75. kaneesha | June 29th, 2008 at 2:42 am
hello,
is it possible to show category specific comments?
for example in archive.php:
and it shows now only those specific comments from the displayed category like :
http://myblog/wordpress/category/one/ = shows now only the comments which are in category “one”.
http://myblog/wordpress/category/two/ = shows now only the comments which are in category “two”.
possible?
thanks for any help.
kan.
76. Marc | June 30th, 2008 at 9:29 am
Hi Rob, thanks for getting back, not sure to get what you mean. If you refer to homepage widgets, the sidebar widgets are as follows :
1- Sensitive tag cloud
2- Categories
3- Recent comments (yours)
4- Links
Also, my permalink structure is :
/%postname%.html
77. Marc | June 30th, 2008 at 5:38 pm
Rob : update : got the same issue if I use {link} instead of {commentlink} in the output setup. I also tried upgrading to the latest version of the library and the plugin, it didn’t fix the problem.
78. Rob | June 30th, 2008 at 5:46 pm
kaneesha: If I understand you correctly then I think you can do what you ask but it’s success will depend on whether your categories are ‘flat’ or ‘hierarchical’ or ‘tag-like’.
I suggest that you use the sorting facility on the plugin’s output settings screen. Sort the comments by {categoryid} and choose something like {categorylinks} as the group template. If you want to exclude some categories you can do that from the filter screen. Play around and see if you can get the output you want.
79. Rob | June 30th, 2008 at 6:26 pm
Marc: I was meaning whether your homepage showed the usual list of recent posts or was a static page.
I was wondering if the problem is with your permalink structure but that still doesn’t explain why the permalink for a comment should be getting the permalink for the homepage…
The {commentlink} tag doesn’t really do much beyond calling WordPress’ get_permalink() function to do all the work. So either there is something screwy with the permalinks or for some reason the plugin isn’t picking up the correct post IDs. But if it were getting bad IDs I would expect the {commentexcerpt} to be bad also.
I am puzzled.
80. kaneesha | June 30th, 2008 at 6:38 pm
thanks rob, i’ll give this a try
81. Marc | July 1st, 2008 at 9:25 am
Rob: thanks for the details, will let you know if I manage to fix this. (yes, the homepage shows the usual list of recent posts).
82. Peng | July 2nd, 2008 at 8:12 pm
Hi Rob,
Your plugins are excellently thought out and written. I just started using your set of plugins and am impressed by the quality of the code.
83. Rob | July 2nd, 2008 at 9:22 pm
Peng: Thank you very much!
84. Lise | July 3rd, 2008 at 9:35 pm
Hello,
Waiting for the .pot file to translate the plugin ;-) I wrote a little documentation in French about Recent Comment
http://liseweb.fr/BLOG/?p=809
85. Rob | July 4th, 2008 at 10:42 am
Lise: Thank you for your translation/tutorial!
I am sending you a .pot file by email for you to have a look at. I am not sure my code is properly set up for translation so maybe you could give me your opinion?
86. Vladimir | July 22nd, 2008 at 11:42 pm
is it available as a widget?
87. James | July 26th, 2008 at 9:20 am
Just had a pretty spectacular bug which looks to have been the work of Recent Comments, I thought I should give you a heads up. I can’t provide any debug info as I had to get it off the server.
Had been in use for a long time without issue, but for no apparent reason (and in response to no user action) for the last couple of days it would start some kind of crazed mysql DB access routine which lasted several hours each day, overloading the server with huge numbers of manipulations of the taxonomy and relationships tables for all the posts.
During this period the server would slow to a crawl under what looked to have been dozens of queries a second. The entire DB is only a few mb so I think it must have got looped into something, as it could have done anything to the entire DB a thousand times over with all that CPU time?
I may have time to test and reinstall later, so I will try to provide any details then. Was a bit urgent with the server in meltdown.
88. Rob | July 26th, 2008 at 12:16 pm
Vladimir: Yes, it automatically installs a widget.
89. Rob | July 26th, 2008 at 12:20 pm
James: That sounds like an important issue to get to the bottom of!!! Can you let me have whatever evidence you have that makes you think Recent Comments was the culprit? I’d like to find out what’s going on and fix any possible problems.
90. Nasir Mahmood | July 26th, 2008 at 3:22 pm
Does this plug in work on its own or only for blog powered sites? I want my visitors to be able to leave comments about particular articles on my site. I’m currently using a forum wwww.pristinepakistan.com/mainsite/forum from SMF.
91. Nasir Mahmood | July 26th, 2008 at 3:27 pm
Also, does it work for Joomla type sites. I used Joomla tp create a site but again I want users to be able to leave comments about the articles that can be read by following a link. for example “”Decent Homes”" xx comments, by xx users
92. Rob | July 26th, 2008 at 8:22 pm
Nasir: This is a WordPress plugin only.
93. James | July 27th, 2008 at 1:28 am
I did the trial and error plugin deactivation, and the load only subsided on recent comments going away. Without it on it has not recoccurred. As it was causing havoc on a production site, I’m afraid I didn’t test it too thoroughly. Also, I think only WP itself and RC have any reason to be accessing those tables, of the plugins on there.
It would persist even when restarting the server, and it was tearing through the entire DB (only 5mb) for hours using all the CPU on the server. Somebody with the hosting company suggested it might be something cronned, given the reoccurence, but it was definitely coming from within WP (using the WP only account), and turning off RC put a quick stop to it. Traffic on the site was only normal (several hundred visits an hour), and it is at any rate WP-Cached.
As I can’t mess around too much on the site there is a limit to what I can present - my apologies.
I have changed around the PHP on the server substantially, so I will brave it again when I can watch over it… I’ll report back if it continues or abates.
94. Kestrel | August 1st, 2008 at 11:33 pm
Wonderful plugin! Just a couple feature requests, if I may: The option to use a default gravatar if the commenter doesn’t have one, and the option to resize gravatars.
Once again, outstanding work!
95. Kestrel | August 1st, 2008 at 11:35 pm
Oops…and one more thing (perhaps I haven’t found it yet): When grouping by post, be able to limit the number of comments shown per post. (E.g., 15 comments max, no more than 5 per post.)
96. Rob | August 2nd, 2008 at 10:06 am
Kestrel: The gravatar output template tag already handles the cases you mention. The documentation says:
{gravatar:size:rating:default} : Displays a globally recognised avatar based on the commenter’s email address. By default, size is 96px. The ‘default’ parameter lets you specify the uri of an image to use when the commenter has no gravatar. Alternatively, you can specify ‘wavatar’, ‘monsterid’, or ‘identicon’ to have an individualised image returned as default.
I’m afraid your second request — limiting by post — has proved much harder to implement–the query gets quite rococo–and is shelved for the moment.
97. Kestrel | August 2nd, 2008 at 5:33 pm
Thanks Rob :) Actually, I was able to go into the code itself and do the same thing option does. Totally missed the options when I was looking there; all I saw was {gravatar} — my bad!
I don’t know if it’s any help, but Get Recent Comments plugin lists x comments for n posts; I wasn’t real happy with how it worked in my new theme, which is how I found yours.
Thanks for the quick response!
98. Rob | August 3rd, 2008 at 10:48 am
Kestrel: Thanks for the information.
99. Erum | August 6th, 2008 at 12:01 pm
Really great plugin!! Thanks
A feature request:
I have installed a plugin called KeywordLuv. It lets you enter your name as YourName@YourKeywordsHere and then displays it as
YourName From YourKeywordsHere with YourKeywordsHere as the main link.
Now most of my commenters are using this format. However, you can imagine what it looks like in my recent comments widget in the sidebar.
Will be great if you can incorporate the same in your plugin. Lots of people have started to use the Keyword Luv plugin and will be happy to have this option in your plugin as well. Thanks!
100. Rob | August 6th, 2008 at 3:43 pm
Erum: I will include a call to the right filter in the next release. If you want to make the change right away you will need to edit output_tags.php in the post-plugin-library. The last line of the function otf_commenterlink needs changing from
return $value;to
return apply_filters('get_comment_author_link', $value);After the edit the {commenterlink} output tag will show a link to the comment author properly filtered.
101. Erum | August 6th, 2008 at 7:47 pm
Thanks! That worked like a charm!
Leave a Comment
Trackback this post | Subscribe to the comments via RSS Feed