PDA

View Full Version : THIS_SCRIPT - working in php4 , not 5 ?


kennethj
Wed 6th Sep '06, 9:23am
this works great for not showing a side bar on selected pages in php 4 , has been working since i started using it .

in php 5 - the template wont' process with it correctly , and just skips everything in the template .

dont' work in php 5 or have i written something wrong and it works but ?? .

any help is welcomed - thanks .

<if condition="!in_array(THIS_SCRIPT, array(usercp,payments,goto))">
side bar top
<else />
table top
</if>

Colin F
Wed 6th Sep '06, 9:58am
That actually looks fine, you could possibly try this:
<if condition="!in_array(THIS_SCRIPT, array('usercp','payments','goto'))">

What error message are you receiving?

kennethj
Wed 6th Sep '06, 10:06am
thanks much , works in both now :)