Repository navigation
Let admins make their own BBCodes wiki-only - #88
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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:
[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.Investigated and written by Claude on behalf of William Jacoby (bonelifer).
🤖 Generated with Claude Code