MyBB Community Forums

Full Version: [MyBB 1.2x] Group Legend
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
First, go to AdminCP -> Templates -> Modify / Delete -> Choose Templates -> Index Page Templates -> index_whosonline

Then, Find:

<td class="trow2"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>

Below it add:

<tr>
<td class="tcat" colspan="2"><strong>Group Legend</strong></td>
</tr>
<tr>
<td class="trow1" style="width:30px;" align="center"><img src="$theme[imgdir]/online.gif" /></td>
<td class="trow2"><span class="smalltext">[<font color="red"><b>Admins</b></font>] [<font color="#CC00CC"><b>Super Moderators</b></font>] [<font color="Grey"><b>Moderators</b></font>] [<font color="#000000">Registered</font>]</td>
</tr>

OK, Click Update!

Demo: http://tuoithanhxuan.info
Shouldn't they be clickable taking you to a list of who's in each group?
I can't understand what you say. Sorry, my English is not good. But that's group legend:

[Image: grouplegendjs6.png]

You can add your new group like that:

<td class="trow2"><span class="smalltext">[<font color="red"><b>Admins</b></font>] [<font color="#CC00CC"><b>Super Moderators</b></font>] [<font color="Grey"><b>Moderators</b></font>] [<font color="#000000">Registered</font>] [<font color="Your color">Gourp Name</font>]</td>
(2008-07-12, 09:41 PM)lufbra Wrote: [ -> ]Shouldn't they be clickable taking you to a list of who's in each group?
No; only if you have Show Group Details installed; then the groups will become clickable.
And in MyBB there's no action that gives you all the users of a specific group. (FrontEnd!)
if($plugincache['active']['showgroup']) 
{
	$usergroup = "<a href=\"./groups.php?gid=".$usertitle['gid']."\">".$usergroup."</a>";
}

Edit:

Just saw the first post; if you need to add the groups manually ... well yeah >_<
I suggest; install CraKteR's version [ http://mods.mybboard.net/download/usergr...ends-1.4.3 ]