WordPress 2.x Plugins – Show Top Commentators

If you came to this plugin looking to make your website more popular, you may be interested in my latest blog, Financial Hack where I blog about the time, effort and dedication it really takes to create a six figure Internet income. And onto the plugin:


Latest version: v1.06 [ View Change Log ]

Encourage more discussion from your readers, by displaying their names (linked to their website if desired) and number of comments they have made recently to your sidebar.

Formats Available: ZIP (~2 KB)

1) Download and Extract
Download and extract the file to your computer. Inside you will find ‘show_top_commentators.php’.

2) Upload and chmod
You will need to upload ‘show_top_commentators.php’ to your WordPress plugin directory. This directory is typically located at /wordpress/wp-content/plugins/

You will also want to chmod this file to 777 after uploading, although this is not required.

3a) For blogs that use widgets
At this time, the official version of this plugin does not come with built in support for widgets. (By the way, if you aren’t sure whether your blog uses widgets or not, it probably doesn’t. In that case, follow the instructions in 3b.)

However, there is a simple solution available thanks to the author of ExecPHP, another plugin that gives plugins like Show Top Commentators widget support. Here is the direct download link for ExecPHP. Once ExecPHP is uploaded and enabled, go into your widgets panel ‘Presentation’ -> ‘Widgets’ and drag ‘PHP Code 1′ from the available widgets to your sidebar. Click the configure button on the PHP Code 1 widget and in the large text area paste the following code.

<?php if(function_exists('ns_show_top_commentators')) { ?>
<ul><?php ns_show_top_commentators(); ?></ul>
<?php } ?>

Type in ‘Top Commentators’ in the first text box. Be sure to hit the SAVE button.

Additional Notice: I noticed recently that there are several other versions of the Show Top Commentators plugin that have been modified by people to allow for widget support. Nice job guys! I have not had time to look at any of these very closely yet but they may be a great alternative to using ExecPHP.

Here they are:

3b) For blogs that do not use widgets
Inside your WordPress control panel, you will need to click ‘Presentation’ -> ‘Theme Editor’ -> ‘Sidebar Template’ (or whichever template you want the plugin to show up in).

Add the following code to your template, to allow the plugin to display the top commentators.

<?php if(function_exists('ns_show_top_commentators')) { ?>
<h2>Top Commentators</h2>
<ul><?php ns_show_top_commentators(); ?></ul>
<?php } ?>

4) Modify Options (not required)

There are currently 9 options you can modify inside ‘show_top_commentators.php’ that make the plugin function differently. These are located near the top of the file and should be editable from your WordPress control panel (‘Plugins’ -> ‘Plugin Editor’). (Note: You will not be able to edit these options unless you earlier chmod’d show_top_commentators.php to 777 (see step 2))

reset (‘hourly’, ‘daily’, ‘weekly’, ‘monthly’, ‘yearly’, ‘#’, ‘all’)
This tells the plugin how often it should reset the comment count for users. For example: If you choose monthly, only comments from the current month will be counted towards a visitors comment count. If you use an integer such as 30, it will show all commentators for the last 30 days. If you use the keyword ‘all’, it will never reset the comment counts.

limit (any positive integer (1 – infinity))
This will limit the maximum number of users you want shown.

filter_users (comma seperated list of usernames)
This will filter out any usernames you don’t want shown. For example: ‘Administrator,Admin’.

filter_user_ids (comma seperated list of user id’s)
This will filter out any user_ids you don’t want shown. For example: ‘1,2’. 1 is almost always the ‘Admin’ user.

filter_urls (comma seperated list of website URLs)
This will filter out any website URLs you don’t want shown.
Note: This does not mean a commentator that used one of these URL’s will be removed entirely from the list. Just the URL.

none_text (text)
If no commentators are available (maybe its the beginning of the month and nobody has commented yet), we can show a message instead.

make_links (1 for yes 2 for no)
When visitors make comments, they are given the option of adding their website URL with their comment.
Setting make_links to 1 will make this visitors username into a link to the website URL they added to their latest comment.
Setting make_links to 2 will turn off this feature.
If a user never provided a link with their comment, their name will simply not be linked.

number_of_comments (y=yes, n=no)
If you want to only display the commentators name and not the number of comments he/she has made, set this to ‘n’.

name_limit (any positive integer (1 – infinity))
Sometimes a commentator’s name is so long that it may wrap or even break your web page design. By limiting their name to a maximum number of characters you can avoid this problem. An ellipse is used if the commentators name is longer than the limit imposed.

start_html (html)
Allows you to wrap each commenters name/link in HTML of your choice. Default is <li>

end_html (html)
Allows you to wrap each commenters name/link in HTML of your choice. Default is </li>

5) Activate Plugin
Activate the plugin from inside the WordPress control panel.
(‘Plugins’ -> ‘Activate’)

Change Log:
v1.06 – 2008-07-05
Bug Fix: Fixed problem where 2 or more commentators with the same name would display incorrectly.

v1.05 – 2007-06-12
Bug Fix: Fixed problem where ‘filter_urls’ worked incorrectly.
Bug Fix: Fixed problem where commentators with URL’s of only ‘http://’ would incorrectly link their name.
Change: Changed the logic for retrieving a commentators URL from their most used URL to their last used URL.
New Feature: Added ability to decide whether or not to show the number of comments for each commentator.
New Feature: Added ability to filter our commentators based on their user_id.

v1.04 – 2007-03-22
Bug Fix: Fixed problem where ‘reset weekly’ option worked incorrectly. (Thanks to the commentators at John Chow’s blog for making us aware of the issue.)

v1.03 – 2007-02-09
New Feature: Added ability to specify last ‘x’ number of days for the ‘reset’ option.

v1.02 – 2005-12-10
Bug Fix: Fixed problem where commentators name/link was listed even if the comment was not yet approved.
New Feature: Added ability to specify start and end HTML to wrap commentators names/links in.

v1.01 – 2005-12-04
Bug Fix: Fixed SQL error that would occur when a commentator’s name had quotes in it.
Bug Fix: Fixed problem where pingbacks were treated as real commentators. (Thanks to Blaine Moore for bringing this to our attention)
New Feature: Added an additional option, which allows the admin to specify a maximum number of characters for a commentator’s name.

v1.00 – 2005-12-03
Plugin released under GPL license.

If you have any issues with the plugin that need to be resolved, please contact me at info@savingadvice.com

2,276 Responses to WordPress 2.x Plugins – Show Top Commentators

  1. Pingback: Melhores plugins para wordpress | Kit Web Negocio

  2. Pingback: 精选100个Wordpress常用插件 互动篇 « WordPress 专题

  3. Pingback: teste9 » Stationx

  4. Pingback: teste10 » Stationx

  5. Pingback: Wordpress Plug-ins that I use

  6. Pingback: Top Commentators Plug-in: Get a free link

  7. Pingback: 100大wordpress插件 | 去113博客

  8. Pingback: 10 WordPress plugins to get more traffic | WebSeoPress

  9. Pingback: - Daily Bloging

  10. Pingback: Tổng hợp các plugin tốt nhất cho WordPress – M'đrăk Online-Free share Everything

  11. Pingback: Các plugin tốt nhất cho WordPress | Website của lớp …

  12. Pingback: Các plugin cần có cho Seo | Lam web mien phi

  13. Pingback: wordpress评论插件 | IT人生

  14. Pingback: Rank dos Melhores plugin para Wordpress | linuxnorules.com.br

  15. Pingback: 100+WordPress留言插件(转) | 开溜网

  16. Pingback: Linuxnorules » Blog Archive » Rank dos Melhores plugins para Wordpress

  17. Pingback: Blogdulich

  18. Pingback: 3 способа превратить читателей в комментаторов » SEO аналитика в разрез

  19. Pingback: Tổng hợp các plugin tốt nhất cho Wordpress | LLODO.COM - Tin Học

  20. Pingback: Các Plugin tốt nhất cho WordPress | ..:: Nekennick's Blog ::..

  21. Pingback: Plugins |

  22. Pingback: Some Great WordPress Plugins To Drive More Traffic | InkThemes

  23. Pingback: Tổng hợp các plugin tốt nhất cho WordPress - Diễn đàn Hội Tụ Số

  24. Pingback: Wordpress Blogging - 全英文插件集合

  25. Pingback: TESTE IMAGEM | Juventude de Atitude

  26. Pingback: Some Great WordPress Plugins To Drive More Traffic ‹ 24X7Tuts

  27. Pingback: Внутренняя оптимизация блога на Wordpress | статьи и новости

  28. Pingback: 14 Best wordpress plugins that should be installed on a wordpress blog

  29. Pingback: Top 10 Free WordPress Plugins

  30. Pingback: SEO – Link Building Series: Arrest Page Rank leak & Optimize Your WordPress Blog - Information that you need… - Digital Artifacts Online

  31. Pingback: Các plugin tốt nhất cho WordPress - 101cachkiemtienonline.com | 101cachkiemtienonline.com

  32. Pingback: 12 Best plugin for you wordpress blog | Cyberwebkit

  33. Pingback: Anonymous

  34. Pingback: 100 Recommended Plugins For Your Wordpress Blogs | Tips and Guides to Online Business Success

  35. Pingback: 30 多个 WordPress 评论插件 | 爱折腾

  36. Pingback: 30+ Plugins for WordPress Comments

  37. Pingback: 30+ Plugins for WordPress Comments | Blog - Atozanswers

  38. Pingback: Una lista con i 50 migliori plug-in gratuiti per WordPress . | Hostingwebitalia

  39. Pingback: Лучшие плагины Wordpress | Век Информационных Технологий

  40. Pingback: 90 melhores Plugins WordPress Facebook | Site para Empresas – Blog sobre Internet e Criação de Site

  41. Pingback: Os melhores plugins para o wordpress | Agrega Blog

  42. Pingback: 最实用的 WordPress 评论插件

  43. Pingback: Tổng hợp các plugin tốt nhất cho Wordpress - Diễn đàn quản trị mạng, MCSA, MCSE, MCITP, Thiết kế web

  44. Pingback: fdfdfdf | Не Курю

  45. Pingback: Các plugin tốt nhất cho Wordpress | Cộng đồng khoa học công nghệ Việt Nam

  46. Pingback: 18 | Pepzol.com

  47. Pingback: 【转】WordPress评论留言插件 百款全收集 | WP痴博客

  48. Pingback: 【转】WordPress评论留言插件 百款全收集 | 博客娃子-一切因为博客而改变

  49. Pingback: The new blog must have WordPress Plugins

  50. Pingback: – Demo | Do Minh Hieu–

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>