From 053bd24a8aeb2b2aaa4cfcb2384b21e357634d1a Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Sun, 8 Nov 2026 11:45:26 -0600 Subject: [PATCH 1/2] Replace NONE with a notes button next to posts and on profiles The SEE NOTES line now shows only while a member has a current reason. Staff get a Moderator notes button with the post buttons and a link with the profile's user statistics, for every member; without a current reason they open the Give a reason form. phpBB 4.0 draws post button icons with Icon(), so the button has a template per branch. Co-Authored-By: Claude Opus 5.5 --- README.md | 5 +- docs/design.md | 3 +- docs/images/screenshots/README.md | 8 +- event/listener.php | 90 +++++++++++++------ language/en/common.php | 5 +- .../template/event/mcp_post_text_before.html | 2 +- ...memberlist_view_user_statistics_after.html | 4 + .../viewtopic_body_post_buttons_after.html | 4 + .../all/template/seenotes_post_button_33.html | 5 ++ .../all/template/seenotes_post_button_40.html | 5 ++ styles/all/template/seenotes_reason.html | 2 +- styles/all/template/seenotes_reason_link.html | 4 +- styles/all/theme/seenotes.css | 5 -- tests/event/listener_test.php | 8 +- 14 files changed, 101 insertions(+), 49 deletions(-) create mode 100644 styles/all/template/event/memberlist_view_user_statistics_after.html create mode 100644 styles/all/template/event/viewtopic_body_post_buttons_after.html create mode 100644 styles/all/template/seenotes_post_button_33.html create mode 100644 styles/all/template/seenotes_post_button_40.html diff --git a/README.md b/README.md index 65b21da..018577a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ Lets moderators mark a member with a staff-only reason from a list the administr - **ACP → Extensions → See Notes → Reasons**: administrators set up the list of reasons, each with a description, a color, and an on/off switch. Seven starter reasons (Moderation queue, Spam watch, Warez, Conduct, Possible returning member, Staff in contact, General) are added on first enable, ready to edit or remove. A switched-off reason can't be given any more, but members who have it keep it and its notes. - **MCP → Moderator notes** and **ACP → Manage users → Moderator notes**: give a member a reason, choose which reason is current (or none), and add notes under each reason. - **Notes use BBCode**, smilies and links, following the board's private message settings, so a PM sent to the member can be pasted into a quote for other staff. -- **Only staff see it.** The current reason shows as "SEE NOTES: Moderation queue (3)" on the member's profile, next to their posts, on the MCP post, report and approval queue pages, and in the MCP topic view. It links to the notes. A member with no current reason shows "SEE NOTES: NONE", which links straight to the form that gives one. +- **Only staff see it.** The current reason shows as "SEE NOTES: Moderation queue (3)" on the member's profile, next to their posts, on the MCP post, report and approval queue pages, and in the MCP topic view. It links to the notes, and shows only while the member has a current reason. +- **A notes button** next to every post (beside phpBB's Warn button) and a **Moderator notes** link on every profile take staff straight to a member's notes, or to the form that gives a reason when the member has none. - The member's latest **phpBB user notes** (warnings, bans and so on) show read-only on the same page. - Separate permissions for seeing, adding, editing notes, deleting notes and deleting a reason entry, with matching administrator permissions. - Every change goes into the moderator log. Deleting a reason with all its entries is off by default, and needs the reason's name typed to confirm. @@ -23,7 +24,7 @@ The full design is in [`docs/design.md`](docs/design.md). - +
MCP Moderator notes page for a memberMCP post details with a SEE NOTES notice

The reason in a post's mini-profile

SEE NOTES: NONE on a profile
MCP post details with a SEE NOTES notice

The reason in a post's mini-profile

The Moderator notes button next to a post by a member without a reason
diff --git a/docs/design.md b/docs/design.md index 43f4188..3ea49fa 100644 --- a/docs/design.md +++ b/docs/design.md @@ -59,7 +59,8 @@ To staff with the "see" permission only: - **Mini-profile** next to posts (viewtopic): the same line next to the custom profile fields, in bold, in the reason's color (red by default). - **MCP pages where moderators act on a post:** the post details, report details and approval queue details pages, as a notice above the post (where phpBB shows "This post was reported"), and the MCP topic view, after each poster's name. The queue and reports *lists* are left out: their templates have no events to add anything to, and every item in them links to its details page. - All of these show the reason's description on hover (when it has one) and link to the member's Moderator notes tab in the MCP. The number in brackets is how many notes the current entry has. -- When a member has no current reason, the same places show "