Reminder to Update Copyright Dates

Discussion in 'Directories' started by swedal, Dec 27, 2008.

  1. #1
    We will soon be switching over to 2009.

    I was just thinking about how I was going to need to update copyright dates displayed on the sites so I thought I would put out a reminder to other directory owners who want to keep up on this.

    Happy New Year!
     
    swedal, Dec 27, 2008 IP
  2. syted

    syted Notable Member

    Messages:
    2,086
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    290
    #2
    Thanks for the reminder. Should it be the current year only or all years the site has been online inclusive? So for a site launched in 2008 should we change to c 2009 or c 2008-2009?
     
    syted, Dec 27, 2008 IP
    hyper likes this.
  3. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #3
    Thanks for the reminder, il be going for the 2007 - 2009 format.
     
    pipes, Dec 27, 2008 IP
    swedal likes this.
  4. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #4
    Or you could just add a little php so it updates itself every page laod with the current year ;)
     
    mikey1090, Dec 27, 2008 IP
    hyper likes this.
  5. hyper

    hyper Peon

    Messages:
    1,565
    Likes Received:
    214
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think there is a mod developed by Marko for this already, but this is the best option :)
     
    hyper, Dec 27, 2008 IP
    mikey1090 and swedal like this.
  6. ms2134

    ms2134 Well-Known Member

    Messages:
    1,188
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    165
    #6
    Good Idea,

    Thanks for the information...

    ~ Mike
     
    ms2134, Dec 27, 2008 IP
  7. WallaceYeung

    WallaceYeung Notable Member

    Messages:
    3,377
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    230
    Digital Goods:
    1
    #7
    Need to change all my directories for the copyright code... :(
     
    WallaceYeung, Dec 27, 2008 IP
    swedal and hyper like this.
  8. Lavinco

    Lavinco Peon

    Messages:
    383
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #8
    For all the php heads out there, insert this code where the date should be and never remember to update the year again.

    <?php echo date("Y");?>
    Code (markup):
     
    Lavinco, Dec 27, 2008 IP
    hyper and jitendraag like this.
  9. Maxiorel

    Maxiorel Active Member

    Messages:
    285
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #9
    Thanks for the reminder. Every January problem :)
     
    Maxiorel, Dec 27, 2008 IP
  10. malcolm1

    malcolm1 Prominent Member

    Messages:
    7,148
    Likes Received:
    758
    Best Answers:
    0
    Trophy Points:
    310
    #10
    Sweet thx for the quick code :)

    As well as swedal for the reminder to update the year ;)

    thx
    malcolm
     
    malcolm1, Dec 27, 2008 IP
    swedal likes this.
  11. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #11
    For those using phpLD

    Edit footer.tpl

    Add the code -

    Copyright 2007-{php} echo date("Y"); {/php}
    PHP:
     
    mikey1090, Dec 27, 2008 IP
    JoyGoRound likes this.
  12. Lavinco

    Lavinco Peon

    Messages:
    383
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #12
    good point. thanks
     
    Lavinco, Dec 27, 2008 IP
  13. Lavinco

    Lavinco Peon

    Messages:
    383
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #13
    For those of you using good old fashioned html pages and running on an apache server, add this line to your .htaccess file


    AddType application/x-httpd-php html
    Code (markup):
    and use the php code above.

    This allows your html pages to act as though they are real php pages through the use of a mime-type
     
    Lavinco, Dec 27, 2008 IP
    swedal and Ibn Juferi like this.
  14. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #14
    hehe... I dunno why you guys are calling php into a tpl, when you can just SIMPLY USE what smarty already provides....

    {$smarty.now|date_format:"%Y"}
     
    an0n, Dec 27, 2008 IP
    ing likes this.
  15. hyper

    hyper Peon

    Messages:
    1,565
    Likes Received:
    214
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I needed this on few of my websites, but never knew this command exists.
    Thanks pal.

    Rep+ already added! :D
    Happy New Yeaaaaaaaar! :)


    Do you know that tv show called BRAINIAC? When it comes to phpLD, Granny(an0n) knows best! lol :D
     
    hyper, Dec 27, 2008 IP
  16. Lavinco

    Lavinco Peon

    Messages:
    383
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Thanks for the rep. Glad I could help.
     
    Lavinco, Dec 27, 2008 IP
  17. swedal

    swedal Notable Member

    Messages:
    3,767
    Likes Received:
    426
    Best Answers:
    0
    Trophy Points:
    230
    #17
    Now that is what I was waiting for! Thanks Rob!

    How about one that works on wordpress blogs now? ;)
     
    swedal, Dec 27, 2008 IP
  18. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #18
    I took the liberty of adding it for you.

    in the footer.php where you have the date: 2007-
    just add <?php echo date('Y'); ?> after it.

    It will look like this: 2007-<?php echo date('Y'); ?>
     
    an0n, Dec 27, 2008 IP
  19. swedal

    swedal Notable Member

    Messages:
    3,767
    Likes Received:
    426
    Best Answers:
    0
    Trophy Points:
    230
    #19
    Ah Rob you are just too good. :) Thanks!
     
    swedal, Dec 27, 2008 IP
  20. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #20
    No prob. Always my pleasure.
     
    an0n, Dec 27, 2008 IP