[Mod] Advanced BBCode & Editor Manager

Started by Deaks, Nov 20, 2026, 09:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Deaks

Advanced BBCode & Editor Manager v1.1.0
Create your own BBCodes, design the toolbar and choose who can use each tag.
By BoredSkull for SMF 2.1.x  •  ISC Licence



Give moderators a Staff Notice button, writers a Spoiler panel and support volunteers an Info box. Each can have its own toolbar button and preview, and you can decide which boards and membergroups get to use it. You can build all three from the admin panel without writing PHP.

Version 1.1.0 adds control over how those elements look across your themes. A staff notice can keep its familiar border colour across the forum while using different text and background colours on your dark theme.



New in v1.1.0 — Appearance controls

  • Style five parts of an element. The new Appearance tab lets you set the body text, background, border, title text and title background colours for custom BBCode elements.
  • Set forum-wide colours or override them by theme. Leave individual fields blank to inherit their styling. To return to the theme's defaults, switch off custom colours.
  • Check colours before saving. The editor validates six-digit hex colours and warns you when the selected text and background have a contrast ratio below 4.5:1.
  • Upgrade directly from v1.0.2 through SMF's Package Manager.



Build a BBCode and put it on the toolbar

  • Start with 15 ready-made elements. The Library includes alerts, information boxes, warnings, announcements, spoilers, progress bars, badges and columns.
  • Create your own tags. The visual builder supports text, numbers, colours, URLs and selection lists. Use the live preview to check how the finished element will look in a post.
  • Give each button a clear purpose. Upload an icon, write a tooltip and assign a keyboard shortcut. Buttons without an uploaded icon display a readable label. You can also customise tooltips for buttons supplied by SMF or other mods.
  • Check your template. Built-in validation checks for conflicting tags, incorrect placeholders and unsafe HTML.

Choose which tools each member sees and can use

Create as many editor profiles as you need, arrange their buttons by drag and drop, then assign profiles by membergroup, board or posting context. Try a profile yourself before making it available to members.

Tag restrictions are enforced on the server. If a notice is reserved for moderators, typing its BBCode by hand still has to pass the permission check. Restrictions cover posts, quick edits, previews, private messages and signatures.

Custom BBCodes work in both visual and source editing modes. Members can press Alt+/ to find a command, use a keyboard shortcut for a favourite tool or scroll through the toolbar on a smaller screen.



Manage and reuse your setup

  • Revision history records configuration changes and lets you restore an earlier version with one-click rollback.
  • Import and export lets you move a complete configuration between forums, including custom button icons.
  • Diagnostics flags tag conflicts, disabled BBCodes, template issues, shortcut clashes and unused profiles. It also identifies other mods using editor integration hooks.

Installation and first setup

Requirements — SMF 2.1.x and PHP 7.0 or newer. PHP GD is recommended for custom toolbar icon uploads. The mod uses SMF hooks and requires no edits to core files or theme templates.

  • Upload the package through Admin → Packages → Download Packages → Upload Package. Choose Install Now for a fresh installation or Upgrade from v1.0.2.
  • Open Admin → Configuration → BBCode & Editor Manager and add an element from the Library.
  • Use Appearance to set its colours. Add its button to an editor profile, test the layout and assign the profile to your chosen boards or membergroups.



Earlier releases

  • v1.0.2 — Editor fixes. Custom buttons gained readable labels when no icon was uploaded. SCEditor detection improved, and the mod retries while the configuration is loading. Custom WYSIWYG formats are marked as registered only after their configuration is available.
  • v1.0.1 — Validation and imports. Added stronger HTML, attribute and URL checks, plus validated imports using database transactions. This release also improved compatibility with PHP installations without mbstring, tidied up icon and optional media-image handling, and preserved existing configuration when upgrading from v1.0.0.

SMF Customisation Site status — awaiting approval
View Advanced BBCode & Editor Manager on the SMF Customisation Site
  • 0 reactions

    Members who reacted


Old Mellow

This a lot of nice features! Well done!  ;D
  • 👍 1

    Members who reacted


Old Mellow

I think the only think that I can see missing in the settings is the ability to change Custom BBC Code colors. I.E, the text and background colors so that they will match any theme. However, I've only tested this with the default theme only.
  • 0 reactions

    Members who reacted


Deaks

you mean change colors of alert etc just need to change in css fpr now
  • 👍 1

    Members who reacted


Deaks

as i missed it before for 1.0.2 ill add it here:

1.1.0 — Appearance controls
  • Added an Appearance tab to set the text, background, border, title text and title background colours for custom BBCode elements.
  • Set forum-wide colours or override them for individual themes. Leave individual colour fields blank to inherit styling, or disable custom colours to restore the theme's defaults.
  • Added six-digit hex colour validation and a warning when the selected text and background have less than 4.5:1 contrast.
  • Added a direct Package Manager upgrade from 1.0.2.

1.0.2 — Editor fixes
  • Custom toolbar buttons now show a readable label when they have no uploaded icon.
  • Improved SCEditor detection and added retries when the editor configuration is still loading.
  • Fixed an issue where custom WYSIWYG formats could be marked as registered before their configuration had loaded.

Build your forum, your way!
  • 0 reactions

    Members who reacted