Log in

View Full Version : <vb:if condition="THIS_SCRIPT - Question/Help


TheDevil666Damo
04-18-2012, 08:13 AM
Hi

I have some links that I want to only display in the footer of all forums, but not in the footer of each individual thread, anyone got any ideas how to do this?

This works to display on the forum homepage only...
<vb:if condition="THIS_SCRIPT == 'index'">

I thought I would then have to list every individual forum like this...

<vb:if condition="THIS_SCRIPT == 'index', 'specific-forum-name'">

...but that doesn't work as it doesn't recognise the 'specific-forum-name' for some reason, so is there an easy way of doing this so that all forums will display the links in the footer but not the thousands of threads created.

Many thanks

Cheers

Damon

kh99
04-18-2012, 10:46 AM
Try this:

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

TheDevil666Damo
04-18-2012, 02:02 PM
Genius!! Thanks dude I owe you one.