MyBB Community Forums

Full Version: Usergroup Legend
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I know Faint Brushfire already made a tutorial on how to add a usergroup legend but his method doesn't work on all themes. So i am going to show you a way to do it on those themes that didn't work with his tutorial.

Go into the Admin Control Panel and go to:
ACP > Templates & Styles > Templates > yourtheme Template > Index Page Templates > index_whosonline

At the bottom of the code already there add this code:
<th class="tcat"><span class="smalltext">Usergroup Legend</th>
</tr>
<tr>
<td class="trow1" valign="top" align="left"><span class="smalltext">
PLACE GROUPS HERE!
</tr>

Full Example Code:
<th class="tcat"><span class="smalltext">Usergroup Legend</th>
</tr>
<tr>
<td class="trow1" valign="top" align="left"><span class="smalltext">
<span style="color: #FF0000;"><strong>Administrators</strong></span> |
<span style="color: #FF8A00;"><strong>Super Moderators</strong></span> |
<span style="color: #FF8A00;"><strong>Moderator</strong></span> |
<span style="color: #4A4D4A;">Member</span> |
<em>Validating</em> |
<s>Banned</s> |
<span style="color: #FFFFFF;"><s>Permanently Banned</s></span>
</tr>

Picture below of finished legend.
[attachment=12875]

Hope this helped you!
Good, i think that its the same as Faint Brushfire's Group legend tutorial,
BTW great acheivement,
CONGRATULATIONS Smile
also i have to say that your mybbsig.php is not working fine,
and that in the picture attached above the colors of super moderator and moderator are same
and also that your forum gaminguru.org has producing some SQL errors...

Thankyou
I think there's a plugin for this, if I'm not mistaken.
@DougSD
Yes, there is. But it is not really customizable.

@Adam Khan
Thanks, My forum is down for some reason. I am trying to fix it.
Teehee, I fixed the problem and I was using it but I forgot to update the thread.

Thanks anyways though, this will help people more. Smile
Thats nice

But same can be done with the Original plug in code
Just delete everything and add yours ToungueBig Grin

Great Tutorial though man !
simple but sophisticated one
Keep it up
(2009-02-23, 07:58 PM)Joshua Mayer Wrote: [ -> ]@DougSD
Yes, there is. But it is not really customizable.

@Adam Khan
Thanks, My forum is down for some reason. I am trying to fix it.

I tried the plugin, and it didn't hide the groups I wanted it to hide, so I just did it myself.
I use invisionfree so please can you tell me where i put this code in on invisiionfree please...
Thanks for this Big Grin

I did have to make a few changes to my code but it worked great
<th class="tcat" colspan="2"><span class="smalltext">Usergroup Legend</th></tr>
<tr><td class="trow1" colspan="2" valign="top" align="left">
<span class="smalltext"><span style="color: Red;"><strong>Administrators</strong></span> |
<span style="color: #6500B3;"><strong>Super Moderators</strong></span> |
<span style="color: #2400FF;"><strong>Moderator</strong></span> |
<span style="color: #28A1EB;"><strong>MKDS Team</strong></span> |
<span style="color: #9F0ABA;"><strong>VIP Member</strong></span> |
<s>Banned</s> |
<span style="color: #BB7700;"><s>Permanently Banned</s></span></tr>

Note the new 'Colspan' code added, this works inline with any 'colspan' that may already be included in the 'Online Users' box. I've had to add this so as to show the 'Usergroup' box as 1 whole box.

Many thanks again Wink
Pages: 1 2 3