This plugin creates a widget to show the top commentators in your WP site. Always go back to the Widget settings after each version update to Save your settings. Demo can be found at
http://demo.webgrrrl.net
The Top Commentators Widget plugin is adapted from Show Top Commentators plugin at Personal Financial Advice, this widget is easier to manage via the control form (no need to edit the PHP file); additional options are also available to make it more flexible. Read the FAQ section on how to customize the widget. Read the Changelog as well as
http://webgrrrl.net/tags/tcw for the latest news on this widget.
This widget is extensively tested with the following settings: Google Chrome 13.0.782.215 m, PHP 5.2.13, Apache 2.2.15 (Win32), MySQL 5.0.51a, WordPress 3.2.1. Further testing and bug report on this widget is greatly welcomed and appreciated.
Automatic installation
In your WordPress dashboard, select Plugins / Add, search for Top Commentators Widget, and select Install.
Manual (WordPress 2.5 and above)
- Download and 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.
- 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.
Manual (WordPress 2.3.3 and lower)
- Download and 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.
Manual (non-widgetized themes)
- 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.
For those using the v.0.999a widget in WordPress 2.3.3 or lower
- The widget control form may not appear so pretty; the blue control form background does not run to the end of the form.
- Filtering by e-mail does not seem to work in WP 2.3.3 using full or partial address.
Older changelogs can be found in the following website:
https://webgrrrl.net/archives/my-top-commentators-widget-quick-dirty.htm#changelog
v.1.7
- Added Gutenberg block support for the Top Commentators widget, allowing it to be used in the block editor.
- Introduced a global settings page under Settings > Top Commentators for configuring widget options site-wide.
- Refactored the widget to use global settings instead of per-instance configurations for better consistency.
- Added block.js script for registering and rendering the Gutenberg block in the editor.
- Updated plugin description to reflect support for both widgets and blocks.
- Refactored code by extracting magic strings to named constants for improved maintainability:
- Added 25 constants for option keys (TOPCOMM_OPT_*)
- Added 6 constants for period values (TOPCOMM_PERIOD_*)
- Added constants for list types, Gravatar options, and award alignment
- Replaced all hardcoded string comparisons with named constants throughout the codebase
- Updated topcomm_get_defaults(), topcomm_generate_list(), and widget class methods to use constants
- Improves code readability and reduces risk of typos in configuration access
v.1.6
- Replaced strip_tags to wp_strip_tags for compatibility with PHP version 8.1 and higher.