![]() |
template conditional help
need something along the lines of
<if condition="this_page="pagename"> any ideas? |
Code:
<if condition="THIS_SCRIPT == 'pagename'"> |
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 |
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. |
n1 mate
--------------- Added [DATE]1193066800[/DATE] at [TIME]1193066800[/TIME] --------------- yep back again...... :D 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! |
bump
|
For specific forums you can use:
Code:
<if condition="in_array($forumid, array(x,y,z))"> Just replace "x,y,z" with the respective forum IDs. I'm not sure about "index.php?sub=places, however. |
All times are GMT. The time now is 06:57 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:
|