Convert from IPB 3.x?

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.
 

Adam Howard

Well-known member
Will this tool work for IPB 3.4?
Yes, but you need to make a small code change

Here is a code fix:

library/XenForo/Importer/IPBoard.php

Replace the red code:

Rich (BB 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:

Rich (BB 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). :)
 

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.
 

AWS

Well-known member
The code fix was if for some reason the post_title column was missing.
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.
 

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
 

Adam Howard

Well-known member

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....
 

Brogan

XenForo moderator
Staff 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....
Well first you need to buy a license or associate your account.
Then you can post in the support forum.
 
Top