Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 50
Journeyman
Journeyman
Offline
Joined: Apr 2001
Posts: 50
Obviously, it's not a complete merge solution. I haven't tested it thoroughly, but maybe this will help.

I'll use a true-life example: after about 6 months, a user decided he wanted a new handle, so he abandoned the old account (we'll call it 'Bill') and created a new username (let's call this one 'Hoohah'). Now, to answer your questions...

1. I renamed the original account ('Bill') to Hoohah. As soon as I did that, Hoohah "inherited" everything from Bill. Hoohah will now need to log in with Bill's password. At login, Hoohah will now find all of Bill's messages in his inbox, including new, unread messages delivered to either account.

2. Unfortunately, this script is not a true merge, so the post total for the resulting account will not be incremented--in this example, Hoohah's new post total will equal Bill's. My solution was to note Hoohah's total beforehand, then manually increment Hoohah's new total (Bill's old total) by adding Hoohah's total (the one that existed before the change) using a db tool like PHPMyAdmin. More laborious, untidy, but it worked.

Post totals is a relatively minor fix. The real value of the changename script (besides changing the username) is this: every post in the database made using either account will now be attributed to (and linked to) Hoohah.

3. As noted earlier, PMs shouldn't be a problem. According to my test, the only problem is that now any PM's in somebody's inbox from Bill can't be answered (since 'Bill' now a nonexistent account). However, unless there's like 100 PM's from Bill out there, this can be fixed with a tool like PHPMyAdmin without too much fuss.

Bottom line: this hack is not ideal for merges, yet it does most of the job. (But, realistically, how many times will you need to merge?) Moreover, I'm sure a couple more basic SQL commands could be added to take care of the current shortcomings. I just haven't gotten around to it . . .


+++ Quis custodiet ipsos custodies? +++
Sponsored Links
Entire Thread
Subject Posted By Posted
Plug-in: change username sixpack69 05/04/2001 7:03 PM
Re: Plug-in: change username caymuc 05/04/2001 9:20 PM
How about Merging Usernames? MattyJ 08/06/2001 2:03 PM
Re: How about Merging Usernames? Dslam 11/09/2001 3:57 PM
Re: How about Merging Usernames? MattyJ 11/09/2001 4:04 PM
Re: How about Merging Usernames? Dslam 11/09/2001 4:24 PM
Re: How about Merging Usernames? MattyJ 11/09/2001 4:31 PM
Re: How about Merging Usernames? Dslam 11/09/2001 4:45 PM
Re: How about Merging Usernames? Dr_Manhattan 11/09/2001 5:42 PM
Re: How about Merging Usernames? MattyJ 11/09/2001 5:48 PM
Hack attached Dr_Manhattan 11/09/2001 5:54 PM
Re: How about Merging Usernames? Dr_Manhattan 11/09/2001 6:40 PM
Re: How about Merging Usernames? Dslam 11/09/2001 7:27 PM
"hack attached" means just that Dr_Manhattan 11/09/2001 9:01 PM
Re: "hack attached" means just that Dslam 11/09/2001 9:15 PM
Small modification needed Max Fisch 11/27/2001 8:51 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)