vb.org Archive
>
vBulletin 4 Discussion
>
vB4 Programming Discussions
> Display Current Year
PDA
View Full Version :
Display Current Year
ASPnix
01-27-2012, 04:36 PM
Hello,
Is it possible to display the current year in the footer template? If so how?
kh99
01-28-2012, 12:36 AM
I think you need a plugin - use hook location parse_templates and this code:
vB_Template::preRegister('footer', array('year' => vbdate('Y', TIMENOW)));
and then in the footer template, use {vb:raw year}.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.