XF 2.2 How to hide "blank space" from ad removal for paid subscribers

Gsk8

Member
Hey all!

One of the perks I have for my "supporting" members (paid subscribers) is not to see the ads. While this works, they are left with this blank space between nodes, on the leaderboard, etc. Is there a way to remove/collapse that space? Some kind of add-on that will make it look like a forum with no ads?

Note that this has nothing to do with slots not being filled ref this post.

Thanks!
 

Brogan

XenForo moderator
Staff member
How are you preventing ads being shown to specific user groups?

What does the ad code you are using look like?

There shouldn't be any blank spaces with the correct code.
 

djbaxter

Well-known member
Wrap your ads in a conditional like this:

Code:
<xf:if is="{{!$xf.visitor.isMemberOf(x)}}">
<div>
                {ad code here}
</div>
</xf:if>
where x is the id for your upgrade group
 
Last edited:
Top