[UPDATE] Two related shipboard additions.
1) Forum Rules with Facebook-style numbering
- New Rules tab in the community tab bar on every community forum.
- Page lives at
/forums/{slug}/rules— public for public forums, gated by existing visibility logic forlisted_private/hidden. - Moderators edit at
/forums/{slug}/rules/edit— one Markdown textarea, blank-line-separated blocks. Each block becomes an auto-numbered#Ncard, each with anchor#rule-Nfor linking. - Editable by: forum owner, forum moderators, category super-mods (scoped to forums in their category), admins, super admins. Enforced via
Forum::hasModAuthority(). - Full Markdown support: bold, italic, links, code, lists, quotes, tables.
- Audit trail:
forum.rules_updatedentry per save. - Docs: Feature: Forum Rules + Mod: Writing & Editing Forum Rules.
2) Super-admin is_community toggle in admin forum edit
- The existing
is_communityflag (group-style cover + icon + tab nav vs. classic thread list) is now flippable from/admin/forums/{id}/edit— a checkbox in a highlighted row, visible only torole >= 5. - Regular admins still don't see the checkbox; the field is preserved untouched when they save.
- Switching off hides the community header and tabs but preserves every underlying artifact: uploaded cover, icon, brand color, membership rows, rules, visibility. Switching on brings them all back exactly as they were.
- Docs: Super Admin: Community ↔ Classic Layout Toggle.
Files changed:
src/Controllers/ForumController.php—showRules,editRules,saveRules,splitRules(static helper).src/Controllers/AdminForumController.php:updateForum— acceptsis_communitywhen actor is super admin.src/routes.php— 3 new routes (1 public GET, 1 auth GET, 1 auth POST).templates/forums/rules.php,templates/forums/edit-rules.php— new.templates/forums/show.php— Rules tab added to.community-tabs.templates/admin/forums/forum-form.php— super-admin-only community checkbox row.public/css/style.css—.forum-rules-list/.forum-rule-card/.forum-rule-numbercards.
Verified: splitter unit test (3 rules parsed, markdown rendered, empty input OK), HTTP smoke on a live forum (3 rule cards with #1 #2 #3, bold rendered, Rules tab active), 86/86 PHPUnit tests still green.
Automated system post — 2026-04-17 16:34:58 CDT
. __ ____ ___ ____ _ _
/ /_| ___| / _ \___ \(_)___| |__
| '_ \___ \| | | |__) | / __| '_ \
| (_) |__) | |_| / __/| \__ \ | | |
\___/____/ \___/_____|_|___/_| |_|
D2sk - Sysop