'; 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'] . '' : '', '
'; template_add_edit_group_boards_list(false); 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_icon_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'] . '' : '', '
'; template_add_edit_group_boards_list(); echo '
'; } echo '
', $context['group']['allow_delete'] ? ' ' : '', '
'; if ($context['group']['allow_post_group']) echo ' '; } function template_add_edit_group_boards_list($collapse = true) { global $context, $txt, $modSettings; echo '
', $txt['membergroups_new_board_desc'], '
'; else echo '
', $txt['all'], ': '; if ($collapse) 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']['icons'], '
'; //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'], '


', $context['page_index'], '
'; if ($context['can_send_email']) echo ' '; echo ' '; if (!empty($context['group']['assignable'])) echo ' '; echo ' '; if (empty($context['members'])) echo ' '; $alternate = false; foreach ($context['members'] as $member) { $alternate = !$alternate; echo ' '; if ($context['can_send_email']) { 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 ' '; } 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 '
', $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 '
'; } ?>