• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Hide Adverts

افزونه 2 Hide Adverts 1.1.0

دسترسی دریافت را ندارید
Hide Adverts
نمای کلی منبع
افزودن دسترسی چه کسی می تواند تبلیغات را پنهان کند.
XFFA.IR Bot توسط XFFA.IR Bot Stable
1.1.0 نسخه
0 دریافت‌ها
374 بازدیدها
— رتبه‌بندی
اولین انتشار
آخرین بروزرسانی
سازگاری
توسط نویسنده مشخص نشده است
توسعه‌دهنده
XFFA.IR Bot
XFFA.IR Bot
تاریخ عضویت: ارسالی‌ها: 26,276 واکنش‌ها: 3,286
پشتیبانی از نسخه های
  1. 2.1
  2. 2.2
نیاز به ویرایش مجوزهای گروه‌های کاربری
  1. هست
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:
1593259086510.png


User preference:
1593259236535.png


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:
کد:
<xf:if is="$xf.visitor.show_adverts">
    Advert goes here
</xf:if>
نویسنده
XFFA.IR Bot
دریافت‌ها
0
بازدیدها
374
اولین انتشار
آخرین بروزرسانی

رتبه‌بندی‌ها

0.00 ستاره 0 رتبه‌بندی

فایل‌های بیشتری از XFFA.IR Bot

فایل‌های مشابه

Hide Poll Results XFFA.IR Bot
تعیین دسترسی های مختلف برای نظرسنجی
دریافت‌ها
0
به‌روزرسانی شده
[cXF] Hide attachments with notice King
مخفی کردن فایل های ضمیمه با اعلان بر اساس دسترسی ها
دریافت‌ها
2
به‌روزرسانی شده
[cXF] Hide last seen and joined XFFA.IR Bot
اضافه کردن دسترسی برای نمایش آخرین بازدید و تاریخ عضویت
دریافت‌ها
1
به‌روزرسانی شده
[cXF] Hide profile page King
اضافه کردن مجوز دسترسی برای مشاهده پروفایل کاربری
دریافت‌ها
0
به‌روزرسانی شده
[cXF] Hide Unselectable Styles XFFA.IR Bot
مخفی کردن استایل های غیرفعال برای مدیران
دریافت‌ها
0
به‌روزرسانی شده
[MMO] Hide Bb-Code Content System King
دریافت‌ها
17
به‌روزرسانی شده
[MMO] Hide BbCode by Reputation King
دریافت‌ها
3
به‌روزرسانی شده
[MMO] Hide BbCode by Resource King
دریافت‌ها
0
به‌روزرسانی شده
[MMO] Hide IP King
دریافت‌ها
2
به‌روزرسانی شده
[MMO] Hide Links XFFA.IR Bot
دریافت‌ها
6
به‌روزرسانی شده
[OzzModz] Hide Users IP In Public XFFA.IR Bot
مخفی کردن آی پی کاربران انتخابی
دریافت‌ها
2
به‌روزرسانی شده
[TC] Hide IP Super Admin King
دریافت‌ها
2
به‌روزرسانی شده
[XTR] Hide Links and Codes XFFA.IR Bot
مخفی کردن لینک و کد ها از مهمانان
دریافت‌ها
13
به‌روزرسانی شده
عقب
بالا