Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
WebBBS to vBulletin 2.2.x Conversion Script Details »»
WebBBS to vBulletin 2.2.x Conversion Script
Version: 1.00, by Paul Paul is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-03-2002 Last Update: Never Installs: 16
 
No support by the author.

Hello all!

After much painstaking oogling at php code, I've created a conversion script to convert WebBBS messages to vBulletin. I created this a bit ago, but feel that it might be of use to someone out there so I thought I'd share it.

This was written to convert from a very old version of WebBBS (circa 1998), but has since been modified to work with 5.0. It should be a good start for anyone out there wanting to do this.

All of the instructions are included in the file as comments. Read them carefully! When finished, don't forget to update counters and the search table.

Anticipating vB3 like you wouldn't believe,
Paul

Update:
  • Now corrects for GMT offset for older WebBBS versions (the newest versions use unix timestamps, so this isn't needed)
  • Situation where extra carriage returns were being added should now be resolved.
  • Link URLs and Images are now processed. URLs/Images in the actual message body (assuming you had HTML enabled on WebBBS) are not processed. Anyone willing to add this functionality, let me know.
  • Situation where certain date strings would offset the timestamp incorrectly has now been corrected.
  • Connection to the database is now handled much more efficiently.

NOTE: By downloading this, you agree that you will not send me countless PMs/e-mails asking for help with it. If you have a question, post it on this thread. I am by no means an expert. This is my first script in php. It was written to fill my need and may or may not fill yours. I do not have the time nor resources to provide support for it.

Also, as with all hacks on this site, this script is for registered vBulletin users ONLY. You are not permitted to distribute this script to anyone, under any circumstances.

Show Your Support

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

Comments
  #62  
Old 04-23-2004, 08:59 PM
dustyb dustyb is offline
 
Join Date: Apr 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tgmorris
Here it is. It will likely need tweaking for each individual as I tuned it to handle how I did smilies on my site. The vb3 sections could probably be used for any other system as well.
Outstanding! I've got an ancient installation of WebBBS that I'm converting to VB3. About the only thing I needed to adjust was the table names in all the SQL. I have the vb prefix in front of everything.

Some comments... follow the instructions VERY carefully in regard to the sequences. You have to convert in order, you can't bounce around. It's probably easiest to copy your webbs files from each forum out of their respective bbs(x) directories and into a single location and run the script. One forum at a time.

One extremely important point. If you have multiple webbbs forums, which I presume most people do, you will need to clear the originalid and previousid bookmark fields from the vbulletin post table after each forum conversion, (using an update query). This is not documented in the instructions. The script relies on these "bookmark" fields and if you don't clear out the previous forum's data from these fields, your threads will be hopelessly jumbled.

Also, given the above two points on multiple forum conversions, it follows that you need to turn off your webbbs forums and do the conversions all at once. It would be extremely difficult to come back and update a multiple forum conversion process as you'd have lost your original/previous references for all but the last forum you converted. It really is a one shot deal.

Again, great work. This script saved me who knows how many hours and probably a fair chunk of $$$ in consulting expense. Many thanks!
Reply With Quote
  #63  
Old 04-30-2004, 09:51 PM
woodp woodp is offline
 
Join Date: Feb 2004
Location: California, USA
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tgmorris
Here it is. It will likely need tweaking for each individual as I tuned it to handle how I did smilies on my site. The vb3 sections could probably be used for any other system as well.
Tom,

I looked at your wbb3.php code and it seems to be exactly what I need - And I can follow every instruction except the MySQL changes.

Can anyone walk this phpMySQL newbie through the

ALTER TABLE post ADD COLUMN originalid int(5);
ALTER TABLE post ADD COLUMN previousid int(5);

steps. After that I'm fine, but what exactly do I need to do here?
Reply With Quote
  #64  
Old 09-01-2004, 10:31 PM
garymill garymill is offline
 
Join Date: Jul 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, To think that I can convert from WebBBS to VB3.03 sounds truely fantastic.

I did run into a problem it seems.

My error message is this.

Script Version 1.3-WebBBS
WebBBS-to-vBulletin 3.0 Message Converter

Fatal error: Cannot redeclare html_entity_decode() in /hsphere/local/home/cybermac/cybermacro.com/forums_webbbs/forum1/bbs0/wbb3.php on line 130

I appreciate any help to get this working.

Thanks,

Gary
Reply With Quote
  #65  
Old 09-01-2004, 10:40 PM
garymill garymill is offline
 
Join Date: Jul 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For my above post, is it a problem that the messages were created in WebBBS 5.00, not 5.12?

Gary
Reply With Quote
  #66  
Old 10-22-2004, 09:59 AM
oldengine oldengine is offline
 
Join Date: Mar 2004
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by woodp
Tom,

I looked at your wbb3.php code and it seems to be exactly what I need - And I can follow every instruction except the MySQL changes.

Can anyone walk this phpMySQL newbie through the

ALTER TABLE post ADD COLUMN originalid int(5);
ALTER TABLE post ADD COLUMN previousid int(5);

steps. After that I'm fine, but what exactly do I need to do here?
I'm in the same boat - I have phpMyAdmin but it looks like I could really mess things up without help to make the changes. Anyone have a step-by-step?

EDIT: Found this!

In phpMyAdmin, click "SQL". Then copy and paste this:
ALTER TABLE post ADD COLUMN previousid int(5);
there and click "Go".

EDIT: WORKED GREAT!

64,949 posts including 13,667 threads imported!

Is there any way to get these "imported existing user posts" to sync up with "user profiles" as new profiles for the poster are entered on the board?
Reply With Quote
  #67  
Old 10-29-2004, 03:00 PM
oldengine oldengine is offline
 
Join Date: Mar 2004
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After successful conversion of my major WebBBS archive boards, I'd like to proceed to converting my other WebBBS boards into my vb board.

One major question comes up: Since I have created an additional board on my vb site, will these current threads and posts interfere with more WebBBS archive posts converting in?

Obviously, these interim posts have been numbered with the vb thread and post counters, so I'm looking to find out if this will upset the wagon. Can I add more archival posts to the same board as I converted before, or do they need to go to a "new" board?

It it apparent that ALL posts and threads on a vb system share the same counters.
Reply With Quote
  #68  
Old 11-06-2004, 09:43 PM
oldengine oldengine is offline
 
Join Date: Mar 2004
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I set up another forum, got its assigned number (21) and placed it into wbb3convert and then imported an additional 735 posts including 238 threads.

I ran "Rebuild Forum Information" before and after converting. After the import, running "Rebuild Forum Information" reducess the above numbers to 547 posts including 238 threads.

I have repeated this process several times with the same results. (I'm getting good at mysqldump and mysql restore!)

It is apparent that the missing posts from board #21 have landed into forum #2. They don't belong there. Why is this happening?
Reply With Quote
  #69  
Old 11-07-2004, 01:33 AM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oldengine
I set up another forum, got its assigned number (21) and placed it into wbb3convert and then imported an additional 735 posts including 238 threads.

I ran "Rebuild Forum Information" before and after converting. After the import, running "Rebuild Forum Information" reducess the above numbers to 547 posts including 238 threads.

I have repeated this process several times with the same results. (I'm getting good at mysqldump and mysql restore!)

It is apparent that the missing posts from board #21 have landed into forum #2. They don't belong there. Why is this happening?
You will have to clear out the values in the originalid column as the post numbers that webbbs uses overlap on seperate forums (for example, foruma.cgi might have a post #423 and so will forumb.cgi). Run a query similar to the following after importing each individual forum:

Code:
UPDATE `post` SET originalid = NULL;
I'm not sure if changes to the script to support a direct vb3 conversion would require additional changes.
Reply With Quote
  #70  
Old 11-07-2004, 02:54 AM
oldengine oldengine is offline
 
Join Date: Mar 2004
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the command!
Quote:
Originally Posted by Paul
Code:
UPDATE `post` SET originalid = NULL;
I'm not sure if changes to the script to support a direct vb3 conversion would require additional changes.
I'm getting it! I was just in on myphpadmin looking at the data and I see that each record retains this previous/next numeric data. After the records are converted in, Vbulletin doesn't need that information and the ONLY reason that I would need it is if additional records from the SAME board were to be brought in.

I also saw that records added by Vbulletin were NULL in those fields, therefore, interim posting on Vbulletin shouldn't matter.

It is when I need to bring in an unrelated board with record numbers in a lower or different range than before, that the new fields need to be NULLed.

My board system has related forums and unrelated forums. I'm thinking of having two sets of "originalid and previousid" fields (named differently) and using two different import scripts (fields renamed) so as to manage importing these related and unrelated forums.

EDIT: It worked! The additional fields worked! All finished! I imported 18,207 threads including 81,327 posts from seven different boards! Life is good! Thank you Vbulletin and thank you Paul, TGMorris and Dustyb for the conversion script and the encouraging information!
Reply With Quote
  #71  
Old 11-28-2004, 06:56 PM
garymill garymill is offline
 
Join Date: Jul 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have two Web BBS 5.0 forums that I want converted to Vbulletin. I will pay a resonable fee for this work.

PM me if interested.

Gary
Reply With Quote
Reply

Thread Tools

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 04:28 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.05618 seconds
  • Memory Usage 2,312KB
  • 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
  • (2)bbcode_code
  • (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
  • (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