y HOWTO | The Blog of Pross!

The Blog of Pross!

Just another WordPress site

Category Archives: HOWTO

[HOWTO] Eircom Netopia and DYNDNS.org

I just learned these routers have a hidden option for updating your dyndns account automatically! You have to us telnet commands to activate it… Open Telnet and open 192.168.1.254 (default router address) Now use these commands to setup dyndns: >configure >set dynamic-dns option dyndns.org >set dynamic-dns ddns-host-name myhostname.dyndns.org >set dynamic-dns ddns-user-name myusername >set dynamic-dns ddns-user-password [...]

[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 = [...]