Comment Counter is a plugin which count the comments by a commentator.
You can define different parameters for the count:
- the URL
- the authorname
- the email address
- the userid
- the author IP
Usage
<?php comment_counter($args); ?>
.
Links
- Download Comment Counter plugin
- Unzip the archive
- Upload the folder comment_count into ../wp-content/plugins/
- Activate the plugin through the 'Plugins' menu in WordPress
- Place
<?php comment_counter();?>
in your template
- Have fun!
Info: If you use
<?php wp_list_comments(); ?>
in your template you should read this article.
Bitte besuch die
Comment Counter Seite fuer eine deutsche Anleitung.
Default Usage
<?php $args = array( 'routine' => 'email', 'exclude' => '', 'cc_comment_id' => '', 'echo' => 1, 'format' => '<small>%s</small>', 'german_plural' => 1, 'access' => '' ); ?>
.
Parameters
routine
(string) The count parameter.
Valid values:
'email'
(default) the commentator e-mail adress
'author'
the commentator name
'url'
the commentator url
'id'
the user ID of the commentator
'ip'
the commentator IP
exclude
(string) Define which e-mail, name, url, id or ip shouldn't be count. Valid values:
'email@email.de,spam@cvo.de'
'max,anna,lukas'
cc_comment_id
(int) Define an ID of a comment. It will display the count from the commentator of this comment. Valid values:
echo
(boolean) If you want to save the number in a variable, you should use echo=0. Valid values:
'1'
(true) output via echo
'0'
(false) output via return
format
(string) Style the output
Valid values:
'%s comments (that are %s of %s comments'
first %s for comment count. Optional: second %s for percentage and the last %s for total comments.
access
(string) Who should see the comment count. Values are
capabilities. Valid values:
''
(default) All user can see the number
'manage_options'
Only users who can change options can see the number (Admins)