How to edit footer copyright so the YEAR changes automatically
1 Attachment(s)
In this tutorial I will tell you to edit the footer of your vBulletin forum so that YEAR in the footer changes automatically so that you can to New Year Party on December 31 instead of editing your footer copyright notice.
It is only four step process, see the screenshots below. Login to AdminCP and go to (Step 1 and 2) Settings > Options > Site name / URL / Contact Details and scroll down to the bottom of the page and you will see "Copyright Text" field. Edit the code below for your site and copy and paste (Step 3) it in the "Copyright Text" field. Click Save (Step 4). PS. Do not forget to edit the text in the red color in the code below. Code:
Copyright © <a href="http://www.sevenskins.com/">Seven Skins</a> 2008 - <script type="text/javascript">d = new Date();y = d.getFullYear();document.write(y);</script> . |
Great!!! saves me some time editing the copyright notice each time and every new year
Thanks |
Hot damn. Why did I not do this sooner???
|
Why not just use this for the year?
Code:
<?php echo date('Y');?> Code:
Copyright © <a href="http://www.sevenskins.com/">Seven Skins</a> 2008 - <?php echo date('Y');?> |
^ PHP doesnot work in the copyright text field.
|
Thanks for sharing this ;)
|
Quote:
Thanks for the tip. I was wondering how to do that without using PHP code in a hook. |
Great tip...it work perfectly the first time....unlike when I hack together something myself.
Thanks and happy New Year! Richard |
thanks for sharing.
|
Thanks its working.
|
All times are GMT. The time now is 07:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|