Posts Tagged ‘akismet’

Bad Behaviour and Akismet Blocked Counters for WordPress

The Bad Behaviour plug-in for WordPress comes with a weekly counter in the admin dashboard, but do you want a wicked footer like mine?

106,386 dodgy geezas have been blocked by Bad Behaviour and 36,926 spams were eaten by Akismet.

Akismet comes with a counter you can use in themes/plugins…


$akcount = get_option('akismet_spam_count');
$akcount = number_format($akcount);
echo $akcount;

But with Bad Behaviour you have to do a little more work. To start with you need to get BB to record in the database each time it blocks someone, this is done by adding a function to ~/wp-content/plugins/bad-behavior/bad-behavior-wordpress.php , add the following code…..

// Bad Behavior callback functions.
function  bb2_banned_callback() {

        $counter = get_option('bad_behavior_spam_count');
        $counter = $counter + 1;
        update_option( 'bad_behavior_spam_count', $counter );

}

Now BB will store an incrementing number in the WP database for you to use in your theme..


$bbcount = get_option('bad_behavior_spam_count');
$bbcount = number_format($bbcount);
echo $bbcount;

Now you can track how many inter-twats your blocking!

Good English Comments

I can only speak one language, I do have a french qualification but it’s not worth the paper it’s printed on; so I admire anyone who’s native tongue isn’t english yet speak/reads/writes english.

Comments on my blog pose a problem, a tell tale sign of an e-mail or comment spam is poor english, now I’m not talking about having 100% correct grammar or spelling, in-fact this post title “good english comments” isn’t correct! What I’m talking about is comments that simply don’t make sense.

Recently I’ve been working with a guy from Brazil, he’s not the 1st I’ve met, but this was obviously his 1st trip to the UK. During our work it was very apparent that half of what he said/wrote didn’t make sense and in order to carry out his work I’ve had to guess at a load of the requirements.

Today I’ve received a comment on my blog which I simply can’t decide if it’s someone with poor English skills or SPAM, there’s no hyper-links which leans me toward it being genuine, but I simply don’t want to take the risk, I haven’t even finished repairing the pictures on my site, let alone have the time to clean up after some inter-twat spammer! I would like to thank both akismet & bad behavior for all their help with detecting spam…. I wonder if there’s some kind of grammar checker for comments to help the real people submit comments that make sense?

So with all being said, I send my apologies to all who have had comments deleted on my blog.

Akismet is soo good I didn’t even know it !

I got my 1st comment spam today…

old! I’m not responsible for all these problems! vegas slot crackled in the air The sounds grew louder and the monkey looked .

Now this is obviously complete rubbish, so I ignored it.

There has been a lot of activity in wordpress land today and it made me think how is my akismet plug in doing ? I remember ages ago there was an update to the original that I had installed, and to my surprise Akismet has caught 411 for you since you installed it – wow – thanks guys !!! :D