Advertisement
MarioBlack

REEMPLAZAR POR

May 20th, 2019
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. // Show the member's primary group (like 'Administrator') if they have one.
  2. if (!empty($message['member']['group']) && !$message['member']['is_guest'])
  3. echo '
  4. <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>';
  5. //Show additional groups, if the user has some attributed
  6. if (!empty($message['member']['additional_groups_full'])) {
  7. foreach($message['member']['additional_groups_full'] as $temp) {
  8. if (!empty($modSettings['show_additional_groups_name']))
  9. echo '
  10. <li style="font-size: 13px;cursor: pointer;color: white;margin-bottom: 5px;text-align: center; background-color: ',$temp['group_color'], ';">', $temp['group'], '</li>';
  11.  
  12. }
  13. }
  14.  
  15. // Show that the member is a guest.
  16. if ($message['member']['is_guest'])
  17. echo '
  18. <li style="font-size: 13px;cursor: pointer;color: white;margin-bottom: 5px;text-align: center; background-color: ', $message['member']['group'], ';"></li>';
  19.  
  20. // Don't show these things for guests.
  21. if (!$message['member']['is_guest'])
  22. {
  23. // 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.
  24. if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
  25. echo '
  26. <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