vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Merge user account (dupes) (https://vborg.vbsupport.ru/showthread.php?t=46880)

Sasq 12-20-2002 10:00 PM

Merge user account (dupes)
 
I am not offering support for this hack

This is a quick little script to be installed only into your admin dir (and best removed when its not needed)

most of the info came from this thread thanks to nightrider72 .

install and use instructions are ...

install into your admin dir,
to use it...
make sure your logged in....
you will need the user id of both accounts, the primary account is the one you wish to keep.

the secondary id number is the account that you wish to make go away....

submit, it will check the db for the user names and display both names and id, if yes, click, if its wrong back out of there.

when you click yes, it updates the posts, threads, pm's subscribed forums etc... it also updates the post count for both users... (ie the primary user inherets all of the posts, and the secondary user should have nothing)

there is very little error checking in this script, and use at your own risk.

It is working fine here - even if it is a little brutal, but saves the need to shell in and access the db that way (or use phpmyadmin)

AGAIN, USE THIS AT YOUR OWN RISK

Dean C 12-21-2002 04:46 PM

This is quite a nice little hack...

- miSt

Herman 12-21-2002 10:18 PM

Indeed it is, I think I'll beta test it for you. :)

[high]* Herman clicks install[/high]

Sasq 12-22-2002 02:20 AM

Hope it works as it does here :)

Dan

Herman 12-22-2002 01:49 PM

It works over here, nice work Sasq!

-Shift

EcpHosting 12-22-2002 06:16 PM

Excellent hack! We had the old nasty phpBB and upgraded to a VB and accidently created a dupe user (admin). Erg. BUT THIS HACK SOLVED IT! Thank you kindly. :D

Sasq 12-22-2002 11:22 PM

I'm glad to hear that its useful :D

DrkFusion 12-23-2002 02:08 AM

Looks neat, I may use it on my gc.

Thanks

orozery 12-26-2002 09:30 AM

Thank you very much! works great!

fury 12-29-2002 05:46 AM

Nice idea! I'll take a look at it tomorrow.

It's something I've been considering doing myself for a while, thanks for doing the work :D

fury 12-29-2002 12:40 PM

Merged a couple of small user accounts together, appeared to be a success, so *clicks install* :D

If I get in the mood today I may modify it to be able to search for username or email and add a quick link to delete the secondary user after the merge

Sasq 12-29-2002 12:53 PM

Danke :D

Yeah I thought about adding the ability to search for user id by user name, but 1) I was too lazy 2) in my case we only have/had about 5 users to merge so it wasn't worth my grief.

I'm interested in seeing what you come up with if you get in the mood.

now onto my next hack, something you all would really like ;)

BetaMax 12-30-2002 06:23 PM

How about adding 2 more replace querys, such as changing the lastposter info if any of the old account to the new account on the main forum display and in the thread listing.

Although, it is required to have the actual username and not the userid.

ie, adding the following 2 sql commands
Code:

update forum set lastposter='NewName' where lastposter='OldName'
and

Code:

update thread set lastposter='NewName' where lastposter='OldName'

blacknight 05-01-2003 01:11 AM

Worked a treat!

GaleForce 05-01-2003 01:16 AM

Nice tool, will definitely use it when I need it :)

WCW Fan 07-15-2003 02:33 AM

So all is well for this hack everything works on it

Smoothie 07-15-2003 03:03 AM

Quote:

Yesterday at 11:33 PM WCW Fan said this in Post #16
So all is well for this hack everything works on it
worked for me.

ttb 08-21-2003 04:58 PM

Can this recover posts from a deleted account? Like if someone deletes their account, and creates another one, all of the old posts that stayed behind from the previous, can they be merged?

Oblivion Knight 08-21-2003 09:12 PM

Excellent little script you have here.. :)
Worked perfectly with no problems (or at least none that are apparant).

Thankyou for sharing!

firas 03-05-2004 09:55 AM

hi

does it work for 2.3???

xlguy 05-16-2004 01:02 PM

Seems to work fine on vB2.3.3

:squareeyed:

Areku 02-18-2005 06:47 AM

Worked like a charm! tu!!


All times are GMT. The time now is 05:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01040 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete