Bul:
- Kod: Tümünü seç
// The basic memberlist
$page_title = $user->lang['MEMBERLIST'];
$template_html = 'memberlist_body.html';
Önce ekle:
- Kod: Tümünü seç
if (!$auth->acl_gets('m_', 'a_'))
{
if ($user->data['user_id'] != ANONYMOUS)
{
trigger_error('Only Admin and Moderators can view the memberlist');
}
login_box('', ((isset($user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)])) ? $user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)] : $user->lang['LOGIN_EXPLAIN_MEMBERLIST']));
}
This second change is slightly different to above as it allows access to the profile and the group member lists while still blocking access to the main member list to everyone accept Moderators and Admin.
Bul:
- Kod: Tümünü seç
// The basic memberlist
$page_title = $user->lang['MEMBERLIST'];
$template_html = 'memberlist_body.html';
Önce ekle:
- Kod: Tümünü seç
if (!$auth->acl_gets('m_', 'a_') && $mode != 'group')
{
if ($user->data['user_id'] != ANONYMOUS)
{
trigger_error('Only Admin and Moderators can view the memberlist');
}
login_box('', ((isset($user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)])) ? $user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)] : $user->lang['LOGIN_EXPLAIN_MEMBERLIST']));
}
--------------------------------------------------------
Makale Hakkında
Yazar: Jackal
Orijinal yazı: www.ktuk.net
Açıklama: Üye listesini sadece admin ve moderatorlere gösterir.(ingilizce olan ksımı tercüme edemedim ama çalışıyor)