1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Guide for upgrading from SMF 1.1.15 to Xenforo (1.1.0 beta 5)

Discussion in 'Tips and Guides [Archive]' started by KidCactus, Nov 12, 2011.

  1. KidCactus

    KidCactus Member

    From what I've gathered, I'm not the only one wanting to upgrade from SMF 1.1.15 to Xenforo. I've now finally managed to do this going from SMF 1.1.15 to SMF 2.0.1 to Xenforo 1.1.0 beta 5, in a "few" (quite) easy steps:

    On the SMF side:

    1. Export your SMF 1.1.15 database.
    2. Install a new full SMF 2.0.1 forum on a new empty database.
    3. When done with the installation, log into phpMyAdmin and drop all the tables in the database that the installation has created.
    4. Import the 1.1.15 database you exported in step 1.
    5. If you have installed 2.0.1 in a new path on the server, edit the paths in the smf_themes table to correspond with the new path!
    6. Make sure the database prefix in Settings.php (in the root folder) corresponds with the prefix of your imported database.
    7. Download the Large Upgrade package for SMF 2.0.1 and copy upgrade.php and all .sql files from it to the root folder.
    8. Run upgrade.php in a browser and wait for it to finish (ignore the SQL errors when done).

    On the Xenforo side:

    1. Install a new full version of Xenforo 1.1.0 beta 5.
    2. Download and install the unofficial SMF 2 Importer.
    3. Edit /library/XenForo/Importer/SMF2.php and remove:
    PHP:
            $import['identities'] = array();
            if (!empty(
    $user['icq']))
                
    $import['identities']['icq'] = $user['icq'];
            if (!empty(
    $user['aim']))
                
    $import['identities']['aim'] = $user['aim'];
            if (!empty(
    $user['yim']))
                
    $import['identities']['yahoo'] = $user['yim'];
            if (!empty(
    $user['msn']))
                
    $import['identities']['msn'] = $user['msn'];
    4. Go to the Xenforo Admin Control Panel -> Tools -> Import External Data.
    5. Choose SMF 2.0 and fill in all the database information where your converted SMF 2.0.1 database is residing.
    6. If you get some errors, click Import External Data again in the breadcrumb and choose continue.
    7. Import User groups, Forums, Users and the threads/posts (the last import takes a long time!).
    8. Done!

    This have at least worked for me, but if you try this, make sure you have everything backed up before doing something critical to your database! Good luck!
     
    Digital Doctor, Mikey, Andy.N and 2 others like this.
  2. Dismal Shadow

    Dismal Shadow Active Member

    I will need to try this again...
     
  3. KidCactus

    KidCactus Member

    Good luck. Let me know if you bump into any problems, chances are I bumped into the same issues before I got this to work.
     
  4. Andy.N

    Andy.N Well-Known Member

    Does this keep the passwords?
     
  5. KidCactus

    KidCactus Member

    Yes, it does. All my users could log in after the transition without any issues.
     
  6. Dismal Shadow

    Dismal Shadow Active Member

    I give up a while go, never was able to import, there was so many errors.
     
  7. Andy.N

    Andy.N Well-Known Member

    What is the problem with upgrading your SMF forum from 1.1.5 directly to 2.0 and then import?
     
  8. KidCactus

    KidCactus Member

    Sure you could, I just wanted to leave my original forum as it was.
     
  9. Robbo

    Robbo Well-Known Member

    I am considering finishing that importer so it works with 2.0.x and 1.1.x but testing takes so long and frustrates the hell out of me. If I could get some testers to work with me in real time then I would have a higher chance of wanting to get this done.
     

Share This Page