Welcome, Guest. Please Login or Register.
May 20, 2024, 02:36:32 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Converters  |  Converting from WWWBoard « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Converting from WWWBoard  (Read 3112 times)
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Converting from WWWBoard
« on: May 03, 2003, 08:20:51 PM »
Reply with quote

I don't suppose there are any converters available from Matt Wright's old WWWBoard? I have an old WWWBoard in use that I would like to convert to YaBB SE, and I don't really feel like copying and pasting every single message.

For the time being, I'm linking to both the old WWWBoard message board and the new YaBB SE one, which is far from ideal...
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Converting from WWWBoard
« Reply #1 on: May 03, 2003, 08:32:23 PM »
Reply with quote

I assume it stores the posts in flat file?  Any idea on the format?

-[Unknown]
Logged
old dan
Full Member
***
Posts: 191


Make music, not war.

WWW
Re:Converting from WWWBoard
« Reply #2 on: May 03, 2003, 09:08:45 PM »
Reply with quote

Quote from: [Unknown] on May 03, 2003, 08:32:23 PM
I assume it stores the posts in flat file?  Any idea on the format?

-[Unknown]

It stores posts as html files. And they are all linked by a single html file. Like this:


<dl>
<!--begin-->
<!--top: 1322--><li><a href="messages/1322.html">Homemade bass drum mics </a> - <b>Silent Bob</b> <i>02:19:43 3/14/00</i>
(<!--responses: 1322-->9)
<ul><!--insert: 1322-->
<!--top: 1346--><li><a href="messages/1346.html">Re: Homemade bass drum mics </a> - <b>guitarboy</b> <i>08:54:11 3/15/00</i>
(<!--responses: 1346-->1)
<ul><!--insert: 1346-->
<!--top: 1359--><li><a href="messages/1359.html">you can usually see the drivers through the foam screens </a>  (n/t) - <b>Silent Bob</b> <i>13:48:10 3/15/00</i>
(<!--responses: 1359-->0)
<ul><!--insert: 1359-->
</ul><!--end: 1359-->
</ul><!--end: 1346-->
<!--top: 1345--><li><a href="messages/1345.html">I'll put an example up on the site of the sound </a>  (n/t) - <b>Silent Bob</b> <i>01:15:52 3/15/00</i>
(<!--responses: 1345-->0)
<ul><!--insert: 1345-->
</ul><!--end: 1345-->
<!--top: 1342--><li><a href="messages/1342.html">Re: Homemade bass drum mics </a> - <b>Kevin</b> <i>21:44:22 3/14/00</i>
(<!--responses: 1342-->1)
<ul><!--insert: 1342-->
<!--top: 1343--><li><a href="messages/1343.html">JR is right. This thread needs racked! Maybe in articles? </a>  (n/t) - <b>Kevin</b> <i>21:47:07 3/14/00</i>
(<!--responses: 1343-->0)
<ul><!--insert: 1343-->
</ul><!--end: 1343-->
</ul><!--end: 1342-->
<!--top: 1330--><li><a href="messages/1330.html">sweet..rack him! </a> - <b>JR#97</b> <i>14:19:07 3/14/00</i>
(<!--responses: 1330-->1)
<ul><!--insert: 1330-->
<!--top: 1331--><li><a href="messages/1331.html">check out the picture </a> - <b>Silent bob</b> <i>14:23:04 3/14/00</i>
(<!--responses: 1331-->0)
<ul><!--insert: 1331-->
</ul><!--end: 1331-->
</ul><!--end: 1330-->
<!--top: 1327--><li><a href="messages/1327.html">You da man! </a> - <b>Backbeet1</b> <i>12:53:32 3/14/00</i>
(<!--responses: 1327-->0)
<ul><!--insert: 1327-->
</ul><!--end: 1327-->
<!--top: 1323--><li><a href="messages/1323.html">Thanks!! </a> - <b>guitarboy</b> <i>07:04:56 3/14/00</i>
(<!--responses: 1323-->0)
<ul><!--insert: 1323-->
</ul><!--end: 1323-->
</ul><!--end: 1322-->


that's just for one post and the replies. Back when I first switched to Yabb (cgi) I started a convertor but gave up. I just made all the old wwwboard posts archives.
Logged

People who drink lite beer don't like the taste of beer; they just like to pee a lot
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Converting from WWWBoard
« Reply #3 on: May 03, 2003, 10:38:17 PM »
Reply with quote

Woah, that's quite hateful.... hmmm......

-[Unknown]
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Converting from WWWBoard
« Reply #4 on: May 03, 2003, 11:41:00 PM »
Reply with quote

I agree - It's not fun...  ::)

I just found an example of a Perl script that supposedly converts WWWBoard to MySQL formats:

http://www.nocrash.com/archive/wwwboard-to-mysql.txt

Perhaps that could be modified to YaBB SE:s database structure?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Converting from WWWBoard
« Reply #5 on: May 04, 2003, 12:05:33 AM »
Reply with quote

Find:
              "INSERT INTO myposts (threadid, postid, date, name, subject, msg) VALUES \n";
            print OUTFILE "($threadid,$postid,$date,\"$name\",\"$subjectX\",\"$msg\");\n";

Change to:
              "INSERT INTO yabbse_messages (ID_TOPIC, ID_MSG, posterTime, posterName, subject, body) VALUES \n";
            print OUTFILE "($threadid,$postid,$date,\"$name\",\"$subjectX\",\"$msg\");\n";


Find:
        $postid = 0;
Replace:
        $firstpostid = $postid;

Find:
$threadid = 1;

Replace:
$threadid = 2;
$postid = 2;

Find:
    $threadid++;

Add above:
    $lastpostid = $postid - 1;
    print OUTFILE
     "INSERT INTO yabbse_topics (ID_TOPIC, ID_BOARD, ID_FIRST_MSG, ID_LAST_MSG) VALUES \n";
            print OUTFILE "($threadid,1,$firstpostid,$lastpostid);\n";

That *should* work with a default install of YaBB SE 1.5.2.

Just have to execute the SQL file.

-[Unknown]
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Converting from WWWBoard
« Reply #6 on: May 05, 2003, 11:13:01 AM »
Reply with quote

Thanks - I'll try that.

In order to change what board to insert the threads in, is it just a matter of changing 1 to the ID of the board I want it in?
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Converters  |  Converting from WWWBoard « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.013 seconds with 18 queries.