[Xenbros] XFRM limits

[Xenbros] XFRM limits [Paid] 1.2.2

No permission to buy ($10.00)

Anomandaris

Well-known member
When a user does not have permission to download, the button that says "Download Limit Exceeded" is not clickable. In every situation where the user cannot download, the button should be clickable and send the user to account/upgrades.

The purpose of the addon is to monetize your downloads, so all situations where the user is limited should make it as easy as possible to perform an upgrade

I have done this manually by replacing:
Code:
<span class="button is-disabled">{{ phrase('xfrm_no_permission_to_download') }}</span>

with:
Code:
<xf:button href="{{ link('account/upgrades') }}"
class="button--cta">{{ phrase('xfrm_no_permission_to_download') }}</xf:button>

and replacing
Code:
<span class="button is-disabled">{{ phrase('limit_download_exceet') }} {$xf.visitor.hasPermission('resource', 'downloadlimitday')} {{ phrase('resource_per_day') }}</span>

with:
Code:
<xf:button href="{{ link('account/upgrades') }}"
class="button--cta">{{ phrase('limit_download_exceet') }} {$xf.visitor.hasPermission('resource', 'downloadlimitday')} {{ phrase('resource_per_day') }}</xf:button>
 
Last edited:
Top