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)
-   -   vBulletin Merge Tool for v2.2.x (https://vborg.vbsupport.ru/showthread.php?t=45844)

Intercept 02-08-2003 05:32 AM

hey can you make the script so the database username doesnt have to be the same, i got plesk control pannel. and it wont let me put the same user name :(

Molok 02-27-2003 12:36 PM

i have 2 board version 2.2.9
now i want to merge and i received the following error

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: INSERT INTO userfield
(userid,field1,field2,field3,field4,importuserid,i snew)
VALUES
('2475',
'',
'',
'',
'',
'8',1
)
mysql error: Unknown column 'field1' in 'field list'

mysql error number: 1054

Darkwolf 02-27-2003 03:44 PM

It is possible like when the two database merge if the user using same email then they merge if not use as username[imported] ?

Lanigironu 02-27-2003 07:32 PM

This is exactly what I needed. I was going to write a script of my own, but this seems like it will do everything.

I just hope it works.

JulianD 02-28-2003 01:58 PM

Quote:

Originally posted by Molok
i have 2 board version 2.2.9
now i want to merge and i received the following error

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: INSERT INTO userfield
(userid,field1,field2,field3,field4,importuserid,i snew)
VALUES
('2475',
'',
'',
'',
'',
'8',1
)
mysql error: Unknown column 'field1' in 'field list'

mysql error number: 1054

Uhmm Looks like it doesn't work if you've deleted the user fields that comes with vbulletin. You can however replace this:

PHP Code:

  if ($userid) {
      
$DB_site->query("INSERT INTO userfield
      (userid,field1,field2,field3,field4,importuserid,isnew)
      VALUES
      ('
$userid',
      '"
.addslashes(htmlspecialchars($user[biography]))."',
      '"
.addslashes(htmlspecialchars($user[location]))."',
      '"
.addslashes(htmlspecialchars($user[interests]))."',
      '"
.addslashes(htmlspecialchars($user[occupation]))."',
      '
$user[importuserid]',1
      )"
);
  } 

with this:

PHP Code:

  if ($userid) {
      
$DB_site->query("INSERT INTO userfield
      (userid,importuserid,isnew)
      VALUES
      ('
$userid',
      '
$user[importuserid]',1
      )"
);
  } 

and hopefully it will work, however, you will lose the userfields data when you merge the databases.

JulianD 02-28-2003 04:30 PM

ok I need some help here.

I've enhaced the script a little bit. Now you can choose if you want to auto merge users with the same username, and you can choose a database to merge with a different password and a different hostname.

Please tell me if you encounter any problems, so I can update the first post.

KarateKid 03-07-2003 08:09 PM

Great.

Maybe I'll try this hack with 2 forums each many thousands posts, user and threads ;)

Regards.

Iezugod 03-09-2003 07:35 PM

When I go to start the import, I get:

Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /usr/local/psa/home/vhosts/nintendonet.com/httpdocs/forums/admin/db_mysql.php on line 32

JulianD 03-09-2003 08:38 PM

Are you sure you typed the login information for the second database?

Iezugod 03-12-2003 02:48 PM

No, it wouldn't let me. As soon as I selected the vB Merge tool from the list, and clicked submit, it gave me an error..


All times are GMT. The time now is 11:13 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.01451 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete