mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 15:17:16 +01:00
[ticket/9549] Display users in their primary group instead of their first group
PHPBB3-9549
This commit is contained in:
parent
fd7daf2a2b
commit
4ac8eaf9e3
@ -133,7 +133,7 @@ $lang = array_merge($lang, array(
|
||||
'TEAMPAGE_FORUMS' => 'Display moderated forums',
|
||||
'TEAMPAGE_FORUMS_EXPLAIN' => 'If set to yes, moderators will have a list with all of the forums where they have moderator permissions displayed in their row. This can be very database intensive for big boards.',
|
||||
'TEAMPAGE_MULTIPLE' => 'Display users in all groups',
|
||||
'TEAMPAGE_MULTIPLE_EXPLAIN' => 'If set to no, the users will only be displayed in their first group.',
|
||||
'TEAMPAGE_MULTIPLE_EXPLAIN' => 'If set to no, the users will only be displayed in their primary group (If the primary group is not listed, the users will be displayed in their first displayed group).',
|
||||
'TEAMPAGE_SETTINGS' => 'Teampage settings',
|
||||
'TOTAL_MEMBERS' => 'Members',
|
||||
|
||||
|
@ -229,6 +229,11 @@ switch ($mode)
|
||||
if (isset($user_ary[$user_id]))
|
||||
{
|
||||
$row = $user_ary[$user_id];
|
||||
if (!$config['teampage_multiple'] && ($group_id != $groups_ary[$row['default_group']]['group_id']) && $groups_ary[$row['default_group']]['group_teampage'])
|
||||
{
|
||||
// Display users in their primary group, instead of the first group, when it is displayed on the teampage.
|
||||
continue;
|
||||
}
|
||||
|
||||
$rank_title = $rank_img = $rank_img_src = '';
|
||||
get_user_rank($row['user_rank'], (($row['user_id'] == ANONYMOUS) ? false : $row['user_posts']), $rank_title, $rank_img, $rank_img_src);
|
||||
|
Loading…
x
Reference in New Issue
Block a user