Hi,
I converted my vb4 forum to mybb using vb3 module.
All things were good except attachements : their information are converted but concrete files are not.
In my vb4 forum attachements were stored into the database.
How can I get attachements to my new mybb forum ?
Thanks.
any solution ?
steel no answer ?
I see attachement files but they all have 0 byte size. There is a problem with conveting data from old database to files in new mybb forum.
Is there any one to help me change the code ?
I changed some lines of code so all things were imported correctly, only attachments are not working ?
The difference between vb3 and vb4 within attachments that they are splited into two tables : attachment table and filedata table.
I'm not a mybb developer, so I need some help to join the two table to modify this function :
function import()
{
global $import_session;
$query = $this->old_db->simple_select("attachment", "*", "", array('limit_start' => $this->trackers['start_attachments'], 'limit' => $import_session['attachments_per_screen']));
while($attachment = $this->old_db->fetch_array($query))
{
$this->insert($attachment);
}
}
finally I did it I updated the script so it can know convert vb4 to mybb with attachment. All thing works fine now.