Tunox wrote:I'm trying to reach your website but I get either a timeout or a blank page when I sucessfully reach it. Although My connection is working fine, I'll test it again when I get home.
yea, they had some problems with one of the routers and mine was on that one
But I changed some stuff in the profile.php file
My Mods always have access to the Admin menu on profile (Not allowed to ban until im able to set up some temp ban option)
I just found the code that was for Admins to change group and pasted it in the MOD field and then I could see and select the groups.
But then I also had to to it so that they couldn't change to Admin, Mod or VIP but only Member and Donate
Find
if ($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_ban_users'] == '1')
Above Add (change the group ids or what you feel like)
if ($pun_user['id'] != $id)
{
?>
<div class="inform">
<fieldset>
<legend><?php echo $lang_profile['Group membership legend'] ?></legend>
<div class="infldset">
<select id="group_id" name="group_id">
<?php
$result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups WHERE g_id!='.PUN_GUEST.' AND g_id!='.PUN_ADMIN.' AND g_id!='.PUN_MOD.' AND g_id!='.PUN_VIP.' ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());
while ($cur_group = $db->fetch_assoc($result))
{
if ($cur_group['g_id'] == $user['g_id'] || ($cur_group['g_id'] == $pun_config['o_default_user_group'] && $user['g_id'] == ''))
echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'" selected="selected">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
else
echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
}
?>
</select>
<input type="submit" name="update_group_membership" value="<?php echo $lang_profile['Save'] ?>" />
</div>
</fieldset>
</div>
<?php
}
Added this to the code
AND g_id!='.PUN_ADMIN.' AND g_id!='.PUN_MOD.' AND g_id!='.PUN_VIP.'
You can change this with what ever you feel like (recommend that ADMIN and MOD stay but VIP you can change to an group id or remove it.
Then I also made it so that MODS cant view and edit VIP profiles
Search for // View or edit? and you will find it.
if ($pun_user['id'] != $id &&
($pun_user['g_id'] > PUN_MOD ||
($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_edit_users'] == '0') ||
($pun_user['g_id'] == PUN_MOD && $user['g_id'] < PUN_GUEST) ||
($pun_user['g_id'] == PUN_MOD && $user['g_id'] == PUN_VIP)))
Added an extra field under with VIP
I edited functions.php where the profile links are and made it so that the Mods can see that link even if the BAN option is set to No (0)
yea, forgot that I also changed it so that mods also are allowed to update group