Log in

View Full Version : Vba index condition?


TheRealso0sick
07-02-2012, 07:28 PM
Hey
im trying to display a div element only when a user is on the vbadvanced index page.

<if condition="THIS_SCRIPT == 'index'">
bla
<else />
bla
</if>

I'm trying to use this, but it doesn't work.
Can anyone help me out and correct it?

My vbadvanced was renamed to "index.php" btw.

Simon Lloyd
07-02-2012, 08:05 PM
I think you need to use something like <if condition="THIS_SCRIPT == 'vbcms'"> not sure but i think i came across a thread here somewhere with a similar question.

TheRealso0sick
07-02-2012, 09:13 PM
Nope, didn't work
Now it's not showing up at all

kh99
07-02-2012, 09:18 PM
Try using 'adv_index' instead of 'index'.

TheRealso0sick
07-03-2012, 04:08 AM
Try using 'adv_index' instead of 'index'.

That works!
Thanks a lot