WordPress Top Commenters Plugin / Widget

This plugin will add a list of the most frequent commenters posting to your blog. They are gathered in descending order (highest number of comments at the top) The list items will be links to the comment author’s URL, if provided.

The following parameters are configurable by the user, either from the widget admin interface or directly (if used as a standalone plugin):

  • Number of people to show
  • List of names to exclude from the list: An array of names to be ignored from the counts.

Download FreePress Top Commenters Widget

Installation:

  1. Extract all files in the archive into your plugins directory. The archive should contain a folder called “freepress”, which should be placed directly under the plugins directory, and all the files distributed with this plugin should be in the “freepress” folder. For example: /var/www/wordpress/wp-content/plugins/freepress/topCommentersWidget.php
  2. If you are using the widgets plugin, the tagboard will automatically appear as an available widget for your sidebar.
  3. If you prefer to manually add the tagboard to your theme, you can insert the following code wherever you’d like the tagboard to show up:

    If you wish to manually specify the arguments listed above, add them in the order listed. The number of people to list will default to 10, and the names to exclude will default to an empty array (which will include all commenters).

*Note: This version of the plugin has been tested in WordPress 2.x as well as recent versions of WordPress MU. Please let me know by commenting here if you run into any issues.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

90 Responses to “WordPress Top Commenters Plugin / Widget”

  1. JB says:

    Good idea.

  2. JB,

    I’ve got an unusual issue. My own comments are showing up as the top commenter despite the fact that I’ve put my nickname in the exclude list on my blog. I am wondering if the fact that my nick has a period in it matters? Though I did put it in there both with and without the period. I also changed the name I was using for posting at one point so I have my old one in there and it is indeed excluding that one. Just not my current one.

    Also, out of curiosity do you think you’re going to have time to incorporate the “last X number of days” into the plugin any time soon? If not, do you have any hints as to where that change my be best and I’ll take a look at it?

    Thanks,

    John

  3. JB says:

    Hopefully I’ll take a look at that new feature soon.

    I can’t think of why the exclusion thing may not be working; I’ll take a look at that as well. I’m assuming you’re talking about the “John P.” one?

  4. Sorry about the slow reply. Yes, the one I’m referring to is the “John P.” user. I used to go by “The Man” and luckily that one is not showing up… :-)

    John

  5. skyati says:

    hye JB.. nice plugin.. good job~ :D
    i want to ask, if i just installed the plugin, will it count from the second i installed it, or it will count the previous comments?
    because i cannot see any commenter list at my site now.. thanx..

  6. JB says:

    Should count all previous comments.

  7. [...] will also be installing Top Commenters Plugin. Here is a description provided by the designer: This plugin will add a list of the most frequent [...]

  8. ck says:

    I’d love to use this plugin, but after downloading I am unalbe to extract the files…have tried multiple ways.

  9. JB says:

    Should just be a regular gzipped tar file; tar -xzf topCommentersWidget.php.tar.gz

    Maybe I need to post zip versions for people who can’t get the gz versions for whatever reason.

  10. Vic says:

    This plugin is a must peeps love to see themselves on the list.

    Thanks

    Vic

  11. SEO Blogger says:

    hi, I’m just wondering if there’s a way to ‘Reset’ the count after let say 1 week, 1 month, etc. (just like the Show Top Commentators plugin(?

  12. Paul Oyler says:

    I take care of my Pastor’s blog for him and I’ve been using this plugin for quite some time now and everyone really seems to love it. In fact, 10 or 15 of his ‘regulars’ tend to have fun trying to gain the “top of the list”.

    The problem is that prior to this being installed, there were 4 regular commenter’s who used a different, silly name every time they left a comment.

    Is there a way that I can adjust totals in the MySQL database to bring their totals up to what they should be? And if so, what exactly would I modify?

    Thanks again for a great plugin!

    Grace and Peace,
    Paul

  13. JB says:

    Paul,

    The only way I can think of would be a SQL query that would update the comment author name on all the comments you know are theirs to a common name that you select (whichever one they use now).

    I’ve done that before on here, actually, shortly after I made the plugin, for the same reason you describe.

    I can check and post the exact SQL if you’d like.

  14. Paul Oyler says:

    That would be great JB. I learned the hard way that I’m not very good doing my own SQL queries, it can get quite messy when something is in the wrong order…

  15. JB says:

    Sorry for the long delay in replying; I’m just pulling into town from a long vacation. I’ll post some sample SQL tomorrow.

  16. Scott CLark says:

    I keep getting an empty value for $user_data->user_url even when commenters have inserted URLs for their comments. The rest of my blog works great. Latest WP version.

    ???

  17. BAM says:

    I would like to manually add this widget to my sidebar.php. For some reason in my browser it is not showing the code you typed in. Can you please send me the code so that I can add it to my sidebar.php? Thanks and I look forward to using this widget!

  18. Kate says:

    I have added the widget and it is displaying in my sidebar, but the name of each commenter is just plain text, there is no link to their site – I used the Top Commenters plugin with my previous theme were it was pasted into the sidebar directly and the names were linked then. Any help appreciated.

  19. JB says:

    There was a recent change to only grab commenter URLs from registered users (from their profile) rather than the one(s) supplied in the comments themselves.

    I like it better that way for several reasons, but I think in the next version I’ll make it an option for the admin to set.

  20. anthraxxxx says:

    What is the code to make it show up in our site if we are doing it manually?

  21. hurry says:

    Yes, I need the manual insertion code too. I can’t see it in your above post. Please.

  22. JB says:

    In lines 116 and 120 of the current version of the plugin file (4.1), change $user_data->user_url to $commenter->comment_author_url

  23. Mihai says:

    Very cool plugin..I like it

  24. [...] FreePress Blog » WordPress Top Commenters Plugin / Widget Mwoh. Misschien zet ik dit er wel ergens op. Benieuwd, eigenlijk wel een beetje. (tags: plugin wordpress) [...]

  25. [...] FreePress Blog » WordPress Top Commenters Plugin / Widget Mwoh. Misschien zet ik dit er wel ergens op. Benieuwd, eigenlijk wel een beetje. (tags: plugin wordpress) [...]

  26. Missy says:

    Does this plug-in come in a ZIP file? I’m having trouble downloading it as tar.

  27. Caitlin says:

    Great plugin!
    I like the new change of only grabbing the URLs of registered users, but I agree that making this an admin option would be nice.
    Thanks for creating this! ^_^

  28. [...] Top Commenters Plugin-Widget:Adds a linkable list to the sidebar of the top commenters on your site. [...]

  29. [...] can give the reward for the top commenter either by installing Top Commenter widget for Blogger and Wordpress Or you can write a monthly top commenter right at your blog with the link to their [...]

  30. [...] FreePress Top Commenters Widget adds a list of the most frequent commenters posting to your blog. It does not work well out of the [...]

  31. Cool Change says:

    [...] 6. Top Commenters – This plugin will add a list of the most frequent commenters posting to your blog. They are gathered in descending order (highest number of comments at the top) The list items will be links to the comment authorâ??s URL, if provided. The following parameters are configurable by the user, either from the widget admin interface or directly (if used as a standalone plugin): a. Number of people to show b. List of names to exclude from the list: An array of names to be ignored from the counts. [...]

  32. Free Weblog says:

    Thanks for this plugin, this is exactly what I was looking for!

  33. Jessie Stone says:

    Thanks for the review guys, now i know about plugin. but i cant see the code in the upper side of your post JB please post it again..

    Thanks

  34. Most bloggers comment was not apprieciated on most blog but with this great system. I am sure more people would like to leave their comment. cheers

  35. Good Thank you admin

  36. [...] your commentors – through a top commentors plugin, people can get a link back to their site if they comment enough. The way the plugin works is that [...]

  37. Awesome, thanks for the plugin! It really works to increase the number of quality comments on your site.

  38. Ex says:

    Great Plugin

  39. Acai Optimum says:

    I cant get the plugin download to open.

Leave a Reply