Akismet counter for locally hosted blogs

May 21, 2007

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


WordPress 2.2 hangs with Google sitemap generator 2.7.1

May 21, 2007

Did you upgrade your own, locally hosted WordPress blog to WordPress 2.2? Does you browser suddenly hang whenever you try to save, save and continue editing or maybe publish a post?

Take a look in your plugin directory, and if you happen to have Google Sitemap Generator for WordPress version 2.7.1… well that’s the reason your browser hangs on you. It took me a couple of hours to figure out.

Go update to version 3, which is still in beta, but works so much better, and has lots of improvements.