The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
template conditional help
need something along the lines of
<if condition="this_page="pagename"> any ideas? |
#2
|
||||
|
||||
Code:
<if condition="THIS_SCRIPT == 'pagename'"> |
#3
|
||||
|
||||
works a treat n1, one thing tho anyway i can check if This_script = more than one page for example want to test if this script = index or forumdisplay
cheers |
#4
|
||||
|
||||
Try:
Code:
<if condition="in_array(THIS_SCRIPT, array('index', 'forumdisplay'))"> If you want to add more scripts just add a comma then the file name with the single quote. |
#5
|
||||
|
||||
n1 mate
--------------- Added [DATE]1193066800[/DATE] at [TIME]1193066800[/TIME] --------------- yep back again...... need to test if this script = forumdisplay.php?f=2 and index.php?sub=places how would i go about doing that.... thanks for the help so far guys! |
#6
|
||||
|
||||
bump
|
#7
|
||||
|
||||
For specific forums you can use:
Code:
<if condition="in_array($forumid, array(x,y,z))"> </if> Just replace "x,y,z" with the respective forum IDs. I'm not sure about "index.php?sub=places, however. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|