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
  #12  
Old 08-09-2002, 03:51 AM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated the original attachment to what I believe is a working version.
Reply With Quote
  #13  
Old 08-21-2002, 07:12 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

.....HERE's WHAT IT Looks like after I activate the script in my browser:

Script Version 1.04r
WebBBS-to-vBulletin 2.2 Message Converter

Connected successfullyQuery failed inserting post

Yours,

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

Quote:
Originally posted by voclain
.....HERE's WHAT IT Looks like after I activate the script in my browser:

Script Version 1.04r
WebBBS-to-vBulletin 2.2 Message Converter

Connected successfullyQuery failed inserting post
Did you make sure to edit the following part of the file?:

PHP Code:
// Server: Change this the server your mySQL database is on.
$server "localhost";

// Sqldatabase: Change this to the name of the database on your server that vBulletin is on
$sqldatabase "vbulletin";

// Sqluserid: Change this to the username for your mySQL server database
$sqluserid "username";

// Sqlpassword: Change this to your password for your mySQL server database
$sqlpassword "password"
Make sure your database name, SQL username, and SQL password are all correct. Use the same settings that vBulletin uses.
Reply With Quote
  #15  
Old 08-21-2002, 07:23 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YEP!!

I did that. INFACT when I go the the MySQL data base and look under Threads, IT posted ONE of the 25 I tryed to import. But that ONE does not show up on the Forum???

I'm sorry to say, I'm confused???

Yours,

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

Have you specified the correct forumid?
Reply With Quote
  #17  
Old 08-21-2002, 07:30 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also:

Does it matter that the files in WebBBS look like this (I mean within the sequencial numbers):

SUBJECT>Re: This board is cool.
POSTER>Kirk Voclain
EMAIL>kirk@internet8.net
DATE>1021396575
IP_ADDRESS>64.165.69.139
PREVIOUS>5999
NEXT> 6008
IMAGE>http://www.pro4um.com/heli/rg.jpg
LINKNAME>The Pro4uM
LINKURL>http://www.pro4um.com
<P>This is a cool shot of my new helicopter.

I'm running version 5.00 of WebBBS. And version 2.2.6 of VB.

YOUR help is GREATLY appreciated!!!

Yours,

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

YEP!!

And again in the data base, it lists it under the correct forum ID.

Yours,

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

I have checked your web site and see that you are running webbbs 5.0. I did not design this conversion script for that version. Please post an two or three message files as attachments from your forum so we can look at the fields it's using and adjust the script to work for you.

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

Here are those file you requested. ALSO, when you go to my web site: http://www.pro4um.com well VB is not running there. I have VB set up and only working on an IP address.

MY HOST who currently has my site refused to upgrade his system to PHP and MySQL so I could use VB, so I'm switching.

IN THE process of swithching, I have not transfered the DNS yet, so VB is working, but only with an IP address.

I'm telling you all of this, to ask IF it matters or not???

LET ME KNOW and here are those files:

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

Hah! While I was posting my response, you posted an example of one of the data files from your forum. It appears that your version of WebBBS uses unix timestamps instead of a string to specify the date, so that would cause my script to break. Try using the attached script and see if you get better results. Let me know how it works.
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:34 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.05276 seconds
  • Memory Usage 2,307KB
  • 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
  • (1)bbcode_php
  • (1)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
  • (3)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