Jeremy8
06-18-2010, 05:04 AM
This is my plugin:
$timestamp = TIMENOW - $vbulletin->options['hourdiff'];
$hourofday = date("G", $timestamp );
$templater = vB_Template::create('headinclude');
$templater->register('hourofday', $hourofday);
$templater->render();
So now I get my variable in my template like this right? {vb:raw hourofday}
But it doesn't let me do this? <vb:if condition="{vb:raw hourofday} == 1">
I want to do that...
$timestamp = TIMENOW - $vbulletin->options['hourdiff'];
$hourofday = date("G", $timestamp );
$templater = vB_Template::create('headinclude');
$templater->register('hourofday', $hourofday);
$templater->render();
So now I get my variable in my template like this right? {vb:raw hourofday}
But it doesn't let me do this? <vb:if condition="{vb:raw hourofday} == 1">
I want to do that...