Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 08-21-2002, 07:53 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul:

LOOKS like it's doing the same thing:

Script Version 1.045t-WebBBS5.0x
WebBBS-to-vBulletin 2.2 Message Converter

Connected successfullyQuery failed inserting post

AGAIN, your help is GREATLY APPRECIATED!!!

Yours,

Kirk Voclain
Reply With Quote
  #23  
Old 08-21-2002, 08:06 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IT'S is also interesting to note that it does the first one??? When I go to the Data Base, it assignes the very first file (in this case number 157) to the data base. EVERYTHING is correct!! The threadid, title, lastpost, forumid, polit, open, replycount, postusername, postuserid, everything, even the originalid thing you had me add has the proper number in it: 157.

But when I go back to the forum, it does not show up???

NOW is it something to do with VB that is causing this???

AS I SAID, it's not 100% hooded up, I'm in the learning stages and getting it ready to swith the DNS stage.

I'm hoping I can just convert??? And then switch??? NOT have to switch and open my site up with an empty board???

ANYWAY again, THANKS FOR ALL OF YOUR HELP!! IT IS GREATLY APPRECIATED.

Kirk
Reply With Quote
  #24  
Old 08-21-2002, 08:22 PM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was just about to ask if you remembered to insert the originalid field. I actually messed up in the directions. You need to add the originalid field into both the thread and post tables. I've updated the instructions. Try the script attached after adding the additional originalid field to the post table so that you have an originalid in both post and thread.
Reply With Quote
  #25  
Old 08-21-2002, 08:25 PM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by voclain
IT'S is also interesting to note that it does the first one??? When I go to the Data Base, it assignes the very first file (in this case number 157) to the data base. EVERYTHING is correct!! The threadid, title, lastpost, forumid, polit, open, replycount, postusername, postuserid, everything, even the originalid thing you had me add has the proper number in it: 157.
It might be a good idea to delete that entry. Also, after you've run the script, log into vBulletin's Admin CP and update all of the counters.
Reply With Quote
  #26  
Old 08-21-2002, 08:28 PM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also noticed on your site a lot of posts seem to have pictures attached. I didn't account for pictures or links in this conversion script, simply because there weren't that many on my posts. I'll try to add it into the script now.
Reply With Quote
  #27  
Old 08-21-2002, 08:39 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did it do something????

HERE is the message I got when I ran the latest thing you sent me:

Script Version 1.05t-WebBBS5.0x
WebBBS-to-vBulletin 2.2 Message Converter

Connected successfullyQuery failed getting counts for forum: SELECT `replycount`,`threadcount` FROM `forum` WHERE forumid =

----------------

YOU HAVE NO IDEA how much I appreciate this!! I don't suppose you need a professional photographer for something??? OR an Adobe Photoshop GURU?? I am both and I would LOVE to repay the favor!!

Yours,

Kirk Voclain
Reply With Quote
  #28  
Old 08-21-2002, 08:52 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul:

AS INFO, it did not work. I did an update of all counters in the admin. NOW when I go to the main board, it says there are 2 messages (used to only say one) but when you click on it, it still only shows ONE message.

So we are getting closer??? But it is still not working. PLUS it still only does ONE message, not all of them as intructed.

Yours,

Kirk
Reply With Quote
  #29  
Old 08-21-2002, 08:54 PM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by voclain
Did it do something????

HERE is the message I got when I ran the latest thing you sent me:

Script Version 1.05t-WebBBS5.0x
WebBBS-to-vBulletin 2.2 Message Converter

Connected successfullyQuery failed getting counts for forum: SELECT `replycount`,`threadcount` FROM `forum` WHERE forumid =
Alright.. we're getting there I suppose Thanks for the patience with this thing, as I've not tested it at all since I used it to convert 40,000 messages

Try the attached file. I added support for links and images since they seem to be used a lot in your forum. Hopefully, this will fix that error you got and not create any new ones!
Reply With Quote
  #30  
Old 08-21-2002, 08:59 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WE are getting close!!!

HERE is the latest message, IT LOOKS different???

Parse error: parse error in /home/virtual/site1/fst/var/www/html/cmc/bbs0/webbbs.php on line 285

LET ME KNOW...Thank you so much!!

Kirk
Reply With Quote
  #31  
Old 08-21-2002, 09:05 PM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WHOOPS!

Forgot a silly little parenthesis.

Try the attached version.
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 03:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04599 seconds
  • Memory Usage 2,305KB
  • 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_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