2012-07-08, 05:33 AM
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?
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.
source: http://mybbgroup.com/how-to-create-a-myb...o-plugins/
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?
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.
source: http://mybbgroup.com/how-to-create-a-myb...o-plugins/