Hide Adverts

Hide Adverts 1.1.2

没有下载权限
XF 兼容性
  1. 2.2.x
  2. 2.3.x
摘要
Add permission to hide ads in XenForo 2.x with flexible customization options, including user preferences and node/usergroup exclusions. Supports paid upgrades and advanced advert management systems.
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 management systems which do not use the core advertising placements.

A specific feature of this addon which is not available in the core, is the ability for users to over-ride the advert hiding mechanism allowing them to show the adverts.



I use this functionality to show adverts to myself so I know what is displaying and what isn't, while other admins automatically have adverts hidden. Similarly, my "business" members who pay to show their own adverts on the site while also getting the ability to hide adverts when browsing - might choose to temporarily show adverts so that they can check how their adverts display.

New permission:


1.webp




User preference:


2.webp




How to use:

For use with account upgrades, ensure that the Registered usergroup has the Can hide adverts permission set to "No". Then for any upgrade usergroups, plus moderators and administrators (assuming you want to hide ads for them), set the Can hide adverts permission to "Yes".

Any advertisement placement you want to use with these permissions, should be placed within an "if" statement in the template which checks the $xf.visitor.show_adverts flag.

This can also be used for the display settings on widgets.

show_adverts will be set to true when:

  • the user does not have permission to hide adverts
  • the user does have permission to hide adverts, but has deselected the "Hide adverts" checkbox in their preferences
Example:
PHP:
     <xf:if is="$xf.visitor.show_adverts">
Advert goes here
</xf:if>


Options:
There are two options allowing you to customise the display of adverts.

3.webp



Disabled Nodes is a comma separated list of nodes which should never show adverts. This affects all "forum_view*" and "thread_view*" templates.

Disabled Usergroups is a comma separated list of usergroups who should never see adverts. This overrides the "Can hide adverts" permissions - so do not use this setting for usergroups where you want a user to retain the ability to show adverts.
作者
newimage
浏览
712
扩展类型
zip
文件大小
19.6 KB
首次发布
上次更新
评分 0.00 星 0 个评分
链接失效了吗? 发送消息 给 NP 团队,我们会尽快为您处理!
支持开发者 如果您对测试满意或项目已成功盈利,可点击「更多信息」按钮,通过购买来支持开发者!

最新更新

  1. 1.1.2 - changelog
    No change in functionality - just a minor UI update to "disable" the option to hide adverts if the user doesn't have permission to do so.

来自 newimage 的更多资源

J-BusinessDirectory N
它是最先进的一级目录扩展插件for Joomla!
安全专业 - 全面模块 N
包含防火墙(WAF)、抗DDoS、两因素认证、暴力破解防护、抗垃圾邮件

相似的资源

[AndyB] Hide Signature M
Hides signature in selected posts.
浏览
498
已更新
 隐藏带有通知的附件 A
基于权限隐藏并通知附件。
浏览
337
已更新
[cXF] Hide profile page A
adds user group permissions to show/hide profile page (and member tooltip) with a notice.
浏览
347
已更新
返回
顶部