Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Show the member's primary group (like 'Administrator') if they have one.
- if (!empty($message['member']['group']) && !$message['member']['is_guest'])
- echo '
- <li style="font-size: 13px;cursor: pointer;color: white;margin-bottom: 5px;text-align: center; background-color: ',$message['member']['group_color'], ';">', $message['member']['group'], '</li>';
- //Show additional groups, if the user has some attributed
- if (!empty($message['member']['additional_groups_full'])) {
- foreach($message['member']['additional_groups_full'] as $temp) {
- if (!empty($modSettings['show_additional_groups_name']))
- echo '
- <li style="font-size: 13px;cursor: pointer;color: white;margin-bottom: 5px;text-align: center; background-color: ',$temp['group_color'], ';">', $temp['group'], '</li>';
- }
- }
- // Show that the member is a guest.
- if ($message['member']['is_guest'])
- echo '
- <li style="font-size: 13px;cursor: pointer;color: white;margin-bottom: 5px;text-align: center; background-color: ', $message['member']['group'], ';"></li>';
- // Don't show these things for guests.
- if (!$message['member']['is_guest'])
- {
- // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
- if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
- echo '
- <li style="font-size: 13px;cursor: pointer;color: white;margin-bottom: 5px;text-align: center; background-color: ',$message['member']['post_group_color'], ';">', $message['member']['post_group'], '</li>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement