Previous Thread
Next Thread
Print Thread
Rate Thread
MattyJ #311539 09/19/2006 5:25 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Yeah, would be nice in the core. I believe Ian is working on merge script, I've got the basic commands you can use in your control panel's mysql command box tho:


Update posts:
PHP Code

UPDATE ubbt_POSTS SET USER_ID
= '387' WHERE USER_ID = '9734'

UPDATE ubbt_TOPICS SET USER_ID = '387' WHERE USER_ID = '9734'

UPDATE ubbt_TOPICS SET TOPIC_LAST_POSTER_NAME = 'AllenAyres' WHERE TOPIC_LAST_POSTER_NAME = 'AllenAyres_dup1'

UPDATE ubbt_TOPICS SET TOPIC_LAST_POSTER_ID = '387' WHERE TOPIC_LAST_POSTER_ID = '9734'


Update Post count:
PHP Code

UPDATE ubbt_USER_PROFILE SET USER_TOTAL_POSTS
= '24080' WHERE USER_ID = "387"



Update PM's:
PHP Code

UPDATE ubbt_PRIVATE_MESSAGE_POSTS SET USER_ID
= '387' WHERE USER_ID = '9734'

UPDATE ubbt_PRIVATE_MESSAGE_TOPICS SET USER_ID = '387' WHERE USER_ID = '9734'

UPDATE ubbt_PRIVATE_MESSAGE_USERS SET USER_ID = '387' WHERE USER_ID = '9734'


If I am going backwards and using the _dup1 acct instead of the more recent acct, I'll use this to update the name after deleting the other acct:
PHP Code

UPDATE ubbt_USERS SET USER_LOGIN_NAME
= 'Scream' WHERE USER_ID = '8986'


I believe that covers it, if I've missed something, let me know smile


- Allen wavey
- What Drives You?
Sponsored Links
Entire Thread
Subject Posted By Posted
Merge Users MattyJ 09/19/2006 1:56 AM
Re: Merge Users AllenAyres 09/20/2006 12:25 AM
Re: Merge Users MattyJ 09/20/2006 3:06 PM
Re: Merge Users Rick 09/25/2006 10:49 PM
Re: Merge Users MattyJ 09/25/2006 11:21 PM
Re: Merge Users MattyJ 10/03/2006 3:12 PM
Re: Merge Users Ian_W 10/07/2006 12:20 PM
Re: Merge Users Rick 10/07/2006 5:58 PM
Re: Merge Users Ian_W 10/08/2006 2:14 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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)