Hey there, it looks like this is your first time here. May I suggest subscribing to this blog and checking out these articles.

SOME RANDOM DUDE

Wordpress Plugin: Month Comment Count

22.01.07 @ 12:01 am

This is the first Wordpress plugin I have ever made, let alone released for download, so please, be gentle. I needed a plugin for my blog to count the total comments for each month to determine each month’s Comment Love donation. I looked high and low for a plugin to do just that, but I was unable to find one. I then decided I might as well make it myself as it really was not much of a feat in the first place.

The plugin is very basic - the function takes in two parameters, the year and the month you want the comments from. If either fields are left blank, it will default to the current month.

If you want the current month’s comment total, all you need to do is call the function without any parameters.

<?php monthCommentCount(); ?>

If you want a specific month, just put in the year and the month in question like below:

<?php monthCommentCount(2006, 3)); ?>

The function prints the total number of comments - nothing more, nothing less. I may be making some additional plugins along this genre, so there could be additional downloads available. Until then, enjoy this particular plugin if it is of any use to you.

Download & Instructions

Download Month Comment Count Plugin

  1. Right-click/Command-click on the link above and rename the extension from ‘phps’ to ‘php’.
  2. Upload the file to the ‘plugins’ directory within your ‘wp-content’ directory.
  3. Activate the plugin from the ‘Plugins’ section of your Wordpress admin area.
  4. Use the code examples above as reference for use.
  5. Show off how many more comments you get per month than me.

Enjoy., , , , , , , ,

Liked This Post?

Well then, post the article to del.icio.us and subscribe to Some Random Dude's RSS Feed.

Show some comment love.

Total Donations for November:

$11.00

Want to help a good cause? Want to get this number higher? Learn how.

8 Responses to “Wordpress Plugin: Month Comment Count”

  1. Gravatar
    $0.00 in Comment Love for November

    I dont have Wordpress but I can imagine this plugin being pretty useful for those (displaying more selective content) who do.

    Well done PJ!


  2. Gravatar
    $0.00 in Comment Love for November

    I’ve been thinking of implementing something similar to your comment donation thing that you’ve setup here ever since I found your site. Brilliant idea to get the people contributing.

    Perhaps extending the comment count feature where it ignore the owner’s own comments? Am looking forward to the rest of the plugins in the future. Cheers.


  3. Thanks for the comment Hinching. I actually already do not count my comments when calculating the donations for each month - I basically modified it for my own purposes. I really do hope you do in fact implement something like this on your blog. Let me know if you do.


  4. Gravatar
    $0.00 in Comment Love for November

    Hi there!
    I was looking for a comment counter plugin and I found yours.
    Tell me something, please:
    If I put it will count all the comments of that year?
    And if I want it to count all the comments from now on? Is it possible to set the plugin to count several years? Something like this , for example?
    What I want it to do is to count all the comments that have been made in all my website.
    I hope you can help me.
    Thanks!
    And good work!
    Ricardo


  5. […] Visit […]


  6. Gravatar
    $0.00 in Comment Love for November

    thanks for the plugin, a very usefull solution.


  7. Gravatar
    $0.00 in Comment Love for November

    this plugin is great, i have blog in Wordpress and this plugin work well


  8. Gravatar
    $0.00 in Comment Love for November

    Quick question for you. I have a wordpress blog, but its hosted at wordpress.com, not on my own server or anything.

    Is there anyway for me to add plugins using wordpress.com?


Leave a Reply

Additional Doodads

Subscribe to Some Random Dude

Related Entries:

Most Commented Pages