VBulletin 4.0.7 to SMF RC3

Started by PraveerD, September 25, 2010, 05:16:39 AM

Previous topic - Next topic

PraveerD

Hello all,
            I am currently using vBulletin 4.0.7 and want to convert to SMF RC3. I could not find any converter for my needs. Please help me convert. I am really tired of vb and so want to return back to smf which I have used before.

Regards
Praveer

Antes

Use last (3.7) converter ,, but if you have attachments it can make problem, pls try on localhost b4 go live :)

PraveerD

Hello, thanks for your reply. I have no attachments on my forum. I just have posts with links in them. Will the links in posts be lost?

Regards
Praveer

Antes

I really dont understand it can you provide me a demo ?

you mean : mysite.com/zip.zip ? (direct download)

PraveerD

What I mean is that in threads on my forum there are links redirecting to various sites. So what I want to know that is that will links be lost or not?

Antes

Quote from: praveer_dixit on September 25, 2010, 08:23:52 AM
What I mean is that in threads on my forum there are links redirecting to various sites. So what I want to know that is that will links be lost or not?

nope :)

PraveerD

Thanks. Let me know try. Lets pray it works.

PraveerD

What do I put in path to vb option of convert?

PraveerD

Done the convert but its showing attachment unsuccessful. I know thats a bug. But now how do I make the converter proceed further. It keeps showing attachment unsuccessful message.

Antes

I'm sorry i need to write it before

open vbulletin37_to_smf.sql

/******************************************************************************/
--- Converting attachments...
/******************************************************************************/

---* {$to_prefix}attachments
---{
$no_add = true;

if (!isset($vb_settings))
{
    $result = convert_query("
        SELECT varname, value
        FROM {$from_prefix}setting
        WHERE varname IN ('attachfile', 'attachpath', 'usefileavatar', 'avatarpath')
        LIMIT 4");
    $vb_settings = array();
    while ($row2 = convert_fetch_assoc($result))
    {
        if (substr($row2['value'], 0, 2) == './')
            $row2['value'] = $_POST['path_from'] . substr($row2['value'], 1);
        $vb_settings[$row2['varname']] = $row2['value'];
    }
    convert_free_result($result);
}

// Is this an image???
$attachmentExtension = strtolower(substr(strrchr($row['filename'], '.'), 1));
if (!in_array($attachmentExtension, array('jpg', 'jpeg', 'gif', 'png')))
    $attachmentExtension = '';

// Set the default empty values.
$width = 0;
$height = 0;

$file_hash = getAttachmentFilename($row['filename'], $id_attach, null, true);
$physical_filename = $id_attach . '_' . $file_hash;

if (strlen($physical_filename) > 255)
    return;

if (empty($vb_settings['attachfile']))
{
    $fp = @fopen($attachmentUploadDir . '/' . $physical_filename, 'wb');
    if (!$fp)
        return;

    fwrite($fp, $row['filedata']);
    fclose($fp);
}
elseif ($vb_settings['attachfile'] == 1)
{
    if (!copy($vb_settings['attachpath'] . '/' . $row['userid'] . '/' . $row['attachmentid'] . '.attach', $attachmentUploadDir . '/' . $physical_filename))
        return;
}
elseif ($vb_settings['attachfile'] == 2)
{
    if (!copy($vb_settings['attachpath'] . '/' . chunk_split($row['userid'], 1, '/') . $row['attachmentid'] . '.attach', $attachmentUploadDir . '/' . $physical_filename))
        return;
}

// Is an an image?
if (!empty($attachmentExtension))
{
    list ($width, $height) = getimagesize($attachmentUploadDir . '/' . $physical_filename);
    // This shouldn't happen but apparently it might
    if(empty($width))
        $width = 0;
    if(empty($height))
        $height = 0;
}

$rows[] = array(
    'id_attach' => $id_attach,
    'size' => filesize($attachmentUploadDir . '/' . $physical_filename),
    'filename' => $row['filename'],
    'file_hash' => $file_hash,
    'id_msg' => $row['id_msg'],
    'downloads' => $row['downloads'],
    'width' => $width,
    'height' => $height,
);
$id_attach++;
---}
SELECT
    postid AS id_msg, counter AS downloads, filename, filedata, userid,
    attachmentid
FROM {$from_prefix}attachment;
---*


Find and delete it :)

Jed11

I want to do the samething.  Made the mistake of going with VBulletin 4.0 and now I'm up to 4.0.7 and still dissatisfied.  I want to go back to smf.

When I do the conversion as instructed I get a successful conversion, but the users must reset their passwords.  Is there anyway around this? 

Antes

Sometimes twice logging in fixes, but mostly need to reset their passwords

PraveerD

Sorry for asking this question so late. But now as my forum is converted from vbulletin to smf, do I now delete the database of vbulletin? I know its a noobs question but I dont want to take any risks.

Antes

Quote from: praveer_dixit on October 05, 2010, 07:58:48 AM
Sorry for asking this question so late. But now as my forum is converted from vbulletin to smf, do I now delete the database of vbulletin? I know its a noobs question but I dont want to take any risks.

take back-up and delete whole files / tables related to vBulletin :)

Advertisement: