PDA

View Full Version : Conditional Help? forumhome and forumdisplay only...


misteraven
09-29-2010, 04:31 PM
Posted this at vBulletin.com and after waiting for a second day without an answer, hoping someone here might be able to help...

Probably obvious, but sort of struggling figuring out some basic conditionals...

I have the statement below to add a bit of code to only my forum index:

<if condition="THIS_SCRIPT == 'index'">

My question is how would I write two conditional statements... One that would display on the index and forumdisplay pages only, and another to display on the index, forumdisplay and showthread pages (with showthread only applying to specific forums)?

Really appreciate any pointers.

Thank you.

kh99
09-29-2010, 09:30 PM
You could use:




<if condition="in_array(THIS_SCRIPT, array('index', 'showthread', 'forumdisplay'))">




and add or remove whichever pages you want from the array.