Daily J Your Daily Dose of Vitamin Japan!



« Linux rant - (blame Nick) Tired »

A lazy J-blogger’s hack.

On September 03, 2008 in Blog Improvements, Helping Japan Bloggers

 lazy frog

2008 is moving along. Soon we will be looking at 2009 and you will have to update the little copyright date on your blog.

Not if you’re a lazy blogger.
This little php code snippet does the hard work for you year after year.

<?php echo date (”Y”);?>

This code works on any php page (a file ending with .php). It displays the current year.

If you have a self-hosted wordpress blog go to:

wp-contents/themes/YOURTHEME/footer.php and look for the copyright year. Replace the copyright year with the code above.

your done,

now go be lazy

  1. Daily J Solutions for Lazy J-Bloggers « LongCountdown.com Said,

    […] I saw Tori’s blog post “A lazy J-blogger’s hack“, I couldn’t help but laugh out […]

  2. Nick Ramsay Said,

    Done! Thank you very much! In case you missed it, Daily J Solutions for Lazy J-Bloggers.

  3. The Chemist Said,

    Thanks Nick.
    It is easy to forget to update those. and it can be too much hassle even when you realise it needs changing to go find the file and change something so tiny.

Add A Comment