How To Create a MyBB Usergroup Legend, No Plugins

Create a simple MyBB usergroup legend.

In forums, a usergroup legend shows the different styled groups on the forum index so everyone knows who’s in what usergroup. In MyBB, many use a plugin for this as the forum software does not have a MyBB usergroup legend feature included, however adding one is easy to do and can be done without any MyBB plugins. Here’s a short tutorial on how you can create your own customizable MyBB usergroup legend code on your forum index.

1. Go to Admin CP > Templates & Style > Templates > (your default template) > Index Page Templates > index_boardstats and find:

{$whosonline}

Add this below it:

<tr>
<td class="tcat"><span class="smalltext"><strong>Usergroup Legend</strong></span></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">ADD YOUR USERGROUPS HERE</span></td>
</tr>

2. Now go to Users & Groups > Groups > (choose any group you have, but in this tutorial I’m choosing Administrators) and under “Username Style”, copy everything there.

3. Go back to the index_boardstats template and replace the “ADD YOUR USERGROUPS HERE” text in the MyBB usergroup legend code with your copied Username Style, replace “{username}” with the name of the user group (in this case it would be Administrators).

4. Repeat with any other usergroups you want to add to the MyBB usergroup legend, add a comma and space (, ) after each one. When finished, save the template.

The result?

How To Create a MyBB Usergroup Legend, No Plugins

The forum index now shows a clean MyBB usergroup legend that can easily be rearranged to how you want it. Add, move and remove any groups from the usergroup legend in index_boardstats. You shouldn’t have to do this often as most forums have a stable set of usergroups.

VN:F [1.9.20_1166]
Rate This post
Rating: 0.0/5 (0 votes cast)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by Sweet Captcha
Verify your real existence,
Drag the ice cream to the cone
  • captcha
  • captcha
  • captcha
  • captcha