The Blog of Pross!

Just another WordPress site

SpamCount

Heres a tiny plugin that will show the total number of spams caught by askismet since your very first post. You can include it anywhere in your template.

Download

Latest version: Download SpamCount v0.3 [zip]

Installation

  1. upload the contents of the zip file to your wp-content/plugins directory
  2. go to the Plugins main menu and find SpamCount, then click Activate

Usage:

if (function_exists(spamcount)) { spamcount(); }

Default output will look like:

10253 Spams caught since Jun 2006

To show just the number use:

if (function_exists(spamcount)) { spamcount(number); }

And to have custom text use:

if (function_exists(spamcount)) { spamcount($text = ‘somecustomtext’); }

Which would show as:

10253 somecustomtext Jun 2006

Changelog

0.3

  • tested and working 100% wordpress 3.0

0.2

  • Added some switches
  • Added error checking

0.1

  • First release

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>