vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   combining two user accounts into a single account (https://vborg.vbsupport.ru/showthread.php?t=54108)

engquist 06-10-2003 05:19 AM

combining two user accounts into a single account
 
I'd like to take two seperate user accounts in my VB 2.3.0 forum and combine them into one. How can I do this completely where all post counts are reflected correctly and all forums show all the posts as being made by only one of the two accounts?

Stu 06-11-2003 06:01 PM

I did something like this on a test board,
I ran queries on the Database to change the 'username' and the 'userid' within the 'Post' table
I'm sure this was all I did, but to be sure I would advise you to try this on a test board first, or wait for a more experienced member to offer a solution

UPDATE post SET userid=newid WHERE userid=oldid

UPDATE post SET username='newname' WHERE username='oldname'

then updated the counters from adminCP

Depending on what degree it may be necessary to run these too..

UPDATE thread SET postuserid=newid WHERE postuserid=oldid
UPDATE privatemessage SET fromuserid=newid WHERE fromuserid=oldid
UPDATE privatemessage SET userid=newid WHERE fromuserid=oldid AND folderid='-1'
UPDATE subscribethread SET userid=newid WHERE userid=oldid
UPDATE subscribeforum SET userid=newid WHERE userid=oldid
UPDATE pollvote SET userid=newid WHERE userid=oldid
UPDATE calendar_events SET userid=newid WHERE userid=oldid

esquared 06-17-2003 03:57 PM

Quote:

06-11-03 at 08:01 PM Stu said this in Post #2
I did something like this on a test board,
I ran queries on the Database to change the 'username' and the 'userid' within the 'Post' table
I'm sure this was all I did, but to be sure I would advise you to try this on a test board first, or wait for a more experienced member to offer a solution

UPDATE post SET userid=newid WHERE userid=oldid

UPDATE post SET username='newname' WHERE username='oldname'

then updated the counters from adminCP

Depending on what degree it may be necessary to run these too..

UPDATE thread SET postuserid=newid WHERE postuserid=oldid
UPDATE privatemessage SET fromuserid=newid WHERE fromuserid=oldid
UPDATE privatemessage SET userid=newid WHERE fromuserid=oldid AND folderid='-1'
UPDATE subscribethread SET userid=newid WHERE userid=oldid
UPDATE subscribeforum SET userid=newid WHERE userid=oldid
UPDATE pollvote SET userid=newid WHERE userid=oldid
UPDATE calendar_events SET userid=newid WHERE userid=oldid

Does this work?


All times are GMT. The time now is 10:53 AM.

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.01173 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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