Primal Habits
It is currently Thu Mar 30, 2017 8:25 am


Feed

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Apr 27, 2011 2:37 pm 
Offline
User avatar

Joined: Sun Apr 25, 2010 1:02 pm
Posts: 115



Displaying the Current Year in Copyright Notices & Footer.

If you are anything like me and maintain a lot of web sites, sometimes you forget to update the copyright year that you typically put in a footer module or embed in the template itself. A tiny line of PHP code can fix this so you never have to worry about it again.

If you have your copyright in a "footer" or "footer module", you are going to have to take it out and embed it directly in main template file.

Try to add something similar to the following lines of code to your template (change HTML code and names as appropriate):

Code:
Please Login or Register, to see this Content


This is all done by the simple PHP statement <?php echo date('Y');?> which displays the 4-digit year based on the current server time. Around the New Year it might be slightly wrong for a day or so.

_________________
Check Out RouterHead8080 T.V.



Share on FacebookShare on TwitterShare on TuentiShare on SonicoShare on FriendFeedShare on OrkutShare on DiggShare on MySpaceShare on DeliciousShare on Technorati
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


Related topics
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. People really like New year Discount for fifa 17 coins

fifa17sara

0

42

Tue Jan 03, 2017 1:56 am

fifa17sara View the latest post

 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron

Affiliates    Terms of use    Privacy policy   

Primal Habits, a Sceptersoft Company
Copyright © 2010 - 2017 Sceptersoft LLC. All rights reserved.