The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
conditions
Is there an if condition that detects the current script?
Theoretically it would be Code:
<if condition="THIS_SCRIPT['index']">content</if> Code:
<if condition="THIS_SCRIPT['index'] AND THIS_SCRIPT['usercp']">content<else />all other pages content</if> Code:
$var = '<if condition="$show['registerbutton']">register</a> |
#2
|
||||
|
||||
THIS_SCRIPT isn't actually an array, so you can't use THIS_SCRIPT[index].
THIS_SCRIPT is a constant. Check it like this: <if condition="THIS_SCRIPT == 'forumdisplay'">foo</if> Of course you can use AND as well as OR in there too. |
#3
|
|||
|
|||
Thank you! I'll try this out now
Worked a charm, thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|