PDA

View Full Version : Some help with conditionals...


vBulletin THEN DAYLIGHT
12-16-2006, 11:49 PM
Someone please help me please!

I have created my own custom vBulletin page using this method (https://vborg.vbsupport.ru/showthread.php?t=62164&highlight=own+vbulletin+powered+page) using a template called 'CHATROOM'. The page is called chatroom.php

Is there a conditional I could use, like

<if template=="CHATROOM"> or <if page=="chatroom.php">

Hope you get my drift!

Cheers.

peterska2
12-17-2006, 12:46 AM
<if condition="THIS_SCRIPT=='chatroom'">replace chatroom with whatever your page is defined as in the php file

vBulletin THEN DAYLIGHT
12-17-2006, 12:47 PM
Thank You

I am having some problems, could anyone tell me what is wrong with this?

<if condition="THIS_SCRIPT != 'chatroom' OR THIS_SCRIPT != 'adv_index'">

Thanks

peterska2
12-17-2006, 09:35 PM
<if condition="(THIS_SCRIPT != 'chatroom') OR (THIS_SCRIPT != 'adv_index')">shoudl do the trick

vBulletin THEN DAYLIGHT
12-17-2006, 10:16 PM
thanks, works a treat

farooqaaa
01-26-2007, 08:09 AM
Thanks very helpful ;)