Code: Select all
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]---------------------------------------------
# Line 107
$sql = "SELECT group_id
FROM " . GROUPS_TABLE . "
WHERE group_moderator = $user_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql);
}
while ( $row_group = $db->sql_fetchrow($result) )
{
$group_moderator[] = $row_group['group_id'];
}
if ( count($group_moderator) )
{
$update_moderator_id = implode(', ', $group_moderator);
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_moderator IN ($update_moderator_id)";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
}
#
#-----[ REPLACE WITH ]-------------------------------------
#
//-- mod replacement : manual update phpBB2 v.2.0.22 to phpBB2 v.2.0.23 --------
// $sql = "SELECT group_id
// FROM " . GROUPS_TABLE . "
// WHERE group_moderator = $user_id";
// if( !($result = $db->sql_query($sql)) )
// {
// message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql);
// }
// while ( $row_group = $db->sql_fetchrow($result) )
// {
// $group_moderator[] = $row_group['group_id'];
// }
// if ( count($group_moderator) )
// {
// $update_moderator_id = implode(', ', $group_moderator);
// $sql = "UPDATE " . GROUPS_TABLE . "
// SET group_moderator = " . $userdata['user_id'] . "
// WHERE group_moderator IN ($update_moderator_id)";
// if( !$db->sql_query($sql) )
// {
// message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
// }
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_moderator = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
//-- end replacement : manual update phpBB2 v.2.0.22 to phpBB2 v.2.0.23 --------
Code: Select all
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_userlist.php
#
#-----[ FIND ]---------------------------------------------
#
$sql = "SELECT group_id
FROM " . GROUPS_TABLE . "
WHERE group_moderator = $user_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql);
}
while ( $row_group = $db->sql_fetchrow($result) )
{
$group_moderator[] = $row_group['group_id'];
}
if ( count($group_moderator) )
{
$update_moderator_id = implode(', ', $group_moderator);
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_id IN ($update_moderator_id)";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
}
#
#-----[ REPLACE WITH ]-------------------------------------
#
//-- mod replacement : manual code update for use with phpBB2 v.2.0.23 ---------
// $sql = "SELECT group_id
// FROM " . GROUPS_TABLE . "
// WHERE group_moderator = $user_id";
// if( !($result = $db->sql_query($sql)) )
// {
// message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql);
// }
// while ( $row_group = $db->sql_fetchrow($result) )
// {
// $group_moderator[] = $row_group['group_id'];
// }
// if ( count($group_moderator) )
// {
// $update_moderator_id = implode(', ', $group_moderator);
// $sql = "UPDATE " . GROUPS_TABLE . "
// SET group_moderator = " . $userdata['user_id'] . "
// WHERE group_moderator IN ($update_moderator_id)";
// if( !$db->sql_query($sql) )
// {
// message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
// }
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_moderator = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
//-- end replacement : manual code update for use with phpBB2 v.2.0.23 ---------
Code: Select all
$sql = "SELECT group_id
FROM " . GROUPS_TABLE . "
WHERE group_moderator = $user_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql);
}
$group_moderator = array();
while ( $row_group = $db->sql_fetchrow($result) )
{
$group_moderator[] = $row_group['group_id'];
}
if ( count($group_moderator) )
{
$update_moderator_id = implode(', ', $group_moderator);
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_id IN ($update_moderator_id)";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
}
Code: Select all
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_moderator = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
}
Are you using a different template than subsilver? If so, upload whatever subsilver files there are into your template folder.elizdilo wrote:I uploaded this and followed the instructions on what to change. I then went to the admin section of my forum and nothing looks different. I am lost! Can anyone help??
At the very bottom of the left pane: user list. that´s all you´ll see, until you click on it.elizdilo wrote:I uploaded this and followed the instructions on what to change. I then went to the admin section of my forum and nothing looks different. I am lost! Can anyone help??
Dogs and things wrote:At the very bottom of the left pane: user list. that´s all you´ll see, until you click on it.elizdilo wrote:I uploaded this and followed the instructions on what to change. I then went to the admin section of my forum and nothing looks different. I am lost! Can anyone help??
Are you certain that you have uploaded all Admin Userlist files to their correct folders?elizdilo wrote:I don't even see user list. There is nothing different in my admin section.
rreptile wrote:Are you certain that you have uploaded all Admin Userlist files to their correct folders?elizdilo wrote:I don't even see user list. There is nothing different in my admin section.