Log in

View Full Version : How to hide ad from Moderator group?


shibby2
10-31-2013, 10:54 PM
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!

ozzy47
10-31-2013, 11:18 PM
How are you adding this add?

shibby2
11-01-2013, 12:13 AM
Just by placing adsense ad code on a page.

ozzy47
11-01-2013, 12:18 AM
Wrap the code with this.

<if condition="!is_member_of($bbuserinfo, X)">
YOUR CODE
</if>

Change X to the id of the moderator group.

shibby2
11-01-2013, 12:34 AM
Awesome, thanks!

ozzy47
11-01-2013, 12:37 AM
Not a problem, glad to help. :)

shibby2
11-01-2013, 05:11 AM
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 1383283259 at 1383283259 ---------------

Nevermind, answered my own question. :D

ozzy47
11-01-2013, 10:11 AM
Yes, that is what you would do, for the benefit of anyone else reading. :)

Simon Lloyd
11-05-2013, 02:27 PM
Hmmm, you may want to use this version <if condition=" in_array($bbuserinfo[usergroupid],array(1,2,3,4,5,6,7,8))">