1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained PunBB Importer 1.40

PunBB 1.2/1.3/1.4 Importer

  1. Benjy

    Benjy Well-Known Member

  2. Van Damm

    Van Damm Member

    Your importer stops all other custom importers from displaying.
    You need to update the CodeInMotion_Model_Import_PunBB::__construct() method to call its parent:
    PHP:
    public function __construct()
    {
        
    parent::__construct();
        
    self::$extraImporters[] = 'CodeInMotion_Importer_PunBB';
    }
    This way it will work as intended.
     
  3. Benjy

    Benjy Well-Known Member

  4. Benjy

    Benjy Well-Known Member

    Fixed in 1.31. Thanks!
     
  5. Romchik®

    Romchik® Well-Known Member

    This plugin still has a problem with Cyrillic characters? Members say that instead of the Russian text is imported empty.
     
  6. Benjy

    Benjy Well-Known Member

    When was it reported this plugin has this problem? Is there a demo somewhere?
     
  7. Romchik®

    Romchik® Well-Known Member

    It was reported not here.

    ok, this user have resolved the problem with help of this topics.
     
  8. Benjy

    Benjy Well-Known Member

    The importer uses the same UTF8 function as XenForo, there is no custom character handling.
     
  9. Rodolfo

    Rodolfo Member

    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']);
    2. The import avatars can be fixed by changing this query:
    PHP:
                    SELECT id
                    FROM 
    ' . $prefix . 'users
                    WHERE use_avatar 
    1
                        
    AND id ' . $sDb->quote($start) . '
                    
    ORDER BY id
    To this:
    PHP:
                    SELECT id
                    FROM 
    ' . $prefix . 'users
                    WHERE id 
    ' . $sDb->quote($start) . '
                    
    ORDER BY id
    3. The bans import also doesn't work, to fix it you must change this:
    PHP:
    if (!$sDb->fetchOne('SELECT user_id FROM xf_user_ban WHERE user_id = ' $bannedId))
    To this:
    PHP:
    if (!$this->_db->fetchOne('SELECT user_id FROM xf_user_ban WHERE user_id = ' $bannedId))
    Hope it helps.
     
    Benjy and yavuz like this.
  10. kankan

    kankan Active Member

    Great function thanks

    Nicolas
     
  11. kankan

    kankan Active Member

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

    Benjy Well-Known Member

    Best solution if you ran the import on a fresh XF install is to completely reinstall (drop db).
     
  13. kankan

    kankan Active Member

    If i run a fresh install, i will need to rebuild all the addon and confs.
    I was thinking about empty all the tables used by your script for a clean second import.
    Which base to i have to clean ?

    Merci ;)
     
  14. Benjy

    Benjy Well-Known Member

    I still think reinstalling is the best solution. WHat you could do is install a fresh XF, configure it, put your modules then do a backup of this. Then you import and if anything goes wrong, you can restore your backup.
     
  15. kankan

    kankan Active Member

    All right, just proceeded in that way ;)
     
  16. Benjy

    Benjy Well-Known Member

    This won't make it in the "official" release because PunBB 1.2 uses windows-1252 as default encoding.
    As for the rest, thank you very much, I'm updating the importer.
     
  17. Benjy

    Benjy Well-Known Member

    Benjy updated PunBB Importer with a new update entry:

    Bug fixes

    Read the rest of this update entry...
     
  18. Wdes

    Wdes Member

    Nice Add
    Working perfectly

    A question about. Have you got devellopped an other add for a puntal portail ?
    Is it possible to convert images link to a file in the discussion ?
    Thanks for this importer ;)
     
  19. kankan

    kankan Active Member

    Hi Wdes, i used to have a PunBB and puntal as yours
    and used this addon without issues.
    Regarding the portal system you can have a look at those two portal system ressource for Xenforo : XenPorta 2 and CTA Featured Threads.
    I am using XenPorta on my current setup : http://www.forum-des-portables-asus.fr
     
  20. Wdes

    Wdes Member

    Sorry for confusion
    I have asked about a migration ;) not for a new one (migrate a Punbbportal to a new one ;) like XenPortal, database .... )
    I have found XenPortal too

    Thanks for your reply
     

Share This Page