[:"red"]CAUTION: THIS HAS NOT BEEN FULLY TESTED[/]
NAME: Change Username
VERSION: 2.0.0
DESCRIPTION: Changes a username, or merges two usernames
WORKING UNDER: UBB.threads 6.0.2
PREREQUISITES: none
AUTHORS: sixpack69, Dr_Manhattan, Max Fisch, Lisa_P, Astaran, Dave_L
CREDITS: documentation adapted from that provided by Max Fisch
DEMO: none
FILES ALTERED: admin/menu.php
DATABASE ALTERED: username changed
NEW FILES: admin/sk_changeuser.php, admin/sk_dochangeuser.php, admin/sk_changeuser.inc.php
HISTORY:
2001-05-04 sixpack69 - Original release (UBB.threads version 5).
2001-07-14 Dr_Manhattan - Reworked.
2001-11-09 Dr_Manhattan - Revised.
2002-02-13 Max Fisch - Modified to include more database conversion.
2002-05-29 Lisa_P - Adapted for UBB.threads version 6.
2002-06-25 Astaran - Added fix so that hack would work correctly when old and new usernames differ only in alphabetic case.
2002-07-06 Dave_L - Expanded displayed information on entry form, and added same checks that are in adduser.php.
REFERENCES:
Plug-in: change username Change Username Hack, reposted Change Username Hack ********
ABSTRACT
********
This modification changes a username, or merges two usernames.
Numerous columns in the database get modified, so it is recommended that you back up the database prior to installing or using this hack.
If the new username already exists, the database information (posts, messages, moderators, etc.) associated with both usernames will be merged and associated with the new username. The settings from the old username will be kept, except for the total post count, which will be adjusted to include the total posts from both usernames. The title doesn't get reset, though, so you may need to modify it manually.
The columns w3t_Polls.P_Name and w3t_PollData.P_Name are *not* converted. Since polls cannot be edited, this is not considered to be a problem.