My Top Commentators Widget: Quick & Dirty
Updated 06/Jan/2010: Download Top Commentators Widget v.1.3 (refer to the README for customization). And, yes, it works with WordPress 2.9.1.
Holy Molly, I never thought I’d make one so soon, but it’s true! I’ve created my very first WordPress Widget!
Yeah, well, not exactly. I adapted this Top Commentators Widget from the actual Show Top Commentators (hereto known as STC) plugin by PFA. Here’s actually what happened:
- Went to Giuk.Net as usual, saw MrBadak talking about his newly installed plugins, and I hopped by.
- Excitedly surfed into Personal Financial Advice to download the STC plugin.
- Followed the instructions to the dot, only to find out later that it won’t work if you have Sidebar Widgets activated.
- Googled for a widgetized version of STC, only to find that the download links don’t work.
- Desperately needed to install it, so I did the next best thing a desperate grrrl would do — build one.
- Accidentally sacrificed a few other widgets due to carelessness, but nevermind as I always back-up.
- Destabilized my site with countless access error messages and loads of SQL warnings.
- Trying so hard to stay true to the original codes, only to surrender at the last minute and decided to strip down most of the original codes off, therefore FINALLY COMPLETING MY MISSION!
But wait….
Crapazoola. After more googling, I found out that the STC plugin does run on widgets, if you installed the executable PHP for Text widgets first.
My ego is effectively squashed by this new-found knowledge. It took me an embarrassing 8 hours just to get this heck of a plugin to work as a Widget, which goes to show how badly I need to polish up on my PHP.
You may happily use this full-fledged Widget by downloading here:
Download Top Commentators Widget v.1.3
Installation instructions
(WordPress 2.5 and above)
- Unzip to get the topcommentators_widget.php file.
- Upload the file into the wp-content/plugins folder.
- In your WP admin console, go to Plugins and activate Top Commentators Widget.
- In your WP admin console, go to Design | Widgets and click Add beside the Top Commentators widget.
- Click Edit on the Top Commentators then scroll down and click Change.
- Drag the Top Commentators to wherever you want it to be, and click the Save Changes button if you want to stick to the default values.
- That’s it!
(WordPress 2.3.3 and lower)
- Unzip to get the topcommentators_widget.php file.
- Upload the file into the wp-content/plugins folder.
- In your WP admin console, go to Plugins and activate Top Commentators Widget.
- In your WP admin console, go to Presentation | Widgets (for WordPress 2.2 and later) or Presentation | Sidebar Widgets (for older WordPress versions), and drag the Top Commentators widget to wherever you want it to be, and click the Save Changes button.
- Nah, that’s it! Remember to read the FAQ to see what options you can play around in the Top Commentators Widget.
Customization
Please refer to the README file or the WordPress Plugins Directory page for TCW for the latest changelog, available options, snapshots, buglist, etc.
Bug Reports
The comments on this page has been disabled. Please go to WordPress.org and post your issues in the Support Forum. Remember to tag your posts as top-commentators-widget (remember the widget part!).
My Wish-List as of 05/Oct/2009
- Allow TCW to be used in more than one sidebar within a blog.Totally forgot about this in v.1.2. Will do so for the next version.
- Allow users to select the default Gravatar to be used.
Donate?
Sure, if you want to, though it’s not necessary. Just PayPal any amount to me at “webgrrrl”.”net” (remember to remove the quotes).





[...] Top Commentators Widget – Adds a sidebar widget to show the top commentators in your WP site. Adapted from Show Top Commentators plugin. By Lorna Timbah [...]
[...] menghargai penulis komentar dengan memasang beberapa plugin yang membela kepentingan komentator. Top Commentator adalah plugin yang pertama kali dipasang. Plugin yang dapat di unduh disini, mempunyai fungsi untuk [...]
I am sure this question has already been answered but its such a long comment line, you might want to put this answer in your description but is this plug in dofollow?
[...] Top commentator : ce widget permet d’afficher dans la side-bar les meilleurs commentateurs du blog avec le nombre de commentaires qu’ils ont écris. J’ai rajouté un lien vers leur blog, comme c’est gagnant-gagnant. Vous pouvez donc apercevoir les derniers commentateurs sur la gauche. Remise à zéro tous les mois. Pour l’instant les commentateurs présent sont déja dans ma blogroll, mais bon ca fait toujours un lien de plus. [...]
[...] Top Commentators [...]
Looks great! Congrats on creating the widget I’ll have to check that one out. Thanks.
[...] komentar baru pada suatu post.TLA InLinks : Plugin untuk mencari duit tambahan dari Text Link Ads.Top Commentators Widget : Plugin untuk menampilkan daftar pemberi komentar terbanyak yang rentang waktunya bisa diatur [...]
[...] Top Commentators Widget, но решил его убрать, оÑтавить поÑледние комментарии [...]
[...] Top Commentators Widget, ?? ????? ??? ??????, ???????? ????????? ??????????? [...]
[...] dem Top Commentators Widget von Lorna Timbah zeigt die Top Kommentarschreiber im Blog mit Link, Name und Anzahl der [...]
[...] are a few top commentators plugin for WordPress. Currently, i am using Top Commentators Widget v.0.999 from webgrrrl.net. It works with WordPress 2.3. As shown in the scrrenshot, it will list out top [...]
[...] Top Commentators Widget [...]
Nice work with the widget….Plugins are driving me nuts…..trying to get theme’s, sidebars and all to work or function together. Coming along.
Lorna:
I found this plug-in through a couple of links from other sites as well as the official WP list of compatible plug-ins for WP 2.3
I downloaded it this morning and it works fabulously! I am using the latest WP version 2.3.1 and I couldn’t be more pleased!!!
Thank you for doing such a fabulous job. I am so excited to have this becuase it’s a way of thanking my readers for taking the time to comment on my blog. Awesome job.
And congrats for making the WP compatible plug-in list. I usually check this to make sure all is well before I take the chance to download.
One more thing – your README.txt file was excellent. Very simple, easy to read and non-threatening to a “non-techie” (like me ACK!).
Thanks again.
Please be sure to somehow notify through WP’s new feature when you update your plug in to the next version. I don’t know how that works but if you can somehow automate the notification thing, that’d be GREAT.
One more thing. Are you using Brian’s Threaded Comments plug in for matching replies to comments?
Another thing actually: what plug in are you using to give commentators time to edit their comments? I love how that looks on your site.
Ok, that’s all, I promise! Maybe not. Maybe I’ll have more later. LOL
Stephen
[...] Top Commentator This is a plugin that will add a sidebar widget to show the top commentators in your blog. This [...]
Thanks a lot ! It works very well…
[...] Download. [...]
[...] Download. [...]
[...] Top Commentators [...]
that s niece suggestion
getting more comments means more user interaction
[...] Top Commentators Widget (http://webgrrrl.net/archives/my-top-commentators-widget-quick-dirty.htm) 0.999 [...]
[...] Top Commentators Widget: This plugin will show the top commentators on your page, you can simply add it in widget, and see the results. Visitors will comment more, if they wil get their names and their sites posted in you sidebar. [...]
I have downloaded this plugin hoping it will solve the problem that the original plugin had: it counts commentators by username, not by e-mail. So if you have two people with the same name, their comments will be summed.
Can you solve this?
Sorry for taking so long to reply. This is the same reply I sent to Maria just now, so I’m just going to cut n paste. You could try changing the query statement inside the widget’s code in line 122 from SELECT COUNT(comment_author) to SELECT COUNT(comment_author_email), but let me tell you that even when this is done, if someone uses one e-mail with two different names, the COUNT may still take them as two different users.
[...] the Top Commentators I got my plugin from Webgrrrl.net and works also with 2.3.x wordpress. The installation instructions are also on the same [...]
[...] Top Commentator This plugin will improve the interaction of your blog by encouraging your visitors to submit [...]
Congratulations. I hope to one day create my own Widget so this is so encouraging
I would like to be unsubscribed of this thread.
I can’t do it in the admin-panel.
[...] is a great plugin that rewards your frequent commenters. You can set how often you want to restart the count, and how many commenters you want to display. [...]
[...] also installed the top commentators widget so now those of you that comment frequently can get a link back to your site. So comment away! [...]
Once you have the Top Commentators Widget on the sidebar, click the “control icon” to change the following in Top Commentators:
Lorna, I could not find the control icon. I checked through all the options. It was no where. And the widget appears on the sidebar without any title and the names are not hyperlinked. Please help.
Nicole, was this an answer to my question? It seems that the system has “swallowed” the code. Can you post it somewhere like http://pastebin.com/ ?
[...] Top Commentators Widget – It’s always good to know who’s commenting on your site the most. It’s a good thing to know. [...]
[...] also added a widget that shows Top Commentators. You can get one here, if you’d like. I’ll be displaying the top ten commentators for each month, and you [...]
[...] Display of Top Commentators using Lorna Timbah’s Top Commentators Widget [...]
Hi Lorna,
Thank you very much indeed for this widget – it’s an absolute gem, and I’ve really enjoyed having it on my site.
As the new year has rolled in, I’ve discovered that I’m set to ‘Reset list every: Year’. I’ve tried setting it to ‘List All’, but when I click ‘Save Changes’ the change isn’t being saved.
The file is 666 on permissions, and I can change other options successfully. Any ideas what might be going wrong? Could I perhaps just refigure the line $listPeriod = $options['listPeriod']; to list all? [If that's possible].
Thanks for any help you can give me with this, thanks again for a great piece of work, and wishing you a very happy new year…:-)
I am having the same issue as this. Any ideas what may be going on?
I faced this problem before myself but it was a long time ago that I couldn’t remember what I did. I’m pretty sure though that it could still be the file permission.
You may want to edit manually if you dare. In the mean time, you’ll need to wait a while till I can figure this out, and I’ll get back to you and Jacob if I do get the solution.
Thanks for your response, Lorna. I’m quite happy to edit manually, but I don’t have a clue what I’d need to change – would it be the $listPeriod = $options[’listPeriod’] line? If there’s an easy answer to that, I’d be very glad to hear it – if it’s complicated enough to take up too much of your time, I’ll cheerfully wait until you have an alternative solution…:-)
Aran, Jacob, Erika:
Since the Save Options doesn’t work for you, the quick and dirty way to manually change this to display All Commentors is to edit the database itself.
You’ll have to log into MySQL,
select your WP database,
click on the _options table,
and browse for “widget_topcomm” under the option_name field.
The edit you’d want to make is s:10:”listPeriod”;s:1:”m”;
under the option_value field. Change s:1:”m” to s:1:”a”, so it’ll look as such
s:10:”listPeriod”;s:1:”a”;
That should do the trick.
Hi Lorna–
I tried this and it seems to only work temporarily. I’m not sure what is causing it to revert. Maybe when a new comment is added? Any other suggestion on how to get all of my old comments back?
Thanks,
Erika
[...] Top Commentators Widget: sidebar widget per mostrare i commentatore più prolifichi. [...]
I was wondering how the plugin counts for the largest number. Does it count by name only or does it count by email? I currently have PFadvice’s plugin installed and I’ve noticed that it counts by name only. For those with popular names, I feel that it wouldn’t be fair to others, you know? I wouldn’t mind switching and I’ve sent an email to PFadvice, but have gotten no reply.
You could try changing the query statement inside the widget’s code in line 122 from SELECT COUNT(comment_author) to SELECT COUNT(comment_author_email), but let me tell you that even when this is done, if someone uses one e-mail with two different names, the COUNT will still take them as two different users.
I’ll put this in the wishlist for the next upgrade if you like.
I did this, but nothing has changed. Or does it only apply to new comments?
Hi Lorna-
I’m having the same issue as the folks a few comments back. My comments reset annually but I would actually like all of my comments to appear. So I”d like it to revert back to its original state. I changed the code back to read ‘all” in hopes that everything would reappear but no success. Any ideas?
Thanks,
Erika
[...] blogosphere is that this widget is kinda buggy. There are fixed up versions available elsewhere. Webgrrl.net has a post about her adventures with this [...]
[...] also see how comment whores abuse the Top Commentators plug-in that many have installed on their blogs. And that doesn’t really bother me because comment [...]
[...] that’s hosted there every week. Off I went in search of a plugin or widget, and I found the Top Commentators widget for WordPress, which is exactly what I was looking for. It could not have been much easier to install and use. I [...]
[...] Top Commentators Widget – i personally use this instead of a blogroll. Rather than a one off link exchange, the top commentator widget makes sure that only people that contribute to your site get links in your sidebar. Links are dofollow (I think!) which is an added bonus. [...]
[...] Top Commentators Widget Give something back to your commentators. Give them a link. With this plugin you can display the commentators that have given the most comment on your site, and even let their name be a clicking link to their site. This might get readers to do more comments, since they get a “free” sitewide link”. I display mine in the sidebar. [...]
[...] Plugin Homepage [...]
[...] Aunque si usas Widgets, el plugin no tiene soporte oficialmente, aunque hay algunas posibilidades. [...]
[...] Top Commentators – This newer widget is a great way to reward the people that post to your blog. Give them some link love for helping you with some content. [...]
[...] Για πεÏισσότεÏες πληÏοφοÏίες επισπευτείτε το site του δημιουÏÎ³Î¿Ï [ΕΔΩ]. [...]
well, i have to checkout ..hopefully this plugins will work for me
thanks
[...] Top Commentators [...]
[...] Top Commentators Widget A great plugin, allowing you to give some well deserved links to your top commentators, I currently [...]