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
vBulletin Merge Tool for v2.2.x Details »»
vBulletin Merge Tool for v2.2.x
Version: 1.00, by JulianD JulianD is offline
Developer Last Online: Sep 2018 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 11-17-2002 Last Update: Never Installs: 69
Is in Beta Stage  
No support by the author.

Well, I did this for a friend and I saw some request for this tool before, so here you got.

My code is based on the import scripts that you found on vbulletin.com.

What it does?
- Merge: users, forums, threads, posts, polls, PMs and attachments of two vBulletin databases.
- It allows to associate usernames with current vBulletin users, to prevent duplication

Both databases should be in the same server, and use the same password.

If there's a duplicated name in both databases, the script will postfix the username from the database you're merging with something like: [imported]. So you probably will find users that looks like username[imported] after the merge. To solve this problem of two usernames being one person, there's a tool in the script to merge users individually.

New version
- The database to merge can now have a different host/username/password. *
- Ability to auto merge users with the same username (to avoid 4000 users with the [imported] thing. ) *
- You can now skip the forum merging, and use the tool only to merge users.
- The poll bug seems to be fixed now. Post your feedback.


Installation:

Simply upload the attached file to /forum/importers/ and go to your Admin CP > BB Import Systems and choose vBulletin Merge Tool for v2.2.x.

Note that this script requires vBulletin 2.2.7 (or newer) to work. I have tested it with 2.2.6 but you need to upgrade the file /forum/admin/bbimport.php to the version you found on vBulletin 2.2.7 or newer.



Important Information:
This merger is beta! You should backup everything before starting. Use it under your own risk!


I decided to reopen this thread with a new version of this merger. I hope it fixes all the problems with previous versions.

REMEMBER:

If you're going to merge two database that are located on the same host, you SHOULD use a different hostname for both database.

For example:

If you have 'localhost' configured as your $servername variable on the admin/config.php file, and you want to merge a database stored on the same server, you should use something like '127.0.0.1'. Another example... If you have $servername configured to 'vbulletin.org', and you want to merge a database located on vbulletin.org, use the IP address for that server instead... In this case '205.214.66.221'. Get it?

Sorry, I'm not very good with english and it's very hard to explain this. I hope you've understood this.

Show Your Support

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

Comments
  #62  
Old 11-27-2002, 09:09 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice if you could transfer from one server to another.
Reply With Quote
  #63  
Old 11-27-2002, 10:28 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, i've been thinking about it... Maybe I can do it for the next weekend.
Reply With Quote
  #64  
Old 11-27-2002, 11:13 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guess im screwed.. I need it tonight >__<

Anyways do you know a good way to tranfer one db to another that arnt on the same server?
Reply With Quote
  #65  
Old 12-01-2002, 08:16 AM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant make both usernames the same. using the plesk control panel.

Is ideas?
Reply With Quote
  #66  
Old 12-01-2002, 03:57 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by freeshares1
I cant make both usernames the same. using the plesk control panel.

Is ideas?
I guess you're asking if you can merge two users into one with the hack.... Yes, you can See this post.
Reply With Quote
  #67  
Old 12-01-2002, 04:30 PM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JulianD


I guess you're asking if you can merge two users into one with the hack.... Yes, you can See this post.
No,

What i have is 2 database

1/ the new one jokersnetwork
2/ the old one i want to merge into the above called old

The problem i have is that according my my host says that both databases cannot have the same username. So database 1 has username "jokers" which is what is in the config.php file and database no.2 has a username in phpadmin of "joker"

My question is how can i make this migration work? because my host says that using pleask (control panel) i cannot have the same database username for 2 different databases.

Below is the error i get

Database error in vBulletin Control Panel 2.2.7:

Invalid SQL: SELECT COUNT(*) AS count FROM old.user
mysql error: Access denied for user: 'jokers@localhost' to database 'old'

mysql error number: 1044

Date: Sunday 01st of December 2002 01:47:32 PM
Script: http://www.jokersrewards.com/forum/f...import_vb2.php
Referer: http://www.jokersrewards.com/forum/i...import_vb2.php


Any idea's or suggestions?
Reply With Quote
  #68  
Old 12-01-2002, 08:49 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could you make a mass user merge for those names that have the [imported] tag

im asking cus I have 3500 members that have [imported] and i'll be sitting here for weeks doing it manually

thanks
Reply With Quote
  #69  
Old 12-02-2002, 01:13 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Raptor
could you make a mass user merge for those names that have the [imported] tag

im asking cus I have 3500 members that have [imported] and i'll be sitting here for weeks doing it manually

thanks
Well... That's why you have to associate usernames before starting the users merge. It's a complicated process, but it's required...

Another option is to modify the script to automatically merge two users when they have identical usernames... It's possible, but it's not recommended because it could merge two different users into one.... tell me if this solution could work for you.
Reply With Quote
  #70  
Old 12-02-2002, 01:15 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by freeshares1


No,

What i have is 2 database

1/ the new one jokersnetwork
2/ the old one i want to merge into the above called old

The problem i have is that according my my host says that both databases cannot have the same username. So database 1 has username "jokers" which is what is in the config.php file and database no.2 has a username in phpadmin of "joker"

My question is how can i make this migration work? because my host says that using pleask (control panel) i cannot have the same database username for 2 different databases.

Below is the error i get

Database error in vBulletin Control Panel 2.2.7:

Invalid SQL: SELECT COUNT(*) AS count FROM old.user
mysql error: Access denied for user: 'jokers@localhost' to database 'old'

mysql error number: 1044

Date: Sunday 01st of December 2002 01:47:32 PM
Script: http://www.jokersrewards.com/forum/f...import_vb2.php
Referer: http://www.jokersrewards.com/forum/i...import_vb2.php


Any idea's or suggestions?
Ohhh sorry.... Now I understand you...

Unfortunately at this time it's not possible to merge two database without the same user and password. I'll try to release a new version with this ability for you guys.
Reply With Quote
  #71  
Old 12-02-2002, 08:13 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JulianD


Well... That's why you have to associate usernames before starting the users merge. It's a complicated process, but it's required...

Another option is to modify the script to automatically merge two users when they have identical usernames... It's possible, but it's not recommended because it could merge two different users into one.... tell me if this solution could work for you.
i've already imported and have just over 3000 *[imported] users

could you right a script so merge all these automatically AFTER all the importing and merging has been done

the *[imported] needs to be source and * needs to be destination
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 05:17 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.04651 seconds
  • Memory Usage 2,321KB
  • 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
  • (5)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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