Biznik - Business Networking

Contact Us


Duct Tape Marketing

Duct Tape Book

Free Social Media for Business ebook

Social Media for Small Business
John Jantsch Marketing Coach
About John Jantsch

Recent Posts

Entire Archive

  • Categories

  • Categories
  • Automate Copyright Updates on Web Pages

    Nothing earth shattering today, but a nice little new year item for your web site.

    Many web pages carry copyright notice that reflects the creation date of some or all of the content – Copyright 2003-2009 for example.

    This is great until the year changes and you need to go back and update all your web pages. You can and should make this function easier with the use of footer library files or SSIs, so you only need to update once place and have it cross all your pages. But, you can even take it a step further and have the date change automatically.

    Most blog themes have this function using a simple PHP call – Copyright © 2003-< ?php echo date('Y'); ?> – this would produce Copyright 2003-2009, and change to 2010 automatically next year.

    You can also accomplish this with a simple javascript command placed in a footer file or anywhere on a web page where you want your copyright notice to show up.


    Copyright © xxxx
    script language="JavaScript"
    var d=new Date();
    yr=d.getFullYear();
    if (yr!=xxxx)
    document.write("- "+yr);
    /script

    Add <> around script language=”JavaScript” and /script

    Replace the xxxx in both places with the year you would like to publish as the start year and then the script will take care of the rest. So for me it’s 1999 and looks like this Copyright © 1999 – 2009. Again, this will change to 2010 next year at this time without any effort on my part.

    I’m sure there are a dozen other ways to get this done, but now you know it’s possible!

    Like this post? Share it with others
    • Facebook
    • Twitter
    • LinkedIn
    • del.icio.us
    • Sphinn
    • Google Bookmarks
    • StumbleUpon
    • Digg

    Posted by: John Jantsch on Jan 01, 09 | 8:08 am
    Category: Web design | Tags: ,

    Comments
    • Yep, I always use the php method, super easy :)
    • I cannot make it work! I've put the marks around the correct parts, but the script doesn't show up on my page!! Help!!!
    • Never mind! It works; I just can't see it on my design page. Thanks for the tip--you've made life much easier!
    • Thanks John.

      My wishes for you and yours to have a year blessed with happiness health, and prosperity.
    • Awesome little tip. Thank you.
    • Thank you so much. PS: your option to add the twitter ID has been an incredible boost for your commenters. 2nd thanks. (keep count for the new year?)
    • That's a great reminder -- I'll get right on that!
    • Been using this for years. As a side note, if you use Dreamweaver you won't see it until you preview your site in the browser - but it's there :)
    • Excellent advice ... just noticed that very problem on one of my sites today. Immaculate timing on your part, and I'm very grateful.

      Have a great New Year.
    • While you're thinking about your copyright anyway, you might want to consider your copyleft or "some rights reserved" options. For some content, publicity, exposure, readership, etc. may be more important for you than retaining all copyrights. For information on your options, visit Creative Commons at http://www.creativecommons.com and http://wiki.creativecommons.org/Before_Licensing.
    • Thanks so much for this. I'm redoing my web site right now and this is perfect timing.
    • John Jantsch
      @Judy Ann - glad the twitter folks are finding you through that - love all of your input and optimism in your comments.
    • Thanks John, what good timing?

      When you give these tips, I always feel like you just reviewed my website!
    • Thanks for your sharing Mr. John. I think I'll change my copyright style. Btw, how do you add the twitter ID form in your comment form? what plugin do you use?
    • I think I'll use this copyright style. Btw, how do you add twitter ID account form in your comment form? If you don't mind to share it
    • Thanks for the Java script. In the meantime you jogged my memory and I updated my pages the long way. A very timely post.
    • A very useful tip!!!

      To all visitors - Happy New year
    • thanks for the reminder! btw, how effective do you think these copyright claims are?
    • Thank you! I was needing this just the other day! I didn't want to spend too much time on it and so I just manually entered the dates. This is much better!

      I love your blog!

      blessings,
      Wendy
    • great tip that will save a lot of time, thanks
    • SEO SOFTWARE, not sure how effective they are, but they do serve a purpose.

      From the Copyright Office's website:

      http://www.copyright.gov/circs/circ1.html#noc
    • I have always used the PHP method as well. But, i do have a few sites that I do not need PHP so this java script will be perfect for those sites.
    • John, what are your thoughts on having the copyright notice remain static in this format: "©2001- "? I have done this with our site and seen on some others -- ie, copyright established in a year and held indefinitely.
    • John Jantsch
      @Mark - I don't see anything wrong with it, although it's not as common. I don't really do this for any real protection, it's more that people see this year's date and know the site is active - it's a pretty little thing in the scheme of things.
    • Thanks John. Very timely - I'm working on this today (yes a little late).
    • Great tip, even though i just found it and i already did the job manually
    • I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me.
    • I used to update the year manually every January; got tired of it and a few days ago, used the php code. Worked great!

      @Mark - Our copyright notice also has a static component (2004-xxxx). It's a subtle way of reminding visitors how long the website has been up. As John said, it's a pretty little thing in the scheme of things.

      Happy new year and good wishes to all!
    • Really Nice Tips Given. Thanks for Sharing Tips and Saving the Time.
    • Thanks so much for this. I'm redoing my web site right now and this is perfect timing.
    • Great info. When ever year changed i had to do this hactic job of changing year but with this info it will save alot of my time which can be used in more productive way. Thanks for letting us know.
    blog comments powered by Disqus


    Popular Searches


    Small Business Marketing Magazines


    Free - No strings attached - Business and Marketing Magazine Subscriptions

    Target Marketing
    CRM
    Internet Retailer
    eWeek
    Electronic Publisher
    Print Media and more


    Creative Commons License
    This work is licensed under a Creative Commons
    Attribution-NonCommercial
    -NoDerivs 2.5 License
    .
    Subscribe



    Subscribe to the Duct Tape Podcast
    subscribe via iTunes

    Duct Tape Marketing System

    Duct Tape Marketing System

    Duct Tape System - Complete small business marketing system in 14 workbooks and 4 audio CDs.


    Marketing Plan Pro powered by Duct Tape Marketing

    Marketing Plan Pro

    The Duct Tape Marketing System now comes as Marketing Planning Software. We teamed up with Palo Alto Software, the makers of Business Plan Pro, to bring you the most powerful small business marketing plan tool going. More info here . . .


    Referral Flood by John Jantsch

    Referral Flood by John Jantsch

    Referral Flood - How to create a flood of new business without spending one dime on advertising - by John Jantsch

    Subscribe to my weekly newsletter

    First Name * Last Name * Email *

    Connect Socially