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

(23-May-2018) Compatible with WordPress v.4.9.6. Download Top Commentators Widget from the WordPress Plugins Directory. Refer to the README file on how to customise this widget. View this plugin in action at my demo site. Jump to my changelog.

Post all bug reports and support requests to the WP.org’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 as usual, saw MrBadak talking about his newly installed plugins, and I hopped by.
  2. Excitedly surfed into Personal Financial Advice to download the STC plugin.
  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!

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 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 WordPress.org Support Forum, too.

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

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.

Changelog

Older changelogs are moved out of the README file to this page for easier translation.

= v.1.5.2 =

  1. Fixed Gravatar’s image request URL.

= v.1.5.1 =

  1. Bugfix for 1.5 due to not displaying a list at all.
  2. Repositioned add_action() hook.
  3. Rectified commentator grouping by e-mail or by names.
  4. Added an option to list out commentators with a minimum required number of comments before being displayed.

= v.1.5 =

  1. Added Default Blue, Retro, and Blank to the Gravatar icon options.
  2. Optimized the query for “Exclude these users” option (presumably could lower database/memory load?).
  3. Edited the query for commentators’ URL (presumably could solve the “same URL for all users” problem that I tried hard to replicate but couldn’t?).

= v.1.4.2 =

  1. Further improved query against URL hijacking (searching based on e-mail instead of username).

= v.1.4.1 beta =

  1. MAJOR CODE REWRITE! This may break any customized CSS you may have on TCW.
  2. Support for multiple instances of the widget. This means that you can have TCW on as many sidebars in your blog as you want, each with its own unique settings.

= v.1.4 =

  1. Added the Award option which will display image or icon of a medal/badge once a commentator reaches a certain number of comments determined by blog owner.
  2. Modified the form to allow default values to be entered automatically when initialized (i.e. widget’s Save button is pressed).
  3. Added support for setting default Gravatars to 404, Mystery Man, Identicons, MonsterIDs or Wavatars.
  4. Repaired the query statement for filtering e-mails.

= v.1.3 =

  1. Rectified the SQL query for filtering list by hour.

= v.1.2 =

  1. Added target=_blank option which will open links in a new browser window.
  2. Added filtering based on range of dates.

= v.1.1 =

  1. Fixed the Year value error which prevented it from being highlighted when selected and saved in the widget control form. (noted by Sebastien, http://wordpress.org/support/topic/205463?replies=2#post-876591)
  2. Added Gravatar support (thanks to the codes by Sergio Nascimento, http://www.coisasdosanduba.com/).
  3. Added Display only commentors with URLs.
  4. Fixed the bug which displays the URL of a comment marked as spam, but having the name of a valid commentor (since TCW always selects the latest URL entered by the same commentor user name).

= v.1.0 =

  1. Corrected the extra closing widget tag that appears when Show In Home Only is selected.

= v.0.999a =

  1. Re-arranged functions to avoid redeclare error in WP 2.5.
  2. Modified widget control form to repair unclickable control form.
  3. Added NoFollow option to links.
  4. Added show comment count option.
  5. Fixed the reset period (not tested extensively).
  6. Fixed the URL filtering.
  7. Include option to list users by e-mail or user names.
  8. Include option to filter users by e-mail.
Posted on 8 February, 2007 under Discovering WordPress and tagged with , , ,

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

  1. The widget looks cool. Can it work on WP 2.5.1?

  2. Chris says:

    Would it be possible to have a similar Plugin for the Top Contributors of a Blog? I’m planning a site with voluntary authors and it would be great to show off who is submitting the most articles.

    Or can there simply something be changed in the code?

    Many thanks! 😉

  3. […] Math Problem Spam Protection – ????????????????????? My Top Commentators – ?Show Top Commentators???????Widgets??????????? New […]

  4. […] It features the top 10 commenters for the current month. “Top commenters” is a plugin by Lorna Timbah in which people who has commented on the current month is sorted by number of comments on […]

  5. Ponzonha says:

    Great plugin. Greatest widget. I love it, however, I can’t enable all-time listing, it only tracks this year. Any help?

  6. […] been using for a while, but my strategy will be changing with this one.  On this site I use this Top Commentators WordPress Plugin.  This plugin works by adding a widget to your blog that lists the people who comment on your […]

  7. John says:

    Yeah, can’t enable all time listing, but thanks.

  8. […] Math Problem Spam Protection – ????????????????????? My Top Commentators – ?Show Top Commentators???????Widgets??????????? New Posts […]

  9. […] Top Commentators Widget – Adds a sidebar widget to show the top commentators in your WP site. […]

  10. Movie says:

    Still, it is necessary to be careful with these widgets 🙂

  11. […] 15.Top Commentators Widget este plugin coloca na sua sidebar os top comentadores do seu blog, é bom para o seu blog e para os seus leitores pois assim recebe mais comentários e os seus leitores mais visitas a partir do seu blog. […]

  12. […] utilizado un plugin muy sencillo de utilizar que se llama Top comentators widget, que una vez instalado y habilitado se incluye como un widget en nuestra barra lateral pudiendo […]

  13. […] My Top Commentators – ?Show Top Commentators???????Widgets??????????? […]

  14. I understand how this works can someone give me some info.

  15. […] le monde apprécie d’être reconnu surtout vos visiteurs , pourquoi pas installer un plugin pour mettre en visibilité vos top commentateurs, attendre quand meme d’avoir un minimum de […]

  16. […] Top Commentators – A widget that displays a list of your top commentators. […]

  17. Hmm, its a great widget

  18. […] their comments if they are just starting off and building a community around their sites. Having a Top Commentators list can achieve a similar effect, especially now with the hijacking issue fixed. Both the DoFollow […]

  19. […] My Top Commentators widget – ?Show Top Commentators???????Widgets??????????? […]

  20. Ulquiorra says:

    Just thought I’d let you know that your plugin seems to close an extra div on all the other pages when it’s displayed only on the homepage.

    I don’t even know whether you’ll ever read this…

  21. wildkyo says:

    It works great!!! Thanks!!!!!! 😀

  22. […] Top Commentators Widget 0.999a […]

  23. […] Top Commentators Widget – This is by far the most useful tool in the bloggers arsenal to raise blog commentation and loyalty. For instance having a free back link to your blog because you participate in conversation helps you network with other bloggers and again promotes a 2 way discussion instead of just your posts on a page. […]

  24. […] 34. Top Commentators Plugin Display your top commentators names in your sidebar. […]

  25. […] a few plugins to reward those commentors who post comments on MyBlogIt. Those plugins include: Top Commentators Widget and Commentluv So feel free to get involved with MyBlogit and […]

  26. […] Top Commentators Widget […]

  27. […] who leave comments are rewarded in the sidebar via the Top Commentator plugin. This is another way in which the number of links among sites is increased. There is a great […]

  28. […] Top Commentators Widget – Un widget para mostrar las personas que más comentarios han escrito. […]

  29. […] 23. Top Commentators Widget […]

  30. Thanks, have implemented your widget.

  31. […] Top Commentators Widget 0.999a […]

  32. […] spalten har jag samlat alla mina annonsörer och donatorer. Plus att jag har ett plugin som heter Top Commentators Widget för att visa de som kommenterat mest på min blogg och ge dem en länk tillbaka. Detta för att […]

  33. […] I haven’t tried Post Revisions yet, but I see that this feature might be pretty useful for my Top Commentators Widget post. […]

  34. […] hacer he usado un plugin llamado Top Commentators Widget. Este plugin nos da multitud de opciones desde elegir la cantidad de comentaristas que queremos que […]

  35. Philix says:

    This is a great plug in 🙂

  36. […] Top Commentator Widget : affiche les “plus gros commentateurs” dans la sidebar en permettant de faire un lien vers leur blog […]

  37. JT says:

    Hi! Love the idea of a Top Commentator!!! But for some reason I’m clueless and can’t get it to work. I’ve downloaded the widget, activated the plugin, and added to the sidebar. It shows up on my sidebar but says “No Commentators”… I have a few comments people had already posted before I added Top Commentator. Should it pick those up? I even posted some test comments but still no Top Commentators showed up in the list. What am I doing wrong?

    I’m pretty new to WordPress and don’t know much about PHP but can write/edit HTML pretty decent. Any help getting this to work on my website would be GREATLY appreciated! My email is jason@omg4real.com

    Thanks,

    JT

  38. Jenny says:

    Hi,

    I love your widget, but I have a stupid question.. how do I change the font size? The words are too small for my layout.

    Thanks!

    Jenny

  39. Jenny says:

    Thank you, but do you know which css file and what code to put there to change just the font sizes of the widgets?

    You’re not obligated to answer, but it would be so very helpful! :o)

    Thanks!

    Jenny

  40. great widget. i will download it now and install it to my two blogs.Thanks for sharing.

  41. gossip says:

    Great widget, thanks for sharing!