Comment analysis plugin
-
I know there are some plugins that do this kind of stuff already, but I used this as a learning project to create my first plugin.
I’ve created a plugin called comment_analysis.php which has various functions to report on comments. So far I have the following functions:
comment_count()
shows total comment count for whole blog
comment_last($format)
shows date and time of last comment
comment_latest($count, $length)
shows first $length chars of latest $count comments with comment_author_link and a link to the post
comment_latest_post($count, $show_count)
shows $count posts that have the latest comments, with optional count of comments
comment_most($count, $show_count)
shows $count posts that have the most comments, with optional count of comments.
You can see it in action at http://www.lambic.co.uk/blog at the bottom of the right hand column.
I’m not ready to release the code publically yet, but I’m interested in any feedback on the functions I’ve written, and any other functions you think the plugin should contain.
The topic ‘Comment analysis plugin’ is closed to new replies.