'; template_show_list('post_count_membergroups_list'); } function template_new_group() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '

', $txt['membergroups_new_group'], '

'; if ($context['undefined_group']) { echo '
', $txt['membergroups_edit_select_group_type'], '
'; if ($context['allow_protected']) echo '
'; echo '


'; } if ($context['post_group'] || $context['undefined_group']) echo '
', $txt['membergroups_min_posts'], ':
'; if (!$context['post_group'] || !empty($modSettings['permission_enable_postgroups'])) { echo '

', $txt['membergroups_can_edit_later'], '
', $txt['membergroups_select_permission_type'], '

'; } echo '
', $txt['membergroups_new_board'], ':', $context['post_group'] ? '
' . $txt['membergroups_new_board_post_groups'] . '' : '', '
', $txt['membergroups_new_board_desc'], '
    '; foreach ($context['categories'] as $category) { echo '
  • ', $category['name'], '
      '; foreach ($category['boards'] as $board) { echo '
    • '; } echo '
  • '; } echo '

'; echo '


'; if ($context['undefined_group']) { echo ' '; } echo '

'; } function template_edit_group() { global $context, $settings, $options, $scripturl, $txt; echo '

', $txt['membergroups_edit_group'], ' - ', $context['group']['name'], '

'; if ($context['group']['id'] != 3 && $context['group']['id'] != 4) echo '
'; // Group type... if ($context['group']['allow_post_group']) { echo '
', $txt['membergroups_edit_select_group_type'], '
'; if ($context['group']['allow_protected']) echo '
'; echo '


'; } if ($context['group']['id'] != 3 && $context['group']['id'] != 4) echo '
'; // Can they inherit permissions? if ($context['group']['id'] > 1 && $context['group']['id'] != 3) { echo '
:
', $txt['membergroups_edit_inherit_permissions_desc'], '
'; } if ($context['group']['allow_post_group']) echo '
'; echo '

', $txt['membergroups_star_image_note'], '
', $txt['membergroups_images_url'], ' *

', $txt['membergroups_max_messages_note'], '
'; if (!empty($context['categories'])) { echo '
', $txt['membergroups_new_board'], ':', $context['group']['is_post_group'] ? '
' . $txt['membergroups_new_board_post_groups'] . '' : '', '
', $txt['membergroups_new_board_desc'], '
    '; foreach ($context['categories'] as $category) { echo '
  • ', $category['name'], '
      '; foreach ($category['boards'] as $board) { echo '
    • '; } echo '
  • '; } echo '

'; echo '
'; } echo '

', $context['group']['allow_delete'] ? ' ' : '', '

'; if ($context['group']['allow_post_group']) echo ' '; } // Templating for viewing the members of a group. function template_group_members() { global $context, $settings, $options, $scripturl, $txt; echo '

', $context['page_title'], '

', $txt['name'], ':
', $context['group']['name'], ' ', $context['group']['stars'], '
'; //Any description to show? if (!empty($context['group']['description'])) echo '
' . $txt['membergroups_members_description'] . ':
', $context['group']['description'] ,'
'; echo '
', $txt['membergroups_members_top'], ':
', $context['total_members'] ,'
'; // Any group moderators to show? if (!empty($context['group']['moderators'])) { $moderators = array(); foreach ($context['group']['moderators'] as $moderator) $moderators[] = '' . $moderator['name'] . ''; echo '
', $txt['membergroups_members_group_moderators'], ':
', implode(', ', $moderators) ,'
'; } echo '

', $txt['membergroups_members_group_members'], '


', $txt['pages'], ': ', $context['page_index'], '
'; if (!empty($context['group']['assignable'])) echo ' '; echo ' '; if (empty($context['members'])) echo ' '; $alternate = false; foreach ($context['members'] as $member) { $alternate = !$alternate; echo ' '; // Is it totally hidden? if ($member['show_email'] == 'no') echo ' ', $txt['hidden'], ''; // ... otherwise they want it hidden but it's not to this person? elseif ($member['show_email'] == 'yes_permission_override') echo ' ', $member['email'], ''; // ... otherwise it's visible - but only via an image? elseif ($member['show_email'] == 'no_through_forum') echo ' ', ($settings['use_image_buttons'] ? '' . $txt['email'] . '' : $txt['email']), ''; // ... otherwise it must be a 'yes', show it and show it fully. else echo ' ', $member['email'], ''; echo ' ', $member['posts'], ''; if (!empty($context['group']['assignable'])) echo ' '; echo ' '; } echo '
', $txt['name'], $context['sort_by'] == 'name' ? ' ' : '', ' ', $txt['email'], $context['sort_by'] == 'email' ? ' ' : '', ' ', $txt['membergroups_members_last_active'], $context['sort_by'] == 'active' ? ' ' : '', ' ', $txt['date_registered'], $context['sort_by'] == 'registered' ? ' ' : '', ' ', $txt['posts'], $context['sort_by'] == 'posts' ? ' ' : '', '
', $txt['membergroups_members_no_members'], '
', $member['name'], ' ', $member['last_online'], ' ', $member['registered'], '
'; if (!empty($context['group']['assignable'])) echo '
'; echo '
', $txt['pages'], ': ', $context['page_index'], '

'; if (!empty($context['group']['assignable'])) { echo '

', $txt['membergroups_members_add_title'], '


'; } echo '

'; if (!empty($context['group']['assignable'])) echo ' '; } // Allow the moderator to enter a reason to each user being rejected. function template_group_request_reason() { global $settings, $options, $context, $txt, $scripturl; // Show a welcome message to the user. echo '

', $txt['mc_groups_reason_title'], '

'; // Loop through and print out a reason box for each... foreach ($context['group_requests'] as $request) echo '
', sprintf($txt['mc_groupr_reason_desc'], $request['member_link'], $request['group_link']), ':
'; echo '


'; } ?>