public function __construct()
{
parent::__construct();
self::$extraImporters[] = 'CodeInMotion_Importer_PunBB';
}
Corrected a bug where the importer was stopping all other custom importers from displaying (thanks Van Damm)
Fixed in 1.31. Thanks!Your importer stops all other custom importers from displaying.
When was it reported this plugin has this problem? Is there a demo somewhere?This plugin still has a problem with Cyrillic characters? Members say that instead of the Russian text is imported empty.
$this->_sourceDb->query('SET CHARACTER SET utf8');
$this->_prefix = preg_replace('/[^a-z0-9_]/i', '', $config['db']['prefix']);
SELECT id
FROM ' . $prefix . 'users
WHERE use_avatar = 1
AND id > ' . $sDb->quote($start) . '
ORDER BY id
SELECT id
FROM ' . $prefix . 'users
WHERE id > ' . $sDb->quote($start) . '
ORDER BY id
if (!$sDb->fetchOne('SELECT user_id FROM xf_user_ban WHERE user_id = ' . $bannedId))
if (!$this->_db->fetchOne('SELECT user_id FROM xf_user_ban WHERE user_id = ' . $bannedId))
Best solution if you ran the import on a fresh XF install is to completely reinstall (drop db).Just a question : how do i have to proceed to re-run a complete import ?
Do i have to empty some tables before ? Which ones ?
Regards
Nicolas
This won't make it in the "official" release because PunBB 1.2 uses windows-1252 as default encoding.I've found and fix 3 errors in this resource. All of them on importer/PunBB.php
1. The ????? chars can be fixed by adding this:
PHP:$this->_sourceDb->query('SET CHARACTER SET utf8');
Just before:
PHP:$this->_prefix = preg_replace('/[^a-z0-9_]/i', '', $config['db']['prefix']);
IMPORTANT: starting from this version, IDs WON'T be retained for categories and forums. Them being in two separate tables with possibly identical IDs messed up some imports. Other IDs will be kept just are fine.
+ added a conditional to set source DB charset with PunBB 1.3 (props Rodolfo)
* fixed avatars and bans imports (props Rodolfo)
* fixed a bug with...
We use essential cookies to make this site work, and optional cookies to enhance your experience.