All I wanted was a way to place the number of comments Akismet has saved me from placed in a sidebar is a form which blands with my blog. But none was available!
I was because of this I decided to write one, at this point ‘Akismet Spam Counter Widget’ was born. Yeah, original name I know, but it says what it does. Simple, to the point. Same as the widget
It has two options, the first is the title of the widget, the second being the text of the widget.
The way it behaves is identical to that of the text widget, except the it replaces any instance of a token with a statistic.
For example, lets say Akismet has blocked 123 spam comments and you put this into the Info box:
Yahoo! !akismettotal! spam comments blocked!
You widget will actually display:
Yahoo! 123 spam comments blocked!
Tokens you can use are:
- !akismettotal! – Total number of spam items blocked by akismet
- !currentspam! – Number of items currently in your spam box
- !approved! – Number of comments that have been approved. If you have no moderation, this is all non-spam
- !unapproved! – Messages that are not spam and that have not been aprroved. If you have moderation disabled, this will always be zero.
I would like to say thanks to How To Stuff for their post How to write a WordPress widget (how I created the tip of the week) which gave me most of the information needed to make my widget. Thanks guys!
You can get the plugin from the Wordpres plugins directory here:
Until we meet again, so long!
2 Responses to “Akismet Spam Counter Widget for WordPress”
Leave a Reply
You must be logged in to post a comment.