Time to start changing all your website content? 2008 --> 2009

9 replies
Warriors,

Just a reminder about changing any of your websites if you reference 2008 in them.

For instance, one of the list titles on one of my stop smoking sites is, "Are You Ready To Quit Smoking in 2008?"

Obviously I need to change that ASAP.

Just thought I'd throw you all a reminder as well.

Allen GRaves

p.s. And don't forget your copyright notices, usually at the very bottom of your pages!!!!

See extreme bottom left of this page.
#> #2008 #2009 #changing #content #start #time #website
  • Profile picture of the author jjpmarketing
    Would that work in a blog post title though?
    {{ DiscussionBoard.errors[351445].message }}
  • Profile picture of the author Allen Graves
    Originally Posted by Jeff Hope View Post

    That's a good reminder Allen.

    If people would switch over to PHP they'd never have to worry about it again

    Code:
    <?php echo date('Y'); ?>
    Sweet tip, thanks.

    How can I do next year though.

    <?php echo date('Y'+1); ?>

    That's just a guess...

    AL
    Signature
    Every day I check the obituaries. If I don't see my name there, then I know it's going to be a good day!
    {{ DiscussionBoard.errors[351985].message }}
  • Profile picture of the author TheNightOwl
    I agree with Jeff: just switch over to building all your sites in php.

    If you've got existing sites with .htm or .html pages, though, try adding the following to your .htaccess file:

    AddHandler application/x-httpd-php5 .html .htm
    This should then allow you to execute php on your html pages. But you will need to contact your webhost and check that this code is correct. It could be different for different hosts running different systems and different versions of php. Their support dept should be able to tell you fairly quickly.

    And if you just want to do it with javascript, try the following two:

    1. Auto-updating copyright notice (good for footers; although, as an extra level of flexibility I've started making all my footers php-includes, actually)

    <script language=javascript>
    <!--
    today=new Date();
    y0=today.getFullYear();
    document.write('<span style="font: 10pt arial,sans-serif; font-weight: bold;">Copyright &copy; StartYear - '+y0+' &nbsp; <a href="http://www.your-site.commmmmm">Anchor Text</a> &nbsp;&nbsp;All rights reserved worldwide.</span>');

    //-->
    </script>


    2. Just for the current year to appear anywhere on your page:

    <script language=javascript>
    <!--
    today=new Date();
    y0=today.getFullYear();
    document.write(''+y0+'');

    //-->
    </script>


    Of course, if a visitor's browser has javascript disabled, these two won't show (so not so good for headlines!).

    But still...

    Anyway, hope that helps!

    TheNightOwl
    Signature
    {{ DiscussionBoard.errors[352543].message }}
  • Profile picture of the author sweetanahita
    added to my do list for the NEW YEAR DAY :p
    {{ DiscussionBoard.errors[352564].message }}
  • Profile picture of the author GoGetta
    Great Reminder, I am going to look through all mine right now!

    GoGetta
    {{ DiscussionBoard.errors[352813].message }}

Trending Topics