PDA

View Full Version : [Help] Need a condition


Stagehandspace
09-28-2008, 05:31 PM
How can I get something to show on 2 pages only:

I know about this:

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


but wish to have that condition for 2 pages...profile and usercp
is there a way I can do this? can I just add an array (if so please post code, I dont no php) ;)

Lynne
09-28-2008, 05:36 PM
Both the profile and usercp have THIS_SCRIPT defined at the top of the page. Just change the condition to:
<if condition="THIS_SCRIPT == 'profile' OR THIS_SCRIPT == 'usercp'"></if>

(Note: I did not look to see what THIS_SCRIPT has defined at the top of those pages. Those are just examples - look it up and replace as needed.)