vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WebBBS to vBulletin 2.2.x Conversion Script (https://vborg.vbsupport.ru/showthread.php?t=35697)

Paul 03-03-2002 10:00 PM

WebBBS to vBulletin 2.2.x Conversion Script
 
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.

TheComputerGuy 03-04-2002 08:28 AM

Three round of applause for Paul!!!!!!

Man you just dont know how much I Love ya!

Paul 03-04-2002 11:28 AM

Please let me know how it works out :)

TheComputerGuy 03-05-2002 12:57 PM

I will, and I soon will know, in about another week, after we buy another vB license

Paul 03-05-2002 02:20 PM

If you're buying a license on the premise that this will work for you, I'd suggest trying it out with the "light" version that is freely downloadable from vbulletin.com. I have no idea what the database structure is compared to the full version or if it would matter (although I sincerely doubt it since the conversion doesn't insert any thing special.. just the basics (nick, ip address, e-mail, etc..)). Just remember, there are no guarantees that it will work. I'd hate to see you spend up to $160 only to find out it's not suitable for you.

TheComputerGuy 03-09-2002 09:07 AM

I get some parase error on line 79 which is the local host line and nothing has changed......any ideas

Paul 03-09-2002 12:40 PM

Have you tried re-downloading the script? Perhaps there's a missing semicolon or something silly like that?
Are you using php3 or 4? I wrote it using four, although I don't know if it's compatible with 3.

TheComputerGuy 03-09-2002 02:27 PM

I am using php 4, I test the script out and I see it will work, but I have the board in a cgi-bin folder, and I keep getting a forbidden error on there, will I have to remove permissions off the file or such?

Paul 04-08-2002 06:43 PM

The script should be using the nobody account (assuming that's what apache is using) and therefore should have read access to anything that webbbs has access to. If you want to make sure, you can move the messages into a different folder or make a copy of them and change the permissions.. the script doesn't edit the message files.. it simply reads them and imports relevent values into the vb database.

Sorry it's taken me so long to respond... have you had any success with this?

Paul 05-03-2002 04:35 PM

Anyone interested in this conversion script:

It is not functioning due to a few syntax errors. I added a few variables that were formerly hardcoded into the script before posting it here and did not test the script prior to that as I had already completed my install. There are a few problems to note as well.... This script will NOT convert the timestamps on your messages to GMT, therefore messages may be off a number of hours when viewed in vB.. I have since written a script to correct for that error, but it is in no way in any condition to handle this problem for other users. Some points to consider: daylight saving time, your time zone, etc.

I will post an updated version of the conversion script later today that will hopefully fix the runtime errors.

Paul


All times are GMT. The time now is 11:31 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.01344 seconds
  • Memory Usage 1,736KB
  • 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
  • (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
  • (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