Comment leader plugin
I used a comment leader plugin on my MT blog. I wanted to use one here too. I did a search of the WP support forums and did find a post on this. However, the links in the post no longer worked. CRAP!! No one has responded to my post there asking for a current link, so I decided to make one myself.
At this stage, it’s very basic. It just displays at list of the people who have left the most comments (in order from highest to lowest) along with their comment count.
You can download the plugin here. Make sure to save it with a .php extension.
To use the plugin, put the following where you want the comment leader list to appear …
<?php comment_leaders(display,'before','after'); ?>
Where …
display is the number of leaders you want to display. DO NOT enclose this number in quotes (use 5 not ‘5′)!!
‘before’ is the text you want to display before the comment count number. This MUST be enclosed in quotes!
‘after’ is the text you want to display after the comment count number. This MUST be enclosed in quotes!
To do:
- Provide more configuration options
- Add link to last comment
- Possibly add title of last post commented on
My ‘to do’ list would involve some advance database queries I believe. I’m not all that advanced in MySQL knowledge myself, but I am learning more as I go. If anyone out there knows how I could go about at least adding a link to the last comment, please let me know. I’ll incorporate it into the plugin and give you do credit.
If you encounter any problems with this, let me know so I can try to fix them. Also, if you know of another comment leader plugin, please direct me to the source code. Or if you know of how to improve on this code, let me know.
Last Updated on: 23 Jun 04 at 5:12pm
Plugin file: comment_leaders.php
Other needed files: none
hungry
It gives me the following error:
Invalid query: Table ‘trashfol_wordpress.wp_comments’ doesn’t exist
It’s looking for .wp_comments, but it should be looking for .sato_comments. I can’t seem to find anywhere to change this in the script though, help?
Er, nevermind, just fount it…
[…] eekday Plugin Will let you show the weekday (or Today, yesterday, Tuesday, Monday, etc. ) Comment Leader plugin Lists the names of the people who comment the mos […]
works great! thanks for the plugin!
Interesting site, keep up the good work ! :)
I was going to ask if it linked to the leaders or just displayed names … and then I looked at your sidebar. ;) Adding it to my list of plugins to set up!
I am assuming this would take into consideration the TOP 5 commenters on the website, but since i reply back to comments, i’m #1, so i was wondering if it is possible not to include myself in the list of top 5?
On line 13, there is a line …
$exclude = “”;
If you put your email address in there, it will exclude you from the top commenters listing.
This plugin works great and looks great.
You can view it here if you would like to see your work: http://www.spankaroonietwo.com