به پشتیبانی رسمی زنفورو فارسی خوش آمدید

این انجمن برای توسعه انجمن ساز XenForo تشکیل شده است. XenForo ابزاری برای ایجاد سایت های انجمن است.
شما میتوانید پس از ورود یا عضویت منابع را دانلود و بروز کنید،مشکلات خود را مطرح و سوالات را تا حد امکان جواب خواهیم داد و با سایر کاربران ارتباط برقرار می کنیم.
دانلود زنفورو

دانلود زنفورو

دانلود نسخه جدید زنفورو
نسخه 2.1.10

دانلود فارسی ساز

دانلود فارسی ساز
نسخه 98.12.1

دانلود منابع

قالب و افزونه های جدید و بروز را میتوایند از اینجا دانلود کنید

Hide Adverts

Hide Adverts 1.0.0b2

دسترسی لازم را برای دانلود ندارید
خرید هاست
تبلیغات شما
پشتیبانی از نسخه های
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>
ارسال کننده
senator
دانلود
0
بازدیدها
8
اولین انتشار
آخرین بروزرسانی
امتیاز
0.00 star(s) 0 امتیاز

منابع بیشتر از senator

اشتراک این منبع

shape1
shape2
shape3
shape4
shape7
shape8
بالا