11
2011
Auto update copyright date !
I had figure out how to auto update the copyright date in footer on my site.
if you have a commercial license you can change this code !
Q: why we need it ? A: you don´t need to edit your footer every year ;)
Example: Say you have this on your footer.tpl:
Copyright © 2007 – 2010 yoursite.com, All Rights Reserved
but now it is 2011 and you will auto update it every year !
Insert and replace you old copyright code with this one:
Copyright © yoursite.com 2007-<?php echo date(Y) ?> All Rights Reserved.
if you done right you should now see this copyright text !
Copyright © 2007 – 2011 yoursite.com, All Rights Reserved.
Every year it will auto update the new year. Hope it can help someone.
and change 2007 to the year you start you dating site :)
2 Comments + Add Comment
Leave a comment
Add your vldpersonals site here.
Sponsor/Donate to VldMods
I hope you like VldMods if you sponsor me I can make it even better ;) Thanks.
Find Us On Facebook
VldMods Newsletter
Recommended Mods 4 Your Site.
Featured Posts
-
Tool Tip Registration Mod
-
Answer & Question
-
Change Join Now logo (multilanguages)
-
Search Engine Optimization
-
Support/Help for VldPersonals Owner
-
New templates on luvpoint for vld.2.7
-
Auto update copyright date !
-
Include a Browser Detection
-
Marketplace
-
Newsletter Mail System for vldPersonals
-
Our Community
-
Forum
-
60 Mods to Make Your Site Better
-
Blink icon then get new messages
-
Display a register form at the front page.
VldMods Polls
Friends
Views
- Free & Pay Mods - 754 views
- jquery step by step form. - 402 views
- Tutorials - 310 views
- How to edit the Frontpage VldPersonals. - 256 views
- Templates for Vldpersonals. - 192 views
- Coupon Code for Cometchat - 166 views
- Display a register form at the front page. - 165 views
- 60 Mods to Make Your Site Better - 163 views
- Help & Support - 157 views
- New templates on luvpoint for vld.2.7 - 115 views


An article by















I’ve written a short snippet which is an improvement over this, as it supports date ranges, so all you enter is the start date, and then it will display it as just that year, or that year to the current one if applicable
Check it out at http://www.gostomski.co.uk/snippet/better-auto-updating-copyright-date
Like or Dislike:
0
0
I think mine is easier and perform the same function ;)
Like or Dislike:
0
0