Which file tells MOD to show up on the board as a color?

Your phpBB Version: 2.0.
phpBB Type: Standard phpBB
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://admins.webkillers.net
PHP Version:
MySQL Version:
What was done before the problem appeared?
modified all kinds of files
What was done to try to solve the problem?
modified all kinds of files
De.scription and Message
When a group is made to be MOD of a forum the users of that group are changed to be user_level 2 and then the group mods are displayed as the mod color on the forum pages and in the legend.
if in functions_profile
$sql = "SELECT * FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug
WHERE ug.user_id = " . $userdata['user_id'] . "
AND aa.group_id = ug.group_id
AND aa.auth_fr = 1
AND ug.user_pending = 0";
if ( !$result = $db->sql_query($sql) )
and I have
else if ($userdata['user_level'] == FR)
{
$res = FR;
}
and in the database I have a field auth_fr in auth_access
and it doesn't show up as the correct color, but if I change it to
else if ($userdata['user_level'] == MOD)
{
$res = FR;
}
and it does, then what file is it saying that auth_fr = the new user level?
Because if the new user level should be 10, and I have it in def_auths as that, and in functions_profile as that.
And in admin_ug_auth it is
if ( $set_fr != '' )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . FR . "
WHERE user_id IN ($set_fr)";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql);
}
}
cache_tree(true);
But it won't set the user level to 10
So its not working.
What else should I do to make it work? How and where do I tell the forums that if auth_fr is set to 1 in a user group, that all the users should have the level 10?
phpBB Type: Standard phpBB
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://admins.webkillers.net
PHP Version:
MySQL Version:
What was done before the problem appeared?
modified all kinds of files
What was done to try to solve the problem?
modified all kinds of files
De.scription and Message
When a group is made to be MOD of a forum the users of that group are changed to be user_level 2 and then the group mods are displayed as the mod color on the forum pages and in the legend.
if in functions_profile
$sql = "SELECT * FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug
WHERE ug.user_id = " . $userdata['user_id'] . "
AND aa.group_id = ug.group_id
AND aa.auth_fr = 1
AND ug.user_pending = 0";
if ( !$result = $db->sql_query($sql) )
and I have
else if ($userdata['user_level'] == FR)
{
$res = FR;
}
and in the database I have a field auth_fr in auth_access
and it doesn't show up as the correct color, but if I change it to
else if ($userdata['user_level'] == MOD)
{
$res = FR;
}
and it does, then what file is it saying that auth_fr = the new user level?
Because if the new user level should be 10, and I have it in def_auths as that, and in functions_profile as that.
And in admin_ug_auth it is
if ( $set_fr != '' )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . FR . "
WHERE user_id IN ($set_fr)";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql);
}
}
cache_tree(true);
But it won't set the user level to 10
So its not working.
What else should I do to make it work? How and where do I tell the forums that if auth_fr is set to 1 in a user group, that all the users should have the level 10?