1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Convert from IPB 3.x?

Discussion in 'XenForo Pre-Sales Questions' started by bobjones, Dec 10, 2012.

  1. bobjones

    bobjones Member

    Is there a conversion tool for this?
     
  2. borbole

    borbole Well-Known Member

    Yes, for Ipb 3.1x and 3.2x there is a built in conversion tool. What version of Ipb do you have btw?
     
    Jake Bunce and Chris D like this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    A converter for IPB 3.1 and 3.2 is built in to the XenForo core.

    You can access it from Admin CP > Tools > Import External Data.
     
    Jake Bunce likes this.
  4. bobjones

    bobjones Member

    Thanks!
     
  5. bobjones

    bobjones Member

    Will this tool work for IPB 3.4?
     
  6. Adam Howard

    Adam Howard Well-Known Member

    Yes, but you need to make a small code change

    Here is a code fix:

    library/XenForo/Importer/IPBoard.php

    Replace the red code:

    Code:
    foreach ($posts AS $i => $post)
    {
    if (!is_null($post['post_title']) && $post['post_title'] !== '' && !preg_match($threadTitleRegex, $post['post_title']))
    {
    $post['post'] = '[b]' . htmlspecialchars_decode($post['post_title']) . "[/b]\n\n" . ltrim($post['post']);
    }
     
    $post['post'] = $this->_parseIPBoardBbCode($post['post']);
     
    if (trim($post['author_name']) === '')
    {
    $post['username'] = 'Guest';
    }
     
    //echo "<div>Import message $post[pid]<br /><textarea rows=4 cols=60>" . $this->_strToHex($post['post']) . "</textarea></div>";
    
    Like so:

    Code:
    foreach ($posts AS $i => $post)
    {
    if (isset($post['post_title']) && $post['post_title'] !== '' && !preg_match($threadTitleRegex, $post['post_title']))
    {
    $post['post'] = '[b]' . htmlspecialchars_decode($post['post_title']) . "[/b]\n\n" . ltrim($post['post']);
    }
     
    $post['post'] = $this->_parseIPBoardBbCode($post['post']);
     
    if (trim($post['author_name']) === '')
    {
    $post['username'] = 'Guest';
    }
     
    //echo "<div>Import message $post[pid]<br /><textarea rows=4 cols=60>" . $this->_strToHex($post['post']) . "</textarea></div>";
    
    That's it. From there on out it works as it should.

    If you don't feel comfortable making that small change there or dozens of people here who would be willing to do it for you (easily). :)
     
    Jake Bunce likes this.
  7. AWS

    AWS Well-Known Member

    You don't need the code fix. The converter worked for me without it on my conversion from 3.4.1.
     
  8. Slavik

    Slavik XenForo Moderator Staff Member

    The code fix was if for some reason the post_title column was missing.
     
    Adam Howard likes this.
  9. AWS

    AWS Well-Known Member

    If he was running 3.2 before going to 3.3 and then 3.4 then he'll have that table. It was removed in 3.3, but, left in the database on upgrades for backwards compatibility.
     
    Jake Bunce likes this.
  10. hellreturn

    hellreturn Active Member

    Can someone please point me to redirect scripts? For IPB 3.3.x to Xenforo?
     
  11. Chris D

    Chris D XenForo Developer Staff Member

    It's built in to XenForo.

    Admin CP > Tools > Import
     
    Jake Bunce likes this.
  12. hellreturn

    hellreturn Active Member

    Once conversion is completed how will be old topics redirected to new one? Do I need to upload any script or it will be done auto? Just want to make sure before I proceed.

    Thanks a bunch for help!
     
  13. AWS

    AWS Well-Known Member

    Jake Bunce, Adam Howard and Chris D like this.
  14. hellreturn

    hellreturn Active Member

    Can someone please tell me where to upload ips2xf.php, 301config.php? My IPB forum was under /public_html/ and my xenforo is also under same directory.

    None of my topics are being redirected. I was using 3.3.4 before conversion.

    Thanks
     
  15. Adam Howard

    Adam Howard Well-Known Member

    I would be very happy to help you. If you could please post your question here
    http://xenforo.com/community/forums/installation-upgrade-and-import-support.23/
     
    hellreturn likes this.
  16. hellreturn

    hellreturn Active Member

    Adam Howard likes this.
  17. owm3r.b0ss

    owm3r.b0ss New Member

    i have a problem, i have ipb 3.3.4 and i am unable to import it to xenforo(its inbuilt importer is for 3.2). Can anyone tell what i should do,code fix? Or anything else....
     
  18. Brogan

    Brogan XenForo Moderator Staff Member

    Well first you need to buy a license or associate your account.
    Then you can post in the support forum.
     
    hellreturn likes this.

Share This Page