• 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?

Adam Howard

Well-known member
#6
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:

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). :)
 
#14
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
#15
#17
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
#18
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.