For those who want to include the global announcements try this fix, I haven't tried it in actual import but it should work.
Open file library\XenForo\Importer\PhpBb3.php
Find:
PHP:
// pull threads from things we actually imported as forums
$threads = $sDb->fetchAll($sDb->limit(
'
SELECT topics.*,
IF(users.username IS NOT NULL, users.username, topics.topic_first_poster_name) AS username
FROM ' . $prefix . 'topics AS topics FORCE INDEX (PRIMARY)
LEFT JOIN ' . $prefix . 'users AS users ON (topics.topic_poster = users.user_id)
INNER JOIN ' . $prefix . 'forums AS forums ON
(topics.forum_id = forums.forum_id)
WHERE topics.topic_id >= ' . $sDb->quote($start) . '
AND topics.topic_status <> 2 # redirect
ORDER BY topics.topic_id
', $options['limit']
));
Replace with
PHP:
// pull threads from things we actually imported as forums
$threads = $sDb->fetchAll($sDb->limit(
'
SELECT topics.*,
IF(users.username IS NOT NULL, users.username, topics.topic_first_poster_name) AS username
FROM ' . $prefix . 'topics AS topics FORCE INDEX (PRIMARY)
LEFT JOIN ' . $prefix . 'users AS users ON (topics.topic_poster = users.user_id)
INNER JOIN ' . $prefix . 'forums AS forums ON
(topics.forum_id = forums.forum_id)
WHERE topics.topic_id >= ' . $sDb->quote($start) . '
AND topics.topic_status <> 2 # redirect
ORDER BY topics.topic_id
', $options['limit']
));
// Fix: Include global announcements while importing
// Url: https://xenforo.com/community/threads/phpbb-import-problem.58093/
$announcements_forum_id = 3;
$g_threads = $sDb->fetchAll($sDb->limit(
'
SELECT topics.*,
IF(users.username IS NOT NULL, users.username, topics.topic_first_poster_name) AS username,
' . $sDb->quote($announcements_forum_id) . ' AS forum_id
FROM ' . $prefix . 'topics AS topics FORCE INDEX (PRIMARY)
LEFT JOIN ' . $prefix . 'users AS users ON (topics.topic_poster = users.user_id)
WHERE topics.topic_id >= ' . $sDb->quote($start) . '
AND topics.topic_status <> 2 # redirect
AND topics.forum_id = 0
ORDER BY topics.topic_id
', $options['limit']
));
$threads = array_merge($threads, $g_threads);
// Url: https://xenforo.com/community/threads/phpbb-import-problem.58093/
// Fix: Include global announcements while importing
Someone who is has better knowledge than me could probably do magic and make them one query.
Be sure to change the value 3 to your forum id where you usually post announcements.
PHP:
$announcements_forum_id = 3;
So if your usual announcements forum id id 18 then replace
PHP:
$announcements_forum_id = 3;
with
PHP:
$announcements_forum_id = 18;