One of the perks you get when using a WordPress hosted blog, is the ability to display the Akismet counter as a widget in the sidebar. Today I set out to do something like it on my locally hosted blogs. It’s maybe not as elegant, but it works.Just place this piece of code anywhere outside the loop (I recommend to put it in the sidebar):
<ul><li><h2>Akismet Counter</h2><?php$AksimetCount = number_format(get_option(‘akismet_spam_count’));
if($AksimetCount){
print($AksimetCount.” spam comments blocked by <a href=\”http://akismet.com/\”>Aksimet</a>.”);
} ?></li></ul>
The conditional if is only there in case you ever turn Aksimet off. I did yesterday when updating one of my older blogs, and when I turned it on again after half an hour I had to manually delete 20 spam comments.
If you use it, I hope you leave the link to Aksimet, which I regard as the single most important anti-spam project ever.
This post is also published in Swedish as Visa antalet spam-kommentarer som stoppats av Aksimet
December 16, 2007 at 3:02 am |
very interesting, but I don’t agree with you
Idetrorce
December 31, 2007 at 12:08 pm |
[...] Und hier habe ich noch eine nette Möglichkeit gefunden, die Anzahl der gefangenen Spam-Kommentare in der [...]