Counts the number of comments for each user, who has been logged in at the time of commenting.
Screenshots
This screenshot shows the extended users table in the Admin Menu.
This picture presents an example widget output in the sidebar.
This screenshot depicts the Settings/Featuring CountComments Tab in the Admin Menu.
FAQ
Installation Instructions
-
Copy the featuring-countcomments
directory into your WordPress plugins directory (usually wp-content/plugins). Hint: You can also conduct this step within your Admin Menu.
-
In the WordPress Admin Menu go to the Plugins tab and activate the Featuring CountComments plugin.
-
Navigate to the Settings/Featuring Countcomments tab and optionally customize the defaults according to your desires.
-
If you have widget functionality just drag and drop Featuring CountComments on your widget area in the Appearance Menu. Add additional function and shortcode calls according to your desires.
-
Be happy and celebrate! (and maybe you want to add a link to https://www.bernhard-riedl.com/projects/)
Why do my users have to be registered to comment?
Various user attributes can be used in queries. Though, the internal structure is based on the authors’ id to avoid confusion in case of changed user-names, e-mail addresses, etc. Featuring CountComments will therefore only count comments, which have been written by authors who have been logged in at the time of writing a comment.
How about the efficiency in Featuring CountComments?
Already queried results are cached within a single page-call to avoid executing too many queries. This results in increased performance.
Moreover, in case of querying the comment count of a certain post’s comment, only two SQL statements will be used to retrieve the comment count of all users who contributed to this post.
ChangeLog
1.64
1.63
- replaced deprecated function calls to wp_get_current_user() and removed $user_ID-globals – thanks for the notification to highgatecreative
1.62
- changed the permission-denied message in uninstall.php core-trac #14530
- fixed some typos
1.61
- small security improvement
- implemented h1 on settings-page as follow-up to core-trac #31650
1.60
- switched SQL queries to prepared statements
- marked menu semantically
- enhanced uninstall procedure
- set appropriate http-status codes for wp_die()-calls
1.51
- cleaned-up code
- SSLified links
- added assets/icons
1.50
- implemented responsive web design on settings-page
- removed calls to screen_icon()
- extended length of format-parameters to provide space for example for mobile css-classes
- cleaned-up code
1.40
- removed legacy-code -> minimum-version of WordPress necessary is now 3.3
- removed deprecated functions
- fcc_get_comment_count()
- fcc_comment_count()
- fcc_get_count_comments_author()
- fcc_get_count_comments_authorID()
- fcc_count_comments_author()
- fcc_count_comments_by_author()
- fcc_count_comments_by_authorID()
- applied PHP 5 constructor in widget
- tested with PHP 5.4
- removed PHP closing tag before EOF
- removed reference sign on function calls
- adapted plugin-links to the new structure of wordpress.org
- cleaned-up code
1.33
1.32
- adapted ‘Defaults’-string to use WordPress internal i18n
- updated support section
- updated project-information
1.31
- changed handling of contextual help for WordPress 3.3
- adapted handling of default settings
- external files are now registered in init-hook
1.30
- adaption of JavaScript code for jQuery 1.6.1 (ships with WordPress 3.2 => increased minimum requirement to WordPress 3.2 for this and all upcoming releases)
- small enhancements
1.20
- use new WordPress 3.1 query parameter to retrieve results for comments in Admin Menu by user-id instead of display-name
- Changed settings-page JS library to jQuery
- added CSS for comments column in Users Page of WordPress 3.1 Admin Menu
1.11
- use WordPress style for comment-counts in users table
1.10
- admins are able to view the users comment-counts in the Admin Menu
- the access to the user’s comment-counts can be restricted
- corrected a few typos and fixed potential bugs
1.00
- start Changelog
- completely reworked API methods and internal structure
- Security improvements
- added Admin Menu
- adapted to WordPress
wp_parse_args
function
- included Admin Menu and filter to set default values
- added sidebar widget
- added dashboard widget
- possible to add in “Right Now” box on dashboard
- added profile page add-on
- added log functionality
- added test-suite
- deprecated old functions
- added contextual help to settings menu
- updated license to GPLv3