How To Create a MyBB Usergroup Legend, No Plugins
#1
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?

[Image: mybb-usergroup-legend.jpg]

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/
Reply
#2
thanks!
Reply
#3
thaankssssssssss
Reply
#4
Unfortunately this legend is only available at the board index. Not what I need... Sad
I fold for team 52482. Do you fold?
Reply
#5
Thanks for sharing my tutorial here NightKids. Smile



(2012-08-02, 06:14 AM)MadComp Wrote: Unfortunately this legend is only available at the board index. Not what I need... Sad

Where do you want it to be?
My latest venture: Android emulator for PC reviews - playroider.com
MyBB fan since 2011.
Reply
#6
Also on the portal (which acts like my sites's homepage).
I fold for team 52482. Do you fold?
Reply
#7
you can put it under the online bit of the portal
Reply
#8
You can use View Groups by Pirata Nervo
Reply
#9
Even you can add what you want not only userlegend
Example you want to add a forum signature you will do
<tr>
<td class="tcat"><span class="smalltext"><strong>Forum Signature</strong></span></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext"><img src="[your froum signature link img]</span></td>
</tr>

even you want to add videos or music
MyBB From My Beautiful Board Heart
Reply
#10
Thank you very much for this, man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)