[Unknown]
Global Moderator
YaBB God
    
Posts: 7830


|
 |
Re:Converting from WWWBoard
« Reply #5 on: May 04, 2003, 12:05:33 AM » |
|
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]
|