Skip to content

Let admins make their own BBCodes wiki-only - #88

Merged
bonelifer merged 3 commits into
mainfrom
admin-bbcodes-wiki-only
Oct 15, 2026
Merged

bonelifer merged 3 commits into
mainfrom
admin-bbcodes-wiki-only

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

Adds Extensions > Wiki > BBCodes to the ACP. It lists the board's custom BBCodes (the ones added on Posting » BBCodes, which the page links to). A ticked BBCode works only in wiki articles:

  • Posts, private messages and signatures that use it are refused with phpBB's usual "You cannot use certain BBCodes" message.
  • Its button shows only in the wiki editor.
  • Text saved before it was ticked keeps its formatting until it is edited.

The choice is stored by BBCode id in the new config value wiki_only_bbcodes. Renaming a BBCode keeps it ticked. Nothing is ticked after the update, so every BBCode keeps working where it did. The page needs the "Can alter BBCodes" admin permission.

Testing:

  • New unit tests cover the stored list, the parser names and the hidden buttons, and check that a wiki-only BBCode is read only in wiki articles. The suite passes on phpBB 3.3 and 4.0.
  • On a 3.3 test board, Claude added a custom [note=…] BBCode and ticked it. A forum post using it was refused and its button was gone from the post editor, while the wiki editor kept the button and rendered it. Unticking it made it work in posts again.
  • On a 4.0 test board, Claude checked that the new page appears and links to phpBB's BBCodes page.

Investigated and written by Claude on behalf of William Jacoby (bonelifer).

🤖 Generated with Claude Code

bonelifer and others added 3 commits October 15, 2026 01:10
A list of the board's custom BBCodes under Extensions > Wiki > Settings.
A ticked one is read only while a wiki article is saved or previewed,
and its button shows only in the wiki editor; posts, private messages
and signatures using it get phpBB's "You cannot use certain BBCodes".
Kept by BBCode id in the new config value wiki_only_bbcodes, empty by
default so nothing changes until an admin ticks one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extensions > Wiki > BBCodes, for admins who may manage BBCodes, instead
of a section of the Settings page, with plainer wording and a link to
phpBB's Posting > BBCodes page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit 94e65d9 into main Oct 15, 2026
58 checks passed
@bonelifer
bonelifer deleted the admin-bbcodes-wiki-only branch October 15, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant