MyBB Documentation

Config Thread Prefixes

The 1.6 Documentation is no longer maintained and some information may be outdated.

The MyBB 1.6 series reached end of life on October 1, 2015.

This means there will be no more security or maintenance releases for these series and forums running these versions of MyBB may be at risk of unfixed security issues. All administrators are strongly encouraged to upgrade their forums to the latest release of MyBB as soon as possible.

This article or section requires attention.
Reason: This article should describe the new Thread Prefixes section in MyBB 1.6.


Contents

Thread prefixes are used to describe or define some important things for the specified forums and for the specified usergroups.

Go to: ACP > Configurations > Thread Prefixes > Click on "Add New Thread Prefix" tab > and made a thread prefix using the following options:

  • Prefix - Its an option which show thread prefix on thread prefix option list on new thread pages and edit post pages.
  • Display Style - This is how the prefix will appear next to thread subjects. You may enter HTML markup here or simply use the same as the plain text version above.
  • Available in forums - If you wish to show that prefix in all forums then select "All Forums" option, otherwise, if you want to show in selective forums then select "Select forums" and then select the forums you wish to add that prefix in.
  • Available to groups - Similarly, If you wish to show that prefix to all usergroups then select "All groups" option, otherwise, if you want to show to selective usergroups then select "Select groups" and then select the usergroups you wish usergroups to show that prefix.

Press "Save Thread Prefix" button.

Yes, you may use tags to colorize your prefixes, like this;

<span style="color: #FFFF00; font-weight: bold; font-size: 11px;">YOUR_PREFIX</span>

Yes, by using the following core file edit, you can change the their order from Prefix ID to their Prefix Name.

Open ./inc/class_datacache.php file and find;

$query = $db->simple_select("threadprefixes", "*", "", array("order_by" => "pid"));

and replace it to;

$query = $db->simple_select("threadprefixes", "*", "", array("order_by" => "prefix"));

If you want to make an specific thread prefix as Mandatory while creating new thread (By mandatory it means that the selected prefix will be auto select and showed on the Prefix dropdown menu box), then open ./newthread.php and around line # 755 find;

$mybb->input['threadprefix'] = 0;

and change 0 to the Prefix ID number you wish to use it as a mandatory.

Page created by Yaldaram.

Admin CP
Home Dashboard - Preferences - Version Check - MyBB Credits
Configuration Settings - Banning - Custom Profile Fields - Smilies - Word Filters - MyCode - Languages - Post Icons - Help Documents - Plugins - Attachment Types - Moderator Tools - Spiders/Bots - Calendars - Warning System - Thread Prefixes
Forums & Posts Forum Management - Forum Announcements - Moderation Queue - Attachments
Users & Groups Users - Groups - User Titles - Banning - Admin Permissions - Mass Mail - Group Promotions
Templates & Style Themes - Templates
Tools & Maintenance System Health - Cache Manager - Task Manager - Recount and Rebuild - PHP Info - Database Backups - Optimize Database - File Verification - Administrator Log - Moderator Log - User Email Log - System Mail Log - User Warning Log - Statistics

Edit this page on GitHub