I know this mod is required to install your shoutbox.
But, I don't want to install extra permissions for memberlist, index page, etc.
I only want to install what is needed for the shoutbox
What code do I remove, for minimum installation?
Moderator: Moderators

if ($view_pages_ary[''.PAGE_INDEX_PERMISSION.'']['auth_view'])
{
$template->assign_block_vars('switch_index_on', array());
}
if ($view_pages_ary[''.PAGE_VIEWMEMBERS]['auth_view'])
{
$template->assign_block_vars('switch_memberlist_on', array());
}
unset($view_pages_ary);
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
// End session management
//
#
#-----[ AFTER,ADD ]------------------------------------------
#
// Added for Extra permission MOD
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_ALL, PAGE_VIEWMEMBERS, $userdata);
if( !$is_auth['auth_read'] )
{
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=memberlist.$phpEx", true));
exit;
}
$message = ( !$is_auth['auth_view'] ) ? $lang['Not_Authorised'] : sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
// End session management
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Added for Extra permission MOD
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_READ, PAGE_INDEX_PERMISSION, $userdata);
if( !$is_auth['auth_read'] )
{
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=index.$phpEx", true));
exit;
}
$message = sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//
#
#-----[ OPEN ]------------------------------------------
#
overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>
#
#-----[ BEFORE,ADD ]------------------------------------------
#
<!-- BEGIN switch_memberlist_on -->
#
#-----[ AFTER,ADD ]------------------------------------------
#
<!-- END switch_memberlist_on -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
# 

Return to Extra permission [2.0.6/EM]
Users browsing this forum: No registered users and 1 guest