Install
Requirements
- XenForo 2.3.0 or newer.
- PHP 7.2 or newer.
- MySQL 5.7 / MariaDB 10.2 with
utf8mb4.
Install
- Download the release archive and extract it into your installation. The
src/addons/MC/Sunset/directory should sit alongside the other add-ons. - Navigate to AdminCP > Add-ons and click Install next to [MC] Sunset. The add-on creates five storage tables (
xf_mc_sun_user_state,xf_mc_sun_snapshot,xf_mc_sun_released_username,xf_mc_sun_audit_log,xf_mc_sun_reactivation_request) and addsmcsun_warning_optouttoxf_user_option. - Two cron entries are registered: MC Sunset: Evaluate inactive users and MC Sunset: retention enforcer. Both gate on the Enable evaluator option, so they do nothing until the master switch is turned on.
First-run checklist
The add-on ships with Enable evaluator set to Off and a seeded set of policy assignments that include destructive actions (anonymise profile fields, release username). Review every step below before turning the master switch on.
- Open AdminCP > Users > Sunset > Dashboard. The tier counts should all read zero on a fresh install.
- Review AdminCP > Setup > Options > [MC] Sunset > Tiers. Defaults are 180 days to Warned, 365 to Soft sunset, 730 to Hard sunset, and 1825 to Released. Adjust to match your inactivity policy.
- Open AdminCP > Users > Sunset > Policies. The seeded assignments wire
notify_userto Warned,deindex_profileandanonymize_field(about, location, signature) to Soft and Hard,notify_adminto Hard, andrelease_usernameplusnotify_adminto Released. Toggle off anything you don't want firing. - Confirm the per-tier reactivation models at the bottom of the Policies page. Defaults are
autofor Warned,auto_notifyfor Soft,requestfor Hard,partialfor Released. See Reactivation. - Add staff and moderator groups to Excluded user groups so the evaluator never sunsets them.
- Open the Preview page from the Dashboard to see exactly which members the next evaluator pass would tier and what each policy would do, with no live writes. Run it before flipping the master switch.
- Once the matrix and thresholds look right, set Enable evaluator to On.
- Optionally remove branding under AdminCP > Setup > Options > [MC] Sunset > General.
Verifying the install
- Confirm the add-on is Active at AdminCP > Add-ons.
- Visit AdminCP > Users > Sunset > Dashboard. The page should render with zero tier counts and an empty recent-activity ledger.
- Confirm both cron entries are listed at AdminCP > Tools > Cron entries with
MC Sunsetin the title. - Run
php cmd.php mc-sunset:self-testfrom the installation root. The command creates a synthetic user inside a rolled-back transaction and exercises the full lifecycle (snapshot capture, transitions through all tiers, reactivation, approval-queue sync, request-model lockout) without leaving any rows behind. Exit code must be zero.