The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
assigning variable values inside the template
hi,
sometimes in the template [ not in php controler's code ] it's useful to create new variable and assign it's value depending on some condition. eg color of line can depend on this or or that... and it's much cleaner to decide about it in the template itself. can something similar to smarty's: Code:
{if $a==$b} {assign var='style' value='s0'} {else} {assign var='style' value='s1'} {/if} ... ... <div style="{$style}">..</div> <span>..</span> <div style="{$style}">..</div> thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|