The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to hide ad from Moderator group?
Hey guys, I was wondering if someone could show me the conditional to use if I want to 'hide' a certain ad from the Moderator group? I want everyone else to see it.
Thanks! |
#2
|
||||
|
||||
How are you adding this add?
|
#3
|
|||
|
|||
Just by placing adsense ad code on a page.
|
#4
|
||||
|
||||
Wrap the code with this.
Code:
<if condition="!is_member_of($bbuserinfo, X)"> YOUR CODE </if> |
#5
|
|||
|
|||
Awesome, thanks!
|
#6
|
||||
|
||||
Not a problem, glad to help.
|
#7
|
|||
|
|||
Quick question.. if I wanted to add a 2nd usergroup ID to that, would I just put a comma after the first ID, and then add the snd ID?
Thanks again! --------------- Added [DATE]1383283259[/DATE] at [TIME]1383283259[/TIME] --------------- Nevermind, answered my own question. |
#8
|
||||
|
||||
Yes, that is what you would do, for the benefit of anyone else reading.
|
#9
|
||||
|
||||
Hmmm, you may want to use this version <if condition=" in_array($bbuserinfo[usergroupid],array(1,2,3,4,5,6,7,8))">
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|