![]() |
Adding multiple condition for ads
I want to introduce two condition to my ads appearing. To appear only to 'Guests', and to prevent it for appearing for 'Register' script.
Is this the way to put it? Code:
<if condition="THIS_SCRIPT != 'register'"> |
Quote:
Hello kushal, you're nearly there, something like this would be better: Code:
<vb:if condition="THIS_SCRIPT != 'register' AND $show['guest']"> |
IF you are using Google Adsense you should even be a little more strict and not post ads on a few other pages to save yourself from possible policy violations and potentially being dropped from their program. Google does not want ads displaying on any "non-content" pages.
Code:
<vb:if condition="!in_array(THIS_SCRIPT, array('error', 'misc', 'private', 'register')) AND $show['guest']"> |
All times are GMT. The time now is 05:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|