Hide License Expiry Notice 1.0.0

XF 2.3 Hide License Expiry Notice 1.0.0

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
  • ⚠️ Section Premium. Réserver aux Membres Premium ⚠️
Hide License Expiry Notice 1.0.0

XF 2.3 Hide License Expiry Notice 1.0.0

Catégorie Catégorie Add-Ons
Titre du sujet Titre du sujet Hide License Expiry Notice 1.0.0
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 0
Affichages Affichages 4
Réaction Réaction 0
Dernier message par Dernier message par laurent68

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
5 048
Messages
13 203
Solutions
85
J'aime
8 087
Points
198
Additional requirements :
XenForo 2.3.0+. No PHP requirements beyond XenForo's own.

Not tested on 2.1/2.2. The targeted template exists in those versions and the
modifications will probably apply cleanly, but they're untested — if you try it,
check Appearance → Template modifications afterwards to confirm both show as applied.

What it does

Removes this block from the admin control panel:
The following issues should be resolved. Once they have been resolved, check for upgrades again.
  • Your license has now expired. You will not have access to new versions or support. To continue to get the latest updates and receive support, you should renew now.

That's it. It's a cosmetic tidy-up for a board whose licence has lapsed and whose
owner is already aware of it — the notice has served its purpose after the first
few hundred times you've read it.

This is NOT a null

Stating this plainly because it matters:
  • It does not touch the licence check, the licence validation, or anything that
    talks to xenforo.com.
  • It does not unlock updates, downloads, or support. It can't — whether
    updates are offered comes from XenForo's own server response to the upgrade check,
    not from anything running on your board.
  • It does not remove or alter copyright/branding. hasLicenseErrors() is
    left completely alone, so an invalid licence, a mismatched board URL or stripped
    branding still throws its errors exactly as before.
  • It contains no PHP whatsoever. No class extensions, no code event listeners,
    no Setup.php, no database schema changes.
An expired licence and an invalid licence are two different states in XenForo.
This add-on only silences the first one. The second still shouts at you, by design.

How it works

Two admin template modifications against upgrade_check_macros:
  1. rgz_hide_license_expired_warning — removes the license_expired list item
    from the warnings macro. Because the list sits inside an <xf:contentcheck>,
    the entire warning block disappears when that was the only outstanding item. If you
    also have a board URL mismatch, that warning still shows.
  2. rgz_hide_license_expired_success — the full_status macro gates its
    green all-clear message on hasNotice(), which stays true while the licence is
    expired. This swaps it for the same checks minus license_expired, so Tools → Check
    for upgrades reports success again instead of showing nothing at all.
Template modifications never edit the stored template. The original stays
byte-identical in the database; the replacement happens on the way into the compiled
cache. Disable or uninstall and the original output returns exactly — there's nothing
to reverse, the modification simply stops being applied.

Install

Admin CP → Add-ons → Install/upgrade from archive.

Or from your install root:

Code:
php cmd.php xf-addon:install RaGEZONE/HideLicenseNotice

A note to XenForo staff

This is not an attempt to circumvent licensing — it's a silent discard of a notice
on boards where the owner already knows the score. If it's against the resource
standards or you'd simply rather it not exist here, I apologise, and please feel
free to remove it. No argument from me.

Télécharger V1.0.0 :
 
Contenu similaire Les plus vues Voir plus
Retour
Haut Bas