• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Hiding Templates from User Groups

#1
Is there a way to hide specific templates from certain members?
For example, I have a group called "Premium Gamers"

This is a purchased upgrade and as part of the upgrade I want to make it so that the members in this group won't see my ads. I have my ads in a template called adsense_top

Is there a code or mod that I can add to make it so the Premium Members group won't see the adsense banner?
 

Brogan

XenForo moderator
Staff member
#4
Wrap the ad code in this conditional.

Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 3} AND !{xen:helper ismemberof, $visitor, 4}">
ad code here
</xen:if>
Change the values to reflect the groups you want to hide the advert from.

You can add as many groups as you like.