vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I merge an admin into another member and not delete the origianl admin account (https://vborg.vbsupport.ru/showthread.php?t=115460)

indiamike 05-13-2006 03:52 PM

How do I merge an admin into another member and not delete the origianl admin account
 
Okay here is the scenario-

I have user number the admin account and I wish to move all of the posts to another account so a new person can takeover as the admistrator (I am retiring) and want to be able to merge the accounts without the main account (member #1) getting deleted.

I have looked at the source code of usertools.php and it looks like if I just edit out the lines
PHP Code:

// Remove remnants of source user
    
$userdm =& datamanager_init('User'$vbulletinERRTYPE_SILENT);
    
$userdm->set_existing($sourceinfo);
    
$userdm->delete();
    unset(
$userdm); 

that I will be able to merge the accout and not have the origianl account deleted.

Does this look right? Or is there another method? I cannot do a backup and it's very urgent since I am switching owners.

Thanks in advance.

Mike

Paul M 05-13-2006 03:55 PM

Maybe I'm missing the point, but why do you want to move the posts to another account but not delete it, what harm will deleting it do ? (for that matter, why not merge the other way, merge the other account into your account).

Marco van Herwaarden 05-13-2006 04:08 PM

Just rename the current Admin account.

indiamike 05-13-2006 04:32 PM

Quote:

Originally Posted by Paul M
Maybe I'm missing the point, but why do you want to move the posts to another account but not delete it, what harm will deleting it do ? (for that matter, why not merge the other way, merge the other account into your account).

I am selling my site and the new owner want's user 'number one' as his account and I am leaving but want to keep my posts under another account name for so they can archive and still view the information.

It's no problem switching the username but its a problem merging the threads into another account without deleting the admin account. So looking at the usercptools.php if I comment out those lines can I still merge it without it being deleted.

Marco van Herwaarden 05-13-2006 05:02 PM

Why he wants userid=1??

It is just an internal number with no meaning.


All times are GMT. The time now is 07:45 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.01843 seconds
  • Memory Usage 1,724KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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