Akismet counter for locally hosted blogs

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

2 Responses to “Akismet counter for locally hosted blogs”

  1. Idetrorce Says:

    very interesting, but I don’t agree with you
    Idetrorce

  2. Markus’ (B)logbuch » Aksimet - das Beste, was einem Wordpress-User passieren kann Says:

    [...] Und hier habe ich noch eine nette Möglichkeit gefunden, die Anzahl der gefangenen Spam-Kommentare in der [...]

Leave a Reply