T O P I C R E V I E W |
Todd |
Posted - 01 February 2011 : 18:43:56 Did a search for this but only found merging forums/topics etc. but nothing on users. My forum uses Access for it's database.
I have a user who contributed for years, disappeared and came back with a different account.
Would it be possible to merge all of his posts/replies/pm's etc into just one of those existing accounts? |
8 L A T E S T R E P L I E S (Newest First) |
Todd |
Posted - 05 February 2011 : 20:54:17 Thanks, I'll give it a shot. I'll just use the Alt Mod Setup method you suggested.
Yes I will definately back it up so I don't walk away with a |
Shaggy |
Posted - 04 February 2011 : 06:20:36 Should go without saying, but make sure you back up your database before attempting this Just in case ...
|
cripto9t |
Posted - 03 February 2011 : 07:50:30 Add it to the bad word filter. That should take care of post display. |
Carefree |
Posted - 03 February 2011 : 02:02:58 Changing every instance of a word? Depending on the number of users and topics/replies, etc., that could be a very long process and would probably time-out.
Looking at the feasibility of merging users, in most tables the MEMBER_ID is the only defining attribute .. and that's an automatic field which cannot be changed. It would be easy to change the author fields pertaining to topics/replies (would correct stats, etc), but any mention of the user in posts? I wouldn't do that in a busy forum.
In retrospect, Cripto9t's solution is probably the best approach. Of course, it doesn't combine statistics, etc.
For simply changing the authors of all replies/topics, you can use the Alt Mod Setup function in the Admin panel. Replace the two instances of OLDNUM with the MEMBER_ID to be merged and the two instances of NEWNUM with the MEMBER_ID to be merged into.
Alternatively, if you don't want to have to look up MEMBER_IDs, etc.; you can use this:
"admin_mergeuser.asp"
To add to admin control panel:
"admin_home.asp"
|
Todd |
Posted - 02 February 2011 : 18:16:09 Thanks, I appreciate the responses. Just thought of another caveat with doing this. Within the posts I'm sure people who replied have at times said "Yeah, I agree with USER". I would edit those myself but this guy posted close to 2,000 times under the first name and only about 100 under his current name. I could of course merge the new "smaller" account into the larger older account.
Is there a way to change every instance of a word in the entire database after I might merge? I guess I could probably do that right in Access itself. First thing to tackle is still the merge. |
Carefree |
Posted - 02 February 2011 : 13:09:15 Sounds like a useful mod, though. I'll take a look at writing something. |
cripto9t |
Posted - 02 February 2011 : 11:42:06 Just a quick fix till you get the members merged. I wrote a mod for a friends snitz forum that temporarily changes usernames. It doesn't merge anything, but the old name will display as the new name throughout the forum.
This is a basic version of it, good for 1 name.
find this line in inc_func_common.asp
Case "display" Add this line under it
if trim(fString) = "oldname" then fString = "newname" oldname = name you want to replace newname = name you want to replace it with.
Merging the ids would involve updating a lot of tables. topics forums,reply, all the archives,moderator,subscription, whatever mods you have like PMs. Not that it would be hard but you'd have to do each table separately. |
AnonJr |
Posted - 01 February 2011 : 19:38:52 Not sure about anything beyond posts and replies, but you should be able to accomplish it without too much fuss by writing a custom DBS script.
I did something similar for a user years ago. I can't seem to locate the DBS script at the moment, but there is a guide for writing them around here somewhere. |
|
|