[Mod] Topic Tags & Prefixes

Started by Deaks, Nov 21, 2026, 04:52 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Deaks

Topic Tags & Prefixes v1.0.3
For SMF 2.1.x · By BoredSkull · ISC Licence

Give each topic a coloured prefix to show its purpose and clickable tags to describe its subject. For example, a tutorial could use the Guide prefix and the tags installation and themes. Members can spot the guide in a board's topic list, then select a tag to find other discussions on the same subject.

Download — The v1.0.3 package is attached to this topic.
Try it on BoredSkull — Browse Topic Tags
SMF Customisation Site — Topic Tags & Prefixes (awaiting approval)



What's New in v1.0.3?

  • Quick Reply — Fixed an issue on topics with tags or a prefix that could break Quick Reply and insert HTML into reply subjects.
  • Tag and prefix pages — Topic subjects and board names now display special characters correctly and respect the forum's word-censor settings.
  • Disabled tags — Members can no longer reattach a tag after an administrator disables it.
  • New topics — Selected tags and the prefix are kept when a member previews a topic or corrects a posting error.
  • Upgrades — Versions v1.0.0 through v1.0.2 can be upgraded directly to v1.0.3 through the Package Manager, without uninstalling first.
  • Credits — Added Topic Tags & Prefixes to the forum credits page.



Using Tags and Prefixes

  • Label a topic — Choose up to one prefix and add tags when starting a topic. The five starter prefixes are Announcement, Guide, Support, Solved and Bug.
  • Update an existing topic — Select Edit tags & prefix to change its labels. For example, a member with editing permission can change a support topic's prefix to Solved once the issue is resolved. SMF's topic locks and edit-time limits still apply.
  • Find related discussions — Select a tag on a topic or search for it by name in the tag browser. Sort matching topics by recent activity or by the number of replies. Results respect board visibility.
  • Follow a subject — Registered members can follow tags, see new-topic counts and catch up through a dedicated feed. Tag subscriptions are on-site only, with no email or push notifications.

Installation and Administration

Back up your forum files and database before installation, and check compatibility with your theme and other topic-related mods. Upload the attached ZIP through Admin → Packages → Download Packages and select Install Now.

Open Admin → Configuration → Topic Tags & Prefixes to manage the following settings.

  • Features — Enable or disable tags, prefixes and tag subscriptions individually.
  • Tag catalogue — Create, rename, disable or delete tags. Let members create their own or limit them to the existing catalogue. Set the maximum per topic from 1 to 12, with a default of five.
  • Prefixes — Customise prefix names, colours and display order. Restrict individual prefixes to selected boards, such as reserving Announcement for the news board.

Technical Details

The mod uses SMF integration hooks and requires no core or theme template edits. Tags, prefixes and subscriptions are stored in dedicated database tables. No external service is required. Other mods can use the supplied integration hook to respond when a topic's tags or prefix change.

PHP 7.4 or newer is recommended. The code has been syntax-checked on PHP 8.x.



Earlier Releases

  • v1.0.2 — Restored the missing label on the Edit tags & prefix button.
  • v1.0.1 — Removed the dedicated main-menu entry and added upgrade cleanup for its old navigation hook.
  • v1.0.0 — Introduced topic tags, coloured prefixes, the tag browser, member subscriptions, administration and permission controls, and the developer integration hook.

Support and Suggestions

For help or to report a bug, please use the Support board. Include your SMF and mod versions, the steps that reproduce the issue and, for display problems, the theme you're using. Feature suggestions are welcome on the Requests board.
  • 👍 1

    Members who reacted


Deaks

Topic Tags & Prefixes 1.0.3
  • Fixed the quick reply breaking on topics with a prefix or tags, which also put HTML into reply subjects.
  • Fixed topic subjects and board names showing double-escaped on the tag and prefix pages. Word censoring now applies there too.
  • Fixed members being able to re-attach a tag that an admin had disabled.
  • The new-topic tag and prefix fields now keep their values after Preview or a posting error.
  • Added an upgrade path from 1.0.0 to 1.0.2, so you no longer need to uninstall first.
  • Added a credits line on the forum credits page.
  • 0 reactions

    Members who reacted