The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adsense Conditionals for Vbulletin Archive and Secondary Groups ?
I am looking for adsense conditional for our forums, to disable google advertisements for Premier Group (this is a secondary group which sponsors/supports us).
Currently, I have setup adsense conditional for Administrator usergroup as follows,this works perfect on entire forum: Advertisements are disabled to Administrator usergroup. Code:
<if condition="$bbuserinfo['usergroupid'] != 6"> Google Adsense Code </if> Code:
<if condition="$bbuserinfo['usergroupid'] != 6" OR "$bbuserinfo['usergroupid'] != 78"> Google Adsense Code </if> I would also need to disable Advertisements appearing on archive pages for both the above groups. Can someone direct me to correct code ? Thanks. |
#2
|
|||
|
|||
You should use AND instead of OR.
|
#3
|
|||
|
|||
Quote:
I assume there should be some different modification for archive ? |
#4
|
|||
|
|||
Try:
Code:
<if condition="$bbuserinfo['usergroupid'] != 6 AND $bbuserinfo['usergroupid'] != 78"> Google Adsense Code </if> |
#5
|
|||
|
|||
Unless you had administrators who were also premium members, that conditional wouldn't hide the code from anyone, correct?
|
#6
|
|||
|
|||
Quote:
Thanks for helping till here, but this code is not working for any users who are members of Secondary Usergroup 78.. Morever, If i am putting the conditional for ads under archive this wont work even for administrator group. Still Need help. Thanks. |
#7
|
|||
|
|||
bumping back again, please help me, I have a premium members (secondary group) usergroup who are requesting me to disable google adsense advertisements.
thanks. |
#8
|
||||
|
||||
HTML Code:
<if condition="!is_member_of($bbuserinfo, 6) AND !is_member_of($bbuserinfo, 78)"> Adsense here </if> |
#9
|
|||
|
|||
Quote:
This works great, thanks for the updations KirdyDE, can you please also suggest the modifications to be made to the archive ? I appreciate your time for this, since i had been looking for this since a very long time |
#10
|
||||
|
||||
Well, if's basically the same
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|