Hide Adverts

Hide Adverts 1.1.2

No permission to download

Sim

Well-known member
Sim submitted a new resource:

Hi Adverts - Add a permission setting to control who can hide adverts

Adds a permission setting "Can hide adverts" to assign user groups permissions to hide adverts. This is intended to be used with paid upgrades so that users can pay to hide adverts.

Note that the functionality of this addon is largely able to be reproduced using only the advertising management system that is a core part of XenForo 2.x. This addon simply provides an alternative approach to managing these permissions which is more flexible and extensible - especially for more complex advert...

Read more about this resource...
 
@Sim: Wouldn't it makes sense to also automatically hide the Advertisings i've placed under /admin.php?advertising/?
 
@Sim: Wouldn't it makes sense to also automatically hide the Advertisings i've placed under /admin.php?advertising/?

That is what this addon is designed to do. If you wrap your adverts code with the following conditional:

PHP:
<xf:if is="$xf.visitor.show_adverts">
    Advert goes here
</xf:if>

... then it will hide the adverts for users who have the correct permissions.

Unless I've misunderstood your question?
 
Nope, you've got it right. But If i also have to wrap the advertising in the template conditional, where is the benefit of this AddOn?

I could set up a "premium" usergroup (for paid upgrades) and hide the advert for that selected usergroup. Then i don't have to wrap the code with the conditional.
 
I could set up a "premium" usergroup (for paid upgrades) and hide the advert for that selected usergroup. Then i don't have to wrap the code with the conditional.

Absolutely - you don't need this addon if your requirements are simple like that.

My setup is a little more complicated, so I need a bit more control as given by the template conditionals.
 
Back
Top Bottom