Back to vBulletin 3.8 Template Modifications

JavaScript: Copyright Year Generation
Mod Version: 1.0.0, by King Kovifor

vB Version: 3.8.x Rating: (4 votes - 5.00 average) Installs: 33
Released: 01 Feb 2009 Last Update: 01 Feb 2009 Downloads: 91
Not Supported Template Edits Re-usable Code  

Just because a bunch of people wanted me to release this. Here's a little JavaScript I wrote that you can place in your copyright statement to keep your year up to date. Just put it where you want the year to display:

HTML Code:
<script type="text/javascript">
d = new Date();
y = d.getFullYear();
document.write(y);
</script>
OR

HTML Code:
<script type="text/javascript">d = new Date();y = d.getFullYear();document.write(y);</script>
They both do the same thing, one's just on a single line.

A JS file attached just in case you want to keep it as a back up.

Thanks to Gasper for reminding me to put in the text/javascript tag.

Also, this works with any version of vBulletin (or should) and can be seen on vB.org.

Download

File Type: %1$s copyrightyear.js.zip (627 Bytes, 90 downloads)


vblts.ru supports vBulletin®, 2022-2024