1. Open account-details.php and after this line:
and save the changes.
Tested and works fine in TT 2.08. :)
Proff:
$modcomment = htmlspecialchars($user["modcomment"]);
add this one:
$nick = $user["username"];
then find this line:
print("<tr><td>".T_("AVATAR_URL")."</td><td align='left'><input type='text' size='67' name='avatar' value="$avatar" /></td></tr>n");
add after that add this:
print("<tr><td>".T_("CHANGE_NICK")."</td><td align='left'><input type='text' size='67' name='nick' value="$nick" /></td></tr>n");
Save the changes.
2. Open admin-modtasks.php and after this line:
$email = $_POST["email"];
add this line:
$nick= sqlesc($_POST["nick"]);
then find this line:
SQL_Query_exec("UPDATE users SET email='$email', title=$title, downloaded='$downloaded', uploaded='$uploaded', signature=$signature, avatar=$avatar, ip=$ip, donated=$donated, forumbanned=$forumbanned, warned=$warned, modcomment=$modcomment, enabled=$enabled, invites=$invites WHERE id=$userid");
and on the end of line add:
username=$nick
So in my case i have this:
SQL_Query_exec("UPDATE users SET email='$email', title=$title, downloaded='$downloaded', uploaded='$uploaded', signature=$signature, avatar=$avatar, ip=$ip, donated=$donated, forumbanned=$forumbanned, warned=$warned, modcomment=$modcomment, enabled=$enabled, invites=$invites, hideshoutbox=$hideshoutbox, username=$nick
WHERE id=$userid");
Finally, add this line in /languages/english.php
$LANG["CHANGE_NICK"] = "Change Nick";
and save the changes.
Tested and works fine in TT 2.08. :)
Proff: