Hello
I want to show usergroups of every members on memberlist page.
Example:
John's Group Name: Moderator
How can I do that?
Thank you.
do not know but that would be good i want that to
open
memberlist.php
Find
eval("\$member .= \"".$templates->get("memberlist_row")."\";");
Above it add
$groupinfo = usergroup_displaygroup($users['usergroup']);
$group = $groupinfo['title'];
Now in the
memberlist_row template just add anywhere
{$group}
You are wonderful.
Thank you.
What if I wanted to display their secondary group instead of their Primary?
or which ever user group they choose as their display group.
Thanks
For the display group just instead of
$groupinfo = usergroup_displaygroup($users['usergroup']);
Use
$groupinfo = usergroup_displaygroup($users['displaygroup']);
But as you know display group by default is 0 so to over come a lost group use this
if(!$users['displaygroup'])
{
$users['displaygroup'] = $users['usergroup'];
}
$groupinfo = usergroup_displaygroup($users['displaygroup']);