Skip to main content

Policies

AdminCP > Users > Sunset > Policies.

The Policies page is where you assign which policies fire at which tiers, and where each policy's per-tier settings live.

Layout

The page is two sections:

SectionWhat it shows
Policy assignmentsGrid of policies (rows) by tiers (columns). Each cell is a checkbox. Tick to fire that policy when a member enters that tier. Below the grid sits a row of reactivation-model dropdowns, one per non-Active tier.
Policy settingsOne collapsible group per policy, with the per-policy tunables (which fields to anonymise, the subject and body of notify emails, etc.). Clicking a policy name in the assignment grid opens its settings group.

Default assignment

A fresh install seeds the assignments with this default:

WarnedSoftHardReleased
notify_user
deindex_profile
anonymize_field
notify_admin
release_username

The anonymize_field policy is pre-configured to anonymise about, location, and signature.

The seed only fires on install. Upgrades never touch customised assignments.

Policy settings

notify_user, notify_admin

Subject and body fields (textbox + textarea). Placeholder tokens replaced at send time:

TokenReplaced with
{username}The member's username at the time the email is queued.
{board_title}XenForo's Board title option value.
{tier}The phrase for the tier the member just entered (Warned, Soft sunset, etc.).
{threshold_days}The threshold-in-days option for the tier (e.g. 730 for hard).
{user_id}Member ID. Only resolves in notify_admin.

Both policies use the shared mc_sun_notification_email template, so the subject and body are the only per-tier customisation surface.

deindex_profile

No settings. Either ticked for a tier or not.

anonymize_field

A Fields checkbox group. The native fields listed are: about, signature, location, website, custom_title. Below them, every textbox or textarea custom user field on the board appears in an "Custom fields" optgroup, keyed custom.<field_id>. Tick a field to include it; the snapshot category is profile for native fields and custom for custom fields.

The Category radio at the bottom controls the snapshot retention bucket. Default is profile. Switching to custom exposes a Custom retention input where you set a per-policy retention window in days (overrides the global Profile snapshot retention).

release_username

A Placeholder pattern field. Default is Member#{user_id}. Tokens:

TokenReplaced with
{user_id}Member ID.
{random}A short random suffix (8 hex chars).

The original username is snapshotted under category pii and recorded in xf_mc_sun_released_username for the lockout enforcement.

Reactivation models

The reactivation row at the bottom of the assignment grid is a write-through to the four mcSunset_reactivationModel* options. Editing it from here is the equivalent surface for the per-tier reactivation models; the Reactivation tab on the options page covers the post-rejection policy and cooldown only.