Hi Dave,
I have a suggestion for the Change Username hack. If one wants to change a username as an admin one might click on the 'Edit this user' link under showprofile.php. To reduce the chances of changing the wrong old username, especially when two names could be very similar, I would propose to add the change username option to the selectionoption.php screen under admin.
Therefore I have added the following code to admin/selectoption.php
Find
code:
$html -> close_table();
$html -> close_table();
// ----------------
// send the footer
$html -> send_admin_footer();
add just above
code:
// --------------------------------------------------
// Change Username additional mod ICW 13-07-02
if ( ($user['U_Status'] == 'Administrator') && ($Number != '1') ){
echo "
<tr><td class=lighttable valign=top>
<a href="{$config['phpurl']}/admin/sk_changename.php?Cat=$Cat">Change a username</a>
</td><td class=darktable>
Change the username.
</td></tr>
";
}
// --------------------------------------------------
// End of Change Username additional Mod by ICW
Now comes the problem, this works fine to only appear for an admin, and not for a moderator, and also will not show if an admin clicks on the first admin (perhaps that check could be added as default to protect the first admin) - the problem I have is that I cannot pass the username to the sk_changename.php file.
I am guessing that the form neads to be changed to two option fields as in banuser.php - could also the cat bit be added as well so that this is retained in the url.
My problem is that I am starting to get out of my depth

so would appreciate some assistance, especially as it will mean me altering the core files.
Also I wondered if we could add in sending a message to both the other admins, and also to the user to inform them off the change - just in case another admin decided to do the dirty
Regards,
Ian