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