MyBB Community Forums

Full Version: Member Group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
MyBB,
What's the "code" (Is it something like {$user['usergroup']} or what?) which shows what usergroup you are? And also, how do you make the Member List show what usergroup everyone's your in?

Regards, Ginji.
It doesn't display the name, just the GID (GroupID).
{$mybb->user['usergroup']}

To show in the memberlist;

Open memberlist template
Find
<td class="thead" colspan="6"><strong>{$lang->member_list}</strong></td>

AND

<td align="center" colspan="6" class="tfoot">

Change inline
colspan="6"
into
colspan="7"

Find
<td class="tcat"><span class="smalltext"><strong>{$lang->posts}</strong></span></td>
Add below
<td class="tcat"><span class="smalltext"><strong>Usergroup:</strong></span></td>

Open memberlist_row
Find
<td class="trow2">{$users['postnum']}</td>

Add below
<td class="trow1">{$usergroup}</td>

Open memberlist.php
Find
eval("\$member .= \"".$templates->get("memberlist_row")."\";");

Add above
	// GET USERGROUPNAME
		$groupcache = $cache->read("usergroups");
		$usergroup = $groupcache[$users['usergroup']]['title'];
MyBB,
That'll show the.. Group name right? As I want to show the name of their group in:
Posts (Using MyBBulletin skin; horizontal profile)
Member Profile
Memberlist

Regards, Ginji.
MyBB,
I just checked (in Member Profile) and it showed the GID instead... as you said. Is it possible to show the group title instead? Plus show it when viewing a Post.

Edit: Ah nevermind. I found a topic which showed me how to add it.

Regards, Ginji.