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

You've got me sitting on the edge of my seat... any luck? I'll be away from the computer until late tonight (four-five hours) so I won't be able to help with any other problems until then. Let me know if it was successful for you. I've updated the original post on this thread with the latest version. You'll note I've added the $useunixtime variable in case there's anyone out there that needs the date processing I did with the old version I had. For 5.0, just leave it set to "1".

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

......

Well sorry to tell you, the contractions are still there.

NEW PROBLEM:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/virtual/site1/fst/var/www/html/cmc/bbs0/webbbs.php on line 310


KEEP ME POSTED!!

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

I always forget the little things This time it was two periods

Here's the updated file. Please work!
Reply With Quote
  #35  
Old 08-22-2002, 02:42 AM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GETTING CLOSER!!! This time it says this:

Script Version 1.09t-WebBBS
WebBBS-to-vBulletin 2.2 Message Converter

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

THANKS AGAIN!!

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

Keep pushing.

Edit: Hah. I uploaded the same file as last time Try again!
Reply With Quote
  #37  
Old 08-22-2002, 03:13 AM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a waste of a perfectly good thread
Reply With Quote
  #38  
Old 08-22-2002, 03:20 AM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK this looks promising!!! But still not working!!! I really would like to give birth to a boy or even a girl!!!

HERE's what it says:

Script Version 1.10t-WebBBS
WebBBS-to-vBulletin 2.2 Message Converter

Connected successfully

Warning: Unable to jump to row 0 on MySQL result index 2 in /home/virtual/site1/fst/var/www/html/cmc/bbs0/webbbs.php on line 146

Warning: Unable to jump to row 0 on MySQL result index 2 in /home/virtual/site1/fst/var/www/html/cmc/bbs0/webbbs.php on line 147
Query failed updating forum counts: UPDATE forum SET replycount=, threadcount=, lastpost=-1, lastposter='Ralph Tomaccio' WHERE forumid = ''

Where are you from??? I'm going to owe you some family portraits or something when this is all over!!

Thank you so much!!!

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

It's a girl:
Reply With Quote
  #40  
Old 08-22-2002, 03:45 AM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IT's a girl??? But I don't think it human yet. But it definately has arms and legs!!!

OK, First here is the results of what happened, it's long, but here goes:

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

Connected successfully
Processed 157
Connected successfully
Processed 158
Connected successfully
Query failed inserting post: INSERT INTO `post` (`postid`, `threadid`, `username`, `userid`, `title`, `dateline`, `attachmentid`, `pagetext`, `allowsmilie`, `showsignature`, `ipaddress`, `iconid`, `visible`, `edituserid`, `editdate`, `originalid`) VALUES ('', '17', 'Rick McDaniel', '0', '4x5 view camera.', '-1', '0', 'You need the movements to keep the camera out of the reflections. You can do it as you suggested, if you do it well, but then the volume of shots you need to do it on, is significant, so that isn\'t really the best way. If you only had a handful to do, that might be a different story. 1. Dark gray paper 2. I would use a diffused spot, so the contrast reflected is reproducible. 3. Probably wouldn\'t use that technique. Since I don\'t Photoshop extensively, uncertain what might be best. 4. Edge reflections should be adequate with diffusion panels skimming the frames, with gobos to control the spill, and a light on either side. 5. Use hanging methods that keep the frame as flat to the wall as possible. If you use a hanger on each side, placed with a level for precision alignment, and group them by size, then you should be able to keep them fairly flat. Use spacers under the bottom edge, to tilt the base of the frame back up for top to bottom level. Use Polaroid or digital for previewing, to be certain everything is correct, before final exposure. Good luck. L'allure Photographic ', '1', '0', 'IP_ADDRESS>165.95.207.169', '0', '1', '0', '0', '159')


--


NOW the good news is that this is the first time that when I go back to my messages board on VB that I actually see more than just the test messages on the home page.

HOWEVER, when I click on the board, NOTHING is there except the test message that I put there previously.

I did an "update counters" but it did not fix the problem.

Thanks, can I at least send your wife some flowers or something?????????

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

This time it's a girl. Like it or not.

The ' in L'allure Photographic was what was messing it up. I had to rearrange some code, but this time it will work. That's part of the code I added to include image and link attachments from WebBBS.

I also noticed that the format used in WebBBS 5.0 for storing the IP address has changed and have altered the code to account for that as well.

Hopefully we've thought of everything so far!
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 01:08 AM.


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.04378 seconds
  • Memory Usage 2,302KB
  • 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)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