SMF Support > YaBB/YaBB SE

[SMF Converter] Yabb 2.2

<< < (4/10) > >>

TE:
the converter checks different vars before inserting the data into the convert table

if (isset($yabb['uploaddir']) && !empty($message[12]) && file_exists($yabb['uploaddir'] . '/' . $message[12]))

are you sure the variable $yabb['uploaddir'] is set to the right path?

hhhoagie:

--- Quote from: TE on February 27, 2009, 01:36:41 AM ---the yaBB converter needs a configuration file from your old YaBB:
Paths.pl
the Paths.pl contains the variables for your data dirs..


--- Quote ---   $boardsdir = "./Boards";
   $sourcedir = "./Sources";
   $memberdir = "./Members";
   $vardir    = "./Variables";
--- End quote ---

I'll check my YaBB installation later this day, maybe I can post an example paths.pl

--- End quote ---
Well I don't have a path.pl file so how do I go about getting around this.  I have my Boards, Sources, Members, Variable, Modules, Attachments, Messages and Templates backed up and that's all I have.
Am I dead in the water?  Or is there hope for me?

TE:
place a "sample" paths.pl to your YaBB folder, then our converter should be able to read the old data files..

try the attached version.

pikarl:

--- Quote from: TE on February 27, 2009, 01:42:37 PM ---the converter checks different vars before inserting the data into the convert table

if (isset($yabb['uploaddir']) && !empty($message[12]) && file_exists($yabb['uploaddir'] . '/' . $message[12]))

are you sure the variable $yabb['uploaddir'] is set to the right path?

--- End quote ---

I checked this now, the path is set correctly to the absolute directory and $yabb['uploaddir'] is set to it as well. Now I finally know what´s going wrong but I don´t have an elegant solution. In function convertStep12() in yabb22_to_smf.php the while loop is running infinitely. So he is copying YaBB´s 160 attachment files many times to SMF´s attachment directory. But I do not get why the while loop is not breaking up at this point as it should:


--- Code: ---if (mysql_num_rows($result) < $block_size)
break;
--- End code ---

My workaround for the moment is to set the number of loops to the number I assume to be needed regarding the block size and the total number of files in YaBB´s attachment folder.

hhhoagie:

--- Quote from: TE on February 28, 2009, 02:34:52 AM ---place a "sample" paths.pl to your YaBB folder, then our converter should be able to read the old data files..

try the attached version.

--- End quote ---

Whoo Hoo.  That worked and looks like no errors.  Smoooooth.  thank you TE

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version