PDA

View Full Version : vbulletin condition question


byalik
10-04-2011, 01:39 AM
Anyone know how I can get something to not show up on CMS page

HMBeaty
10-04-2011, 01:58 AM
https://vborg.vbsupport.ru/showthread.php?t=231525 ;)

byalik
10-04-2011, 02:07 AM
Nothing there answers my question

HMBeaty
10-04-2011, 02:11 AM
Why doesn't it? As far as I can tell this is answered it pretty clearly....
Show in every file but one: Look for define('THIS_SCRIPT', 'calendar'); in the top of the php file you do not want it to show in.
<vb:if condition="THIS_SCRIPT != 'calendar'">Show this only on calendar.php</vb:if>

byalik
10-04-2011, 02:13 AM
ok got it, thanks

--------------- Added 1317699676 at 1317699676 ---------------

Anyone know how to do exclude multiple pages.

I tried this:
<vb:if condition="THIS_SCRIPT != 'search' AND 'vbcms' AND $show['guest']">

But the condition for "vbcms" did not work

HMBeaty
10-04-2011, 03:09 AM
ok got it, thanks

--------------- Added 03 Oct 2011 at 23:41 ---------------

Anyone know how to do exclude multiple pages.

I tried this:
<vb:if condition="THIS_SCRIPT != 'search' AND 'vbcms' AND $show['guest']">

But the condition for "vbcms" did not work
<vb:if condition="THIS_SCRIPT != 'search' && THIS_SCRIPT != 'vbcms' && $show['guest']">

byalik
10-04-2011, 03:15 AM
thank you very much