พัฒนาโดย::Danielx64
Version::1.0.2
ดาวน์โหลดได้ที่::https://www.mindphp.com/download/files/35-34-member-list-permission-detail-1-0-2-zip.html
ไฟล์ที่ใช้ในการติดตั้ง
Files to edit
memberlist.php,
viewonline.php,
includes/functions.php,
language/en/memberlist.php,
language/en/acp/permissions_phpbb.php,
styles/prosilver/template/index_body.html,
styles/prosilver/template/viewforum_body.html,
styles/prosilver/template/viewtopic_body.html
วิธีการติดตั้ง
เปิดไฟล์=> memberlist.php
ค้นหา ::
โค้ด: เลือกทั้งหมด
if (!$auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
if (!$auth->acl_gets('u_viewprofile', 'u_viewonline_mod', 'u_memberlist_mod', 'u_viewleaders_mod', 'a_user', 'a_useradd', 'a_userdel'))
โค้ด: เลือกทั้งหมด
case 'leaders':
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
if (!$auth->acl_gets('u_viewleaders_mod'))
{
trigger_error('NO_VIEW_LEADERS_MOD');
}
โค้ด: เลือกทั้งหมด
case 'viewprofile':
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
if (!$auth->acl_gets('u_viewprofile'))
{
trigger_error('NO_VIEW_PROFILES_MOD');
}
โค้ด: เลือกทั้งหมด
$template_html = 'memberlist_body.html';
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
if (!$auth->acl_get('u_memberlist_mod'))
{
trigger_error('NO_VIEW_MEMBERLIST_MOD');
}
ค้นหา ::
โค้ด: เลือกทั้งหมด
if (!$auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
if (!$auth->acl_gets('u_viewonline_mod', 'a_user', 'a_useradd', 'a_userdel'))
โค้ด: เลือกทั้งหมด
trigger_error('NO_VIEW_USERS');
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
trigger_error('NO_VIEW_ONLINE_MOD');
ค้นหา ::
โค้ด: เลือกทั้งหมด
'U_VIEWONLINE' => ($auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel')) ? append_sid("{$phpbb_root_path}viewonline.$phpEx") : '',
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
'U_VIEWONLINE' => ($auth->acl_gets('u_viewonline_mod', 'a_user', 'a_useradd', 'a_userdel')) ? append_sid("{$phpbb_root_path}viewonline.$phpEx") : '',
'S_HIDE_WHOSONLINE_MOD' => $auth->acl_get('u_hide_whosonline_mod'),
โค้ด: เลือกทั้งหมด
'U_TEAM' => ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')) ? '' : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=leaders'),
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
'U_TEAM' => (!$auth->acl_get('u_viewleaders_mod')) ? '' : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=leaders'),
โค้ด: เลือกทั้งหมด
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_memberlist_mod') : 0,
ค้นหา ::
โค้ด: เลือกทั้งหมด
'NO_VIEW_USERS' => 'You are not authorised to view the member list or profiles.',
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
'NO_VIEW_ONLINE_MOD' => 'You are not authorized to view the online list.',
'NO_VIEW_LEADERS_MOD' => 'You are not authorized to view leaders.',
'NO_VIEW_PROFILES_MOD' => 'You are not authorized to view profiles.',
'NO_VIEW_MEMBERLIST_MOD'=> 'You are not authorized to view the member list.',
ค้นหา ::
โค้ด: เลือกทั้งหมด
'acl_u_viewprofile' => array('lang' => 'Can view profiles, memberlist and online list', 'cat' => 'profile'),
โค้ด: เลือกทั้งหมด
// Member List Permission Detail Mod
'acl_u_viewprofile' => array('lang' => 'Can view user profiles', 'cat' => 'profile'),
'acl_u_memberlist_mod' => array('lang' => 'Can view the memberlist', 'cat' => 'profile'),
'acl_u_viewonline_mod' => array('lang' => 'Can view online users page', 'cat' => 'profile'),
'acl_u_viewleaders_mod' => array('lang' => 'Can view leaders', 'cat' => 'profile'),
'acl_u_hide_whosonline_mod' => array('lang' => 'Can view whos online on index', 'cat' => 'profile'),
'MLPD' => 'Member List Permission Detail',
ค้นหา ::
โค้ด: เลือกทั้งหมด
<!-- IF S_DISPLAY_ONLINE_LIST -->
โค้ด: เลือกทั้งหมด
<!-- IF S_DISPLAY_ONLINE_LIST and S_HIDE_WHOSONLINE_MOD -->
ค้นหา ::
โค้ด: เลือกทั้งหมด
<!-- IF S_DISPLAY_ONLINE_LIST -->
โค้ด: เลือกทั้งหมด
<!-- IF S_DISPLAY_ONLINE_LIST and U_VIEWONLINE -->
ค้นหา ::
โค้ด: เลือกทั้งหมด
<!-- IF S_DISPLAY_ONLINE_LIST -->
โค้ด: เลือกทั้งหมด
<!-- IF S_DISPLAY_ONLINE_LIST and U_VIEWONLINE -->