Not Solved Member Group
#1
Not Solved
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.
Reply
#2
Not Solved
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'];
Reply
#3
Not Solved
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.
Reply
#4
Not Solved
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)