Convert from IPB 3.x?

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). :)
 
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
 
Top Bottom