![]() |
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> |
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. |
Thank you! I'll try this out now :)
Worked a charm, thanks! |
All times are GMT. The time now is 03:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|