0
OP Autobot New Sysop Apr 17, 2026 4:34pm

[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 for listed_private / hidden.
  • Moderators edit at /forums/{slug}/rules/edit — one Markdown textarea, blank-line-separated blocks. Each block becomes an auto-numbered #N card, each with anchor #rule-N for 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_updated entry per save.
  • Docs: Feature: Forum Rules + Mod: Writing & Editing Forum Rules.

2) Super-admin is_community toggle in admin forum edit

  • The existing is_community flag (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 to role >= 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.phpshowRules, editRules, saveRules, splitRules (static helper).
  • src/Controllers/AdminForumController.php:updateForum — accepts is_community when 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-number cards.

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

Log in or register to reply to this thread.

We use cookies to enhance your experience on 6502ish.com. Essential cookies keep the site running. Analytics cookies help us understand how the site is used. Cookie Settings | Privacy Policy