PDA

View Full Version : THIS_SCRIPT help!


djxcee
04-16-2009, 06:49 AM
I know that each page in vBulletin has a THIS_SCRIPT but what if I want to hide a page that is included?

Memberlist.php
THIS_SCRIPT = memberlist
Memberlist.php?do=search
How do I hide/show info only to this page?

Dismounted
04-16-2009, 07:02 AM
<if condition="THIS_SCRIPT == 'memberlist' AND $_REQUEST['do'] == 'search'">

djxcee
04-16-2009, 08:08 AM
Thanks Dismounted for the fast reply :D.
I'm going to try the code and see if it works.

How do I do an invert of this code? Say I want to hide instead of show.

I tried the following but it's not working:
<if condition="THIS_SCRIPT != 'memberlist' AND $_REQUEST['do'] == 'search'">

Dismounted
04-16-2009, 09:15 AM
<if condition="THIS_SCRIPT != 'memberlist' AND $_REQUEST['do'] != 'search'">
That will match any pages that are not memberlist.php, and do not have ?do=search (which is pretty much every other page).