I have a plugin that generates the following (snip example) with hook location showthread_complete
Code:
$trailcondition['date'] = vbdate($vbulletin->options['dateformat'], $trailcondition['dateline']);
$trailcondition['time'] = vbdate($vbulletin->options['timeformat'], $trailcondition['dateline']);
in vb3 to display the date and time I could do this in the SHOWTHREAD template:
PHP Code:
<td class="alt1" align="middle">$trailcondition[date], $trailcondition[time]</td>
With vb4, this obviously does not work. I can echo the variables date and time and can see they are valid, but the SHOWTHREAD template isn't showing them like it was.
I tried converting it to:
Code:
{vb:raw trailcondition.date}, {vb:raw trailcondition.time}
yet nothing is displayed.
Its like the template doesn't see the variables anymore. Can someone assist? This is just a snip of some of the variables I'm trying to display.
--------------- Added [DATE]1278594451[/DATE] at [TIME]1278594451[/TIME] ---------------
fixed... I didn't know you had to do this in the plugins:
Code:
vB_Template::preRegister('SHOWTHREAD',array('trailcondition' => $trailcondition));