My Top Commentators Widget: Quick & Dirty (not anymore)

(20-Oct-2020) Download the Top Commentators Widget plugin ONLY via for for your security. All updates can be found in the README file.

(14-Dec-2017) Compatible with WordPress v.4.9. Download Top Commentators Widget from the WordPress Plugins Directory. Refer to the README file on how to customise this widget.

Post all bug reports and support requests to the’s Top Commentators Widget Support forum.

(the original ramblings created on 08-Feb-2007 follows)

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:

  1. Went to Giuk.Net (link removed, site no longer relevant) as usual, saw MrBadak talking about his newly installed plugins (link removed, site no longer exist), and I hopped by.
  2. Excitedly surfed into Personal Financial Advice to download the STC plugin (link removed, page no longer exist).
  3. Followed the instructions to the dot, only to find out later that it won’t work if you have Sidebar Widgets activated.
  4. Googled for a widgetized version of STC, only to find that the download links don’t work.
  5. Desperately needed to install it, so I did the next best thing a desperate grrrl would do — build one.
  6. Accidentally sacrificed a few other widgets due to carelessness, but nevermind as I always back-up.
  7. Destabilized my site with countless access error messages and loads of SQL warnings.
  8. 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!
Related post:  WordPress Top Commentators Widget v.1.4

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 (link removed, site no longer exist) 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 the latest Top Commentators Widget

Please refer to the Installation section of the plugin page for details on how to use TCW. Send in your bug reports in the Support Forum, too.


Sure, if you want to, though it’s not necessary. Just PayPal any amount to me at “webgrrrl”.”net” (remember to remove the quotes).

Wishlist (or stuff people would like this widget to do)

  1. Create a “footer” so that you can add description at the end of the list.
  2. Multi-award system.
Spread the love
Posted on 8 February, 2007 under Discovering WordPress and tagged with , , ,

285 responses to “My Top Commentators Widget: Quick & Dirty (not anymore)”

  1. […] 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 […]

  2. […] 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 […]

  3. Mark says:

    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?

  4. […] 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. […]

  5. Looks great! Congrats on creating the widget I’ll have to check that one out. Thanks.

  6. […] 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 […]

  7. […] Top Commentators Widget, но решил его убрать, оставить последние комментарии […]

  8. […] Top Commentators Widget, ?? ????? ??? ??????, ???????? ????????? ??????????? […]

  9. […] dem Top Commentators Widget von Lorna Timbah  zeigt die Top Kommentarschreiber im Blog mit Link, Name und Anzahl der […]

  10. […] are a few top commentators plugin for WordPress. Currently, i am using Top Commentators Widget v.0.999 from It works with WordPress 2.3. As shown in the scrrenshot, it will list out top […]

  11. Gina says:

    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.

  12. 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


  13. […] Top Commentator This is a plugin that will add a sidebar widget to show the top commentators in your blog. This […]

  14. redboy says:

    Thanks a lot ! It works very well… 🙂

  15. cirtex says:

    that s niece suggestion
    getting more comments means more user interaction 🙂

  16. […] 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. […]

  17. 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?

    • Lorna says:

      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.

  18. […] the Top Commentators I got my plugin from and works also with 2.3.x wordpress. The installation instructions are also on the same […]

  19. […] Top Commentator This plugin will improve the interaction of your blog by encouraging your visitors to submit […]

  20. Congratulations. I hope to one day create my own Widget so this is so encouraging

  21. I would like to be unsubscribed of this thread.
    I can’t do it in the admin-panel.

  22. […] 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. […]

  23. […] 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! […]

  24. Nicole says:

    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.

  25. Nicole, was this an answer to my question? It seems that the system has “swallowed” the code. Can you post it somewhere like ?

  26. […] Top Commentators Widget – It’s always good to know who’s commenting on your site the most. It’s a good thing to know. […]

  27. […] 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 […]

  28. […] Display of Top Commentators using Lorna Timbah’s Top Commentators Widget […]

  29. Aran says:

    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…:-)

    • Jacob says:

      I am having the same issue as this. Any ideas what may be going on?

    • Lorna says:

      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.

      • Aran says:

        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…:-)

        • Lorna says:

          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

          That should do the trick.

          • Erika says:

            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?


  30. […] Top Commentators Widget: sidebar widget per mostrare i commentatore più prolifichi. […]

  31. Maria says:

    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.

    • Lorna says:

      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.

  32. Erika says:

    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?


  33. […] blogosphere is that this widget is kinda buggy. There are fixed up versions available elsewhere. has a post about her adventures with this […]

  34. […] 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 […]

  35. […] 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 […]

  36. […] 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. […]

  37. […] 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. […]

  38. […] Aunque si usas Widgets, el plugin no tiene soporte oficialmente, aunque hay algunas posibilidades. […]

  39. […] 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. […]

  40. […] Για περισσότερες πληροφορίες επισπευτείτε το site του δημιουργού [ΕΔΩ]. […]

  41. well, i have to checkout ..hopefully this plugins will work for me 😉


  42. […] Top Commentators Widget A great plugin, allowing you to give some well deserved links to your top commentators, I currently […]