Small tip...

Discussion in 'Directories' started by formula, Apr 12, 2007.

  1. #1
    Hi all,

    Many directories has on the bottom this line:
    Copyright xxx 2006, All right's Reserved.

    Now it is really annoying to go and change it every time the year has changes. Not to mention if you have more than one directory.

    You can solve this problem by adding a small php command instead of the year:
    {date('Y')}
    Code (markup):
    That's it...
     
    formula, Apr 12, 2007 IP
  2. britishguy

    britishguy Prominent Member

    Messages:
    7,949
    Likes Received:
    892
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Thats great and easy to do makes it easy for a lot of sites
    :cool:
     
    britishguy, Apr 12, 2007 IP
  3. jhnrang

    jhnrang Notable Member

    Messages:
    4,107
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    225
    #3
    Thanks a lot--very good for people like me who know nothing about coding --forget php:(

    Green rep for it:D
     
    jhnrang, Apr 12, 2007 IP
  4. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #4
    Can I add this to the tpl file directly?
    Thank for the tips anyway.
     
    Richie_Ni, Apr 12, 2007 IP
  5. formula

    formula Well-Known Member

    Messages:
    995
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    100
    Digital Goods:
    1
    #5
    yes... you can.
     
    formula, Apr 12, 2007 IP
  6. wwws

    wwws Notable Member

    Messages:
    3,385
    Likes Received:
    285
    Best Answers:
    0
    Trophy Points:
    225
    #6
    I think I know what tple file is, but to lazy to look right now in will change it when I can...But which .tpl file to edit?

    Give you a grn rep.
     
    wwws, Apr 12, 2007 IP
  7. formula

    formula Well-Known Member

    Messages:
    995
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    100
    Digital Goods:
    1
    #7
    it depends on your template but it should be under footer.tpl
     
    formula, Apr 12, 2007 IP
  8. moneymakingguru

    moneymakingguru Well-Known Member

    Messages:
    1,103
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    125
    #8
    great tip! green rep for ya!! What a cool tip!
     
    moneymakingguru, Apr 12, 2007 IP
  9. Fastian

    Fastian Peon

    Messages:
    2,085
    Likes Received:
    235
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Great tip. I am sure it will help those who have lots of Directories and editing template takes too much time.

    PS. Isn't that a "Smarty" code ?? Coz if it is PHP, we have to add starting and ending
     tags?? [/SIZE]
    PHP:
     
    Fastian, Apr 12, 2007 IP
  10. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #10
    small tips but great effect. thanks!
     
    toby, Apr 12, 2007 IP
  11. grg

    grg Guest

    Messages:
    2,692
    Likes Received:
    73
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Should we credit you if using that tip? ;) (joke) :)
     
    grg, Apr 12, 2007 IP