View Full Version : Banner on all pages except portal index
joelc73
12-02-2005, 04:56 PM
I'm trying to find a way (conditional code??) that will allow me to have my left side column in vBulletin ignored on the portal page but present on every other page. Does anyone know how to do this? I use this space for ads but I don't want it on the portal entry page as it looks too busy.
Thanks,
Joel
Brian
12-02-2005, 04:59 PM
Just wrap this <if condition> around the code for that column:
<if condition="THIS_SCRIPT != 'adv_index'"> Your code here </if>
joelc73
12-02-2005, 06:07 PM
Brian,
Just so I'm clear, will that keep the column from showing on the portal index page or will that if statement only show it only on that page? I want the column to show on every page except the index.
Thanks,
Joel
ConqSoft
12-02-2005, 06:49 PM
Brian,
Just so I'm clear, will that keep the column from showing on the portal index page or will that if statement only show it only on that page? I want the column to show on every page except the index.
Thanks,
Joel
The statement he posted will do what you want.
The != means Not Equal. So, if the current page (THIS_SCRIPT) is not equal to the CMPS identifier (adv_index), then it will include the code you put inside the IF statement.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.