The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help converting vb3 template to vb4
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']); PHP Code:
I tried converting it to: Code:
{vb:raw trailcondition.date}, {vb:raw trailcondition.time} 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)); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|