Converting Megabbs Attachments To Vbulletin

Converting Megabbs Attachments Vbulletin - Computer Issues, Video Gaming - Posted: 18th Jul, 2010 - 1:24am

Text RPG Play Text RPG ?
 

Posts: 1 - Views: 956
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

international CODE

$sql = "SELECT attachmentid,
      filename,
      [file],
      filesize,
      downloadcount,
      messageid,
      fileguid,
    FROM {$tableprefix}attachments WHERE attachmentid...


Should become:

international CODE
$sql = "SELECT attachmentid,
      filename,
      [file],
      filesize,
      downloadcount,
      messageid,
      infilesystem,
      fileguid
    FROM {$tableprefix}attachments WHERE attachmentid...


Then in: 011.php

international CODE

if(!is_file($dir . '/' . $attachment_details['filename']) AND $attachment_details['infilesystem'] == 1)


Should be:

international 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:
international CODE
$file = $this->vb_file_get_contents($dir . '/' . $attachment_details['filename']);


Should be:
international CODE

//$file = $this->vb_file_get_contents($dir . '/' . $attachment_details['filename']);
    $file = $this->vb_file_get_contents($dir . '/' . $attachment_details['messageid'] .'-' . $attachment_details['fileguid']);



Sponsored Links:

 
> TOPIC: Converting Megabbs Attachments To Vbulletin
 

▲ TOP


International Discussions Coded by: BGID®
ALL RIGHTS RESERVED Copyright © 1999-2025
Disclaimer Privacy Report Errors Credits
This site uses Cookies to dispense or record information with regards to your visit. By continuing to use this site you agree to the terms outlined in our Cookies used here: Privacy / Disclaimer,