The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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'"> <vb:if condition="$show['guest']"> <ads> </vb:if></vb:if> |
#2
|
|||
|
|||
Quote:
Hello kushal, you're nearly there, something like this would be better: Code:
<vb:if condition="THIS_SCRIPT != 'register' AND $show['guest']"> <!-- your ads :) --> </vb:if> |
Благодарность от: | ||
kushal |
#3
|
||||
|
||||
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']"> YOUR AD HERE </vb:if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|