Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Merge user account (dupes) Details »»
Merge user account (dupes)
Version: 1.00, by Sasq Sasq is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-20-2002 Last Update: Never Installs: 18
Is in Beta Stage  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-29-2002, 12:40 PM
fury's Avatar
fury fury is offline
 
Join Date: Oct 2001
Location: Indiana
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Reply With Quote
  #13  
Old 12-29-2002, 12:53 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Danke

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
Reply With Quote
  #14  
Old 12-30-2002, 06:23 PM
BetaMax BetaMax is offline
 
Join Date: Sep 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'
Reply With Quote
  #15  
Old 05-01-2003, 01:11 AM
blacknight blacknight is offline
 
Join Date: Jun 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked a treat!
Reply With Quote
  #16  
Old 05-01-2003, 01:16 AM
GaleForce GaleForce is offline
 
Join Date: Sep 2002
Location: New York
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice tool, will definitely use it when I need it
Reply With Quote
  #17  
Old 07-15-2003, 02:33 AM
WCW Fan WCW Fan is offline
 
Join Date: Jun 2003
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So all is well for this hack everything works on it
Reply With Quote
  #18  
Old 07-15-2003, 03:03 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 08-21-2003, 04:58 PM
ttb ttb is offline
 
Join Date: Jul 2003
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #20  
Old 08-21-2003, 09:12 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thankyou for sharing!
Reply With Quote
  #21  
Old 03-05-2004, 09:55 AM
firas firas is offline
 
Join Date: Feb 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

does it work for 2.3???
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04469 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete