[HOWTO] Display number of spams stopped since your blog started.

So i wanted to display total number of spam coments blocked by askismet. Checking the the plugins source i found this function which returns the number:
[php]get_option(‘akismet_spam_count’);[/php]
Getting the blogs first post date was the tricky bit and required a database query:
[php]$firstpost = $wpdb->get_var("SELECT post_date FROM $wpdb->posts WHERE post_type = ‘post’ AND post_status = ‘publish’ AND ID >0 LIMIT 1");[/php]
The query checks the first post above zero as most people delete post #1.

So the complete code is:
[php]<?php echo get_option(‘akismet_spam_count’); ?> Spams caught since
< ?php
$firstpost = $wpdb->get_var("SELECT post_date FROM $wpdb->posts WHERE post_type = ‘post’ AND post_status = ‘publish’ AND ID >0 LIMIT 1");
echo gmdate(‘M Y’,strtotime($firstpost));
?>[/php]
the result looks like this:
10253 Spams caught since Jun 2006

[HOWTO] Display number of spams stopped since your blog started.

Windows 7 is here!

Windows 7 has finally gone RTM. After many leaked builds MS signed off the Release To Manufactoring build, and hours later its hit the usual p2p sites 🙂

Here are the SHA-1 hashes for both builds and the torrent links:

# Windows 7 Retail Ultimate englisch (x86)
Name: 7600.16385.090713-1255_x86fre_client_en-us_Retail_Ultimate-GRMCULFRER_EN_DVD.iso
CRC: 0xC1C20F76
SHA-1: 0x5395DC4B38F7BDB1E005FF414DEEDFDB16DBF610

# Windows 7 Retail Ultimate englisch (x64)
Name: 7600.16385.090713-1255_x64fre_client_en-us_Retail_Ultimate-GRMCULXFRER_EN_DVD.iso
CRC: 0x1F1257CA
SHA-1: 0x326327CC2FF9F05379F5058C41BE6BC5E004BAA7

Windows 7 is here!

I have the shingles!

Yes after nearly a week of agonizing pain the spots arrived so its definatly the shingles!

I don’t recommend shingles to anyone, the pain is unbearable and it makes you feel dizzy and sick and also itches like a b*****d!

So i have to go and see a doctor in the morning to get a sick cert for work. Over here in Ireland you have to PAY to see a doctor! Its about 50 quid a visit!

So here is a picture history of me shingles! Enjoy!

The first grouping
The first grouping
I am...a shape!
I am...a shape!
I have the shingles!

Garland 1.2

Ive updated Garland-Revisited.

I had some problems with farbtastic and jquery with wordpress 2.8, after much hair pulling ive ditched farbtastic and the theme uses jscolor.

Please someone try it with 2.8 and let me know if there are any problems, ive tried 2.8 and 2.8.1b2.

here is the link to 1.2 of the theme: HERE

Garland 1.2

Garland…

OK new version is ready just about!
It includes comment numbering with support for Gregs comment numbering plugin, either categories or pages in the header menu and the 404 emails are now configurable.
The 404.php will actually show the users useragent now so you can tell if your getting grief from a spambot or have a genuine link problem.

I’ll be released with 2.8 in a few days!

Garland…