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)

JulianD 11-17-2002 10:00 PM

vBulletin Merge Tool for v2.2.x
 
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. :p) *
- 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.

ZiRu$ 11-17-2002 10:55 PM

Nice Idea....useful for users that join under multiple names....but i wont be having that problem on my new board

JulianD 11-17-2002 11:00 PM

Thanks for your comments, but that's not the main purpose of the merger. You can merge two vBulletin installations into one.

zachb 11-17-2002 11:04 PM

That is awesome! I know many people have been waiting for this. Great job!

Erwin 11-17-2002 11:07 PM

Well done! :) A vB to vB importer has been requested for a looooooong time.

Brad 11-17-2002 11:14 PM

w00t, this will be useful! :)

[email protected] vbmenu_register("postmenu_323249", true); 11-17-2002 11:40 PM

Anyone used this yet? Outcome?

Mystic Gohan 11-18-2002 12:01 AM

I will test this right now I have two different databases on my HD so I will test quick

JulianD 11-18-2002 12:22 AM

Please post your results here :D Any comments/feedback/bug reports is appreciated.

Mystic Gohan 11-18-2002 12:42 AM

I got it to work w00t! I accually did it. wow this is so kool thanks much for the great hack

JulianD 11-18-2002 01:31 AM

Nice to hear that :)

ManagerJosh 11-18-2002 03:35 AM

This is superb! I think this will be made into an official import script sometime soon :p

JohnWoo 11-18-2002 06:08 AM

great work... I w8 this hack a long time.... Thanks one more...

Marshalus 11-18-2002 07:24 AM

OH SWEET MOTHER OF EVERYTHING HOLY!

Exactly what I've been needing for a long time.

Marshalus 11-18-2002 08:13 AM

Worked like a charm, the whole thing went off without a hitch.

Edit: The poll import is messed up, it doesn't apply to the right thread. Not a horrible thing, but kind of annoying.

JulianD 11-18-2002 12:09 PM

Quote:

Originally posted by Marshalus
Worked like a charm, the whole thing went off without a hitch.

Edit: The poll import is messed up, it doesn't apply to the right thread. Not a horrible thing, but kind of annoying.



I'll take a look :)

Dean C 11-18-2002 05:42 PM

Looks awesome..

Excellent idea and its great at last that this has been done

Much credit to you sir

Touché

- miSt

FleaBag 11-19-2002 11:59 PM

Any luck on the polls front?

JulianD 11-20-2002 12:37 AM

I'll work on the polls tonight.... I only have two databases, one of 16MB and another of 60MB..... I'll try to play with both databases and see how the polls are merged.....

hypedave 11-20-2002 05:00 AM

I cant believe this was to easy to run. I have been trying to write something like this for almost a year now, only thing I came close to was user to user merge. Great job you have done man,

Merjawy 11-20-2002 08:03 AM

better late than never.. thanks dude for this script

Mr L 11-20-2002 11:18 AM

Fantastic work!!!!

I have run it on my test board and it worked like a dream. Thank you for this.

ModshackUK 11-20-2002 02:36 PM

I would love a script that would allow me to import the posts from one user to another user on the same forum ?

HM

JulianD 11-20-2002 05:45 PM

Quote:

Originally posted by ModshackUK
I would love a script that would allow me to import the posts from one user to another user on the same forum ?

HM

You can do this with my script... Do not start the merge, instead, use the utility you found at the bottom of the start page.

Check the attachment.

ModshackUK 11-20-2002 10:33 PM

Yeah I figured that bit out shortly after posting :) nice work.

Would be nice if you could choose which forums got imported etc.

One thing I did notice was that my post count never increased even though I have more posts now ?

HM

JulianD 11-20-2002 11:18 PM

Quote:

Originally posted by ModshackUK
One thing I did notice was that my post count never increased even though I have more posts now ?

Umh... My post count is increasing normally in some merged forums. If you mean that your post count was not increased after the merge, maybe it's because you didn't run Update Counters.

Storm 11-21-2002 02:26 AM

You should put a big red disclaimer on this hack, someone I know is planning to do this:

Quote:

There's a new hack that allows Database mergers from multiple vBulletins, and I JUST happen to have an old back up of the old site's database from when there was about 30,000 to 40,000 posts...So what do you think?? I think we oldies deserve this, we EARNED those posts there, and bumping up the site to almost 150,000 posts would be a nice bonus...

PLUS, all of those old members who don't even know about this NEW Game Quest that joined the OLD Game Quest can be updated on the new situation...

Bonus, eh?? I just hope the hack goes smoothly...

EDIT: Plus, your old accounts can be merged with your NEW accounts, meaning I legitimately get back about 5,500 lost posts...

Storm can not sue for that, it\'s all of YOUR intellectual property...Imagine the size of post about the post above you after the merger?!?! Some stuff will have to be merged manually, but that\'s why we got staff
He was my co-admin way back, he recently got upset with me and left the forum to start his own, now he's going to merge my old database with his current one...

I'm not 100% sure how this hack works, but if it can do this, you can count on trouble...

hypedave 11-21-2002 12:18 PM

Hey I created a new poll, then when I voted on the new poll, the new poll results showed up in an old poll.

JulianD 11-21-2002 03:11 PM

Yes. This problem has been reported, and I'm working on it... I've been really busy lately with almost no-time for this script.

I'll try to fix the problem as soon as possible!

hypedave 11-21-2002 07:06 PM

oh ok, thanks I just wanted to make sure I wasnt going crazy or anything, could it be the way polls are being imported post id's are being associated with the current post id's

Mr L 11-21-2002 07:32 PM

I have just used this in a live setup. Merging a sister forum to the one that I currently have. The seconary forum only had about 600 users and 8000 posts compared to the current one that had 80000 odd posts.

The results, 100% perfect.

The user merger is a God send with multiple ID's.

I cannot rate this hack high enough 10/10.

JulianD 11-22-2002 02:14 AM

I'm glad to hear that.

Right now, the script is in beta, so please, check your forums... Currently, there seems to be a bug with the poll merger.

I have reproduced the problem in my localhost forums, and I'm hunting for the bug right now!

kmfdm_kid2000 11-22-2002 11:52 AM

Quote:

Originally posted by Storm
[B]He was my co-admin way back, he recently got upset with me and left the forum to start his own, now he's going to merge my old database with his current one...
Actually, you unfairly De-Admined me, and that's when all of the users saw that and crossed over...Now they can get back all that they worked for...But let's not get into that here, I just wanted to clear the air, since you love to lie...

Quote:

I'm not 100% sure how this hack works, but if it can do this, you can count on trouble...
Hopefully it DOES work...It's our intellectual Property, WE wrote it, your stuff's gonna just get deleted...

Anyway...

I applaud you for this hack...You've done us a great service in gaining back our lost history...I thank you, and my community thanks you...We worked hard for those posts, only to have that guy take it all away from us in the end...He's upset because we started a new site, and abandoned his...I will be implimenting this hack soon, and I'll let you know how it goes...Considering I paid for part of the old license, and none of his intellectual property will be carried over, I think whatever transpires will be nothing illegal...

He didn't post that stuff, WE did...Nothing in the License agreement states anything against any of this, and most of the old stuff is just going into archives anyway...

Ahhh, to relive the good ol' days once again ;)

ModshackUK 11-22-2002 12:44 PM

Actualy the posts remain the property of the site and its owner so if you do decide to merge his database into yours then you are breaking the copyright laws, and I would recomend he takes it to a court to sort out.

I had this a while back and was advised I had grounds to take legal action against the person(s) who did it. the site in question was imediately removed from the server it was hosted on.

The domain name owner provides the site on the understanding that all the content of the site is the property of him regardless of who posted it.

You were just an admin and not holding the position of owning the domain and so if you do this then he can simply contact your domain host and have your site removed for theft of content.

Its the same as me importing my posts from here into my own bulletin board, it just aint going to happen.

BTW you also import his members who may not want to go to your site, this also includes all thier PRIVATE MESSAGES as well as other personal info that they may not wish YOU to have access to. Each of them can activly prosecute you for theft of their intelectual property as the importer imports all the threads and members and does not distinguish them, this means that you have already done the dead before you delete them so the crime has already been commited.

By holding a copy of his database he has grounds enough there to prosecute you for unlawfull theft of his property.

So dont break out the champagne out yet m8

HM

FleaBag 11-22-2002 03:58 PM

I had this situation about a year ago. About 1000 members on my site were from a UBB, before I converted to vBulletin. An admin of my site [who paid for neither the UBB, vB, hosting or domains] left the site in protest over banner ads, and when he later decided to return found he wasn't an admin, started threatening to start his own site with the UBB backup. He had no legal basis to stand on, not that I'm saying law and morality are always the same thing.

FleaBag 11-22-2002 04:35 PM

Whoa installed this just now, excellent for merging users accounts. :D Thanks!

FASherman 11-23-2002 02:05 AM

Do the two database schemas have to be identical?

For instance, a highly hacked production forum with extra fields in tables and a plain, unhacked out-of-the-box test forum. How does this util handle that situation, if it does at all?

JulianD 11-23-2002 02:17 AM

I haven't tested it with hacked databases, but it should work fine.

Let me know if you have any problem running the script with hacked databases.

Mr L 11-23-2002 08:48 AM

Quote:

Originally posted by FASherman
Do the two database schemas have to be identical?

For instance, a highly hacked production forum with extra fields in tables and a plain, unhacked out-of-the-box test forum. How does this util handle that situation, if it does at all?

I can answer this one... :)

The database I merged with a hacked one, but with different hacks then the destinaton database. It was also a couple of revisions of vBulletin earlier.

I merged it into a hacked database as well. As an example, not active as I have removed the PHP, the database they were merged into had stuff like the Quiz and the Store installed. They also have the Awards installed and the user accounts that were merged worked fine with the active destination accounts that were award enabled.

Harvey.

FASherman 11-23-2002 10:33 AM

Your answer would seem to indicate it works, but how? Does it drop the extra fields when populating the target database? And if the target has extra fields itself, does it populate them based on the field default values?


All times are GMT. The time now is 04:52 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.02337 seconds
  • Memory Usage 1,822KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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