Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > General Articles

Reply
 
Thread Tools
How to edit footer copyright so the YEAR changes automatically
Seven Skins's Avatar
Seven Skins
Join Date: Sep 2008
Posts: 1,481

 

London, UK
Show Printable Version Email this Page Subscription
Seven Skins Seven Skins is offline 12-12-2011, 11:00 PM

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 &copy; <a href="http://www.sevenskins.com/">Seven Skins</a> 2008 - <script type="text/javascript">d = new Date();y = d.getFullYear();document.write(y);</script>




.
Attached Images
File Type: png footer-copyright-1.png (59.6 KB, 0 views)
File Type: png footer-copyright-2.png (93.8 KB, 0 views)
File Type: png footer-copyright-3.png (8.1 KB, 0 views)
Reply With Quote
  #22  
Old 12-06-2014, 08:52 PM
steven vaccaro steven vaccaro is offline
 
Join Date: Nov 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working thanks!
Reply With Quote
  #23  
Old 02-18-2015, 05:43 PM
kkinsey kkinsey is offline
 
Join Date: Oct 2011
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, much!

Any reason you didn't do:
Code:
d = new Date();document.write(d.getFullYear());
?
Reply With Quote
  #24  
Old 02-20-2015, 08:06 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ no reason.

This can be done by using this code as well.

Code:
<script type="text/javascript">document.write(new Date().getFullYear())</script>
Reply With Quote
  #25  
Old 01-10-2017, 11:04 AM
DigitalDawn DigitalDawn is offline
 
Join Date: Sep 2016
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you get it to say the following:

Copyright © 2017 Forum Name.
Reply With Quote
  #26  
Old 01-10-2017, 12:03 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HTML Code:
Copyright &copy; <script type="text/javascript">d = new Date();y = d.getFullYear();document.write(y);</script> Forum Name
Reply With Quote
Благодарность от:
MarkFL
  #27  
Old 01-14-2017, 01:20 PM
DigitalDawn DigitalDawn is offline
 
Join Date: Sep 2016
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
Благодарность от:
MarkFL
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:15 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
  • Page Generation 0.06850 seconds
  • Memory Usage 2,290KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (27)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (3)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete