The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I am having issues with this. I just upgraded from 3 to 4 and want to have a variable that I can use in an If Statement in a template.
So in a template I can do this: <vb:if condition="$var == 1"> In a pluggin I can do this: Code:
$var=1; vB_Template::preRegister('header',array('var' => $var)); Code:
{vb:raw var} If I try to use $var I just get the text $var and not the value. Please advise. Thanks |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|