PDA

View Full Version : If condition [this page] then show the ads!


firassalim
07-23-2009, 03:08 PM
Guys,
I have zero knowledge in PHP
Please help me out

I have Adsense codes in the header and in a sidebar column

What I want is to put a condition so that these ads will not show in the following pages
-Registration page
-User CP
-Log in page
-Log out page

How do I do that :confused:

1Unreal
07-23-2009, 03:34 PM
Login and logout are both on login.php so you can use the same condition for them

<if condition="THIS_SCRIPT != 'register' || THIS_SCRIPT != 'usercp' || THIS_SCRIPT != 'login'">

</if>