Post Date: 18th Jul, 2010 - 1:24am / Post ID:
#
Converting Megabbs Attachments To Vbulletin
Converting MegaBBS to Vbulletin
I recently had to do this for a client and found it a task because MegaBBS makes attachments use two IDs to associate attached file names. Therefore ensure to use something like this in the system file for MegaBBS:
000.php
CODE
$sql = "SELECT attachmentid,
filename,
[file],
filesize,
downloadcount,
messageid,
fileguid,
FROM {$tableprefix}attachments WHERE attachmentid...
Should become:
CODE $sql = "SELECT attachmentid,
filename,
[file],
filesize,
downloadcount,
messageid,
infilesystem,
fileguid
FROM {$tableprefix}attachments WHERE attachmentid...
Then in: 011.php
CODE
if(!is_file($dir . '/' . $attachment_details['filename']) AND $attachment_details['infilesystem'] == 1)
Should be:
CODE // if(!is_file($dir . '/' . $attachment_details['filename']) AND $attachment_details['infilesystem'] == 1)
if(!is_file($dir . '/' . $attachment_details['messageid'] .'-' . $attachment_details['fileguid']) AND $attachment_details['infilesystem'] == 1)
Look for:
CODE $file = $this->vb_file_get_contents($dir . '/' . $attachment_details['filename']);
Should be:
CODE
//$file = $this->vb_file_get_contents($dir . '/' . $attachment_details['filename']);
$file = $this->vb_file_get_contents($dir . '/' . $attachment_details['messageid'] .'-' . $attachment_details['fileguid']);