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}.