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

XF 1.4 Removing ads for certain users

#1
How do I remove ads for specific users?

Currently I have "supporting members" that I remove ads for using this piece of code:

<xen:if is="!{xen:helper ismemberof, $visitor, 3, 4, 5}">

But they are either supporting members, mods, and admins.

Now I have a few users that want to support the site and have ads removed but they don't want the "Supporting Member" banner.

How would I add to the code to remove ads for those specific users?

Thanks in advance for your help.
 

Russ

Well-known member
#2
I'd simply create a new usergroup with no banner attached to it at all and add them to it. They would never know the difference and it'll make your life easier rather than going through and editing the conditional for each new user you want to add.