I have the above plugin using a hook location of Parse Templates.
And this is my added code at the bottom of headinclude:
Code:
<vb:if condition="$hourofday == 9">
<style type="text/css">
html
{
background-color: #000066;
}
</style>
</vb:if>
It doesn't work. The variable has no value in it or something.
--------------- Added [DATE]1276869271[/DATE] at [TIME]1276869271[/TIME] ---------------
Nevermind I got it to work.
I changed:
PHP Code:
$templater = vB_Template::create('headinclude');
$templater->register('hourofday', $hourofday);
$templater->render();
to
PHP Code:
vB_Template::preRegister('headinclude',array('hourofday' => $hourofday));
thanks