Sports scores

Talmyric Staff Action Reason Prompt

Released Talmyric Staff Action Reason Prompt 1.4.1

No permission to download
Additional requirements
Xenforo 2.3+
Updates duration
Free
# Staff Action Reason Prompt

A small XenForo 2.3+ add-on that adds an optional public notice prompt when a moderator locks or sticks a thread. If the moderator fills in a notice, it is appended to the bottom of the thread's first post as a styled administrative note.

It supports both places threads are locked or stuck:

- **Thread tools menu** on the thread view (More options → Lock thread / Stick thread).
- **Inline moderation** on forum and thread lists (select threads, choose Lock threads / Stick threads, then Go).

## Features

- **Optional public notice on lock and stick.** Leave the field empty and the action behaves exactly as before.
- **Both moderation entry points.** The thread tools menu (Lock thread / Stick thread) and inline moderation (Lock threads / Stick threads) share the same prompt.
- **One prompt for a whole selection.** Inline moderation asks once and appends the same notice to the first post of every selected thread.
- **Rendered as a callout.** The notice is appended to the bottom of the first post inside a `[STAFFNOTE]` BB code block and displayed as a subtly bordered note.
- **Reversing cleans up.** Unlocking or un-sticking removes the most recent notice from the first post, with no prompt.
- **Themeable with style properties.** Background, border color, border width, border radius, text color, padding and margin live in a dedicated *Staff action notices* style property group and follow style and color variations.
- **Email and text friendly.** HTML email copies keep an inline-styled version of the callout, because email clients do not load forum CSS; plain-text output shows the note text only.
- **Permission aware.** Moderators without the *Edit any post* node permission can still lock and stick; the prompt tells them the notice cannot be added.
- **No schema changes.** Notices are ordinary post content saved through XenForo's post editor service, so they appear in normal edit history.
- **Fully phrased.** Every phrase is namespaced under `talmyric`, so it can be translated without collisions.

## Requirements

- XenForo 2.3.0 or newer
- PHP 8.0+ (whatever your XenForo version requires)
- The moderator needs the *Edit any post* node permission (`editAnyPost`) to add or remove a notice. Without it, the lock/stick still happens, but the notice is unchanged.

## Installation

1. Upload the contents of `_releases/Talmyric-ReasonPrompt-1.4.1.zip` to your forum root, or install the zip through **Admin CP → Add-ons → Install/upgrade from archive**.
2. The add-on works as soon as it is installed. Its appearance is controlled by style properties.

## Upgrading from 1.3.x

Style property customizations are migrated automatically from the old property IDs to the new `talmyric`-prefixed IDs during the upgrade. If the add-on was already upgraded to 1.4.0 before this migration was added, XenForo had already removed the old property rows, so those values cannot be recovered automatically; reapply them under the new properties.

## How it works

- **Thread tools:** the **Lock thread** and **Stick thread** links open a small overlay instead of acting immediately. The overlay has an optional **Public notice** field. Leave it blank to lock/stick silently as before.
- **Inline moderation:** selecting **Lock threads** or **Stick threads** and pressing **Go** opens the same prompt for the selected threads. The notice entered is appended to the first post of every selected thread.
- When a notice is provided, the add-on appends a `[STAFFNOTE]` BB code block to the first post. The note is rendered as a subtly bordered callout, and the edit is recorded in the post's normal edit history.
- **Unlocking or un-sticking removes the most recent staff notice** from the first post. This happens for both thread tools and inline moderation.
- Locking and sticking still append a notice when a notice is supplied. Unlocking and un-sticking do not ask for a notice; they simply remove the latest one.
- A `[STAFFNOTE]` custom BB code is registered so the note degrades gracefully in emails and text output.

## Styling

The public callout uses the `staffActionNote` CSS class. Its appearance is editable in **Admin CP → Appearance → Style properties → Staff action notices**:

- Background color
- Border color
- Border width
- Border radius
- Text color
- Padding
- Margin

The styles are applied through a LESS template included from `extra.less`, so they follow the selected style and its color variations. HTML email copies keep equivalent inline styling because email clients do not load forum CSS.
image1.jpegimage2.jpeg

image3.jpegimage4.jpeg
Author
talmyric
Downloads
0
Views
37
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from talmyric

  • Talmyric Quote Cascade Delete
    Released Talmyric Quote Cascade Delete
    Current features Selective quote cascade deletion. The standard Delete dialog previews direct quotes in the same thread. Choose individual replies, use Select all or Clear all, and see the selection count before confirming. Advanced cascades...
  • Thread View Milestone Confetti
    Released Thread View Milestone Confetti
    # Thread View Milestone Confetti — 1.2.1 Every forum has them: the thread that quietly rolls past 100 replies, the post that collects its fiftieth reaction, the milestone nobody notices because it arrives as one more notification among forty...
  • Talmyric Profile Vanity URLs
    Released Talmyric Profile Vanity URLs
    Full Feature List Profile addresses Readable profile URLs using /members/{slug}/, /user/{slug}/, /profile/{slug}/, /u/{slug}/, and /@Username. Automatic slugs generated from usernames. Optional custom profile slugs. Configurable canonical URL...
  • Talmyric Feed Date/Time
    Released Talmyric Feed Date/Time
    ## What it does XenForo's built-in RSS feed importer creates each thread with the current server time. This add-on makes imported threads keep the **date and time the entry carries in the feed** instead. ## Feature list **Date handling** -...
  • Talmyric Clan & Guild Recruitment Board
    Released Talmyric Clan & Guild Recruitment Board
    **Find your people. Build your team. Keep recruitment moving.** Bring guild discovery, applications, interviews and officer review into your XenForo community. Give players a clearer path to the right team, and give guild leaders a workspace...
Back
Top