1ef501b557 (@1ef501b557)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • 1ef501b557
    Participant

    @1ef501b557

    you can use this code :
    */
    class phpBB extends BBP_Converter_Base {

    /**
    * Main Constructor
    *
    */
    public function __construct() {
    parent::__construct();
    }

    /**
    * Sets up the field mappings
    */
    public function setup_globals() {

    // Setup smiley URL & path
    $this->bbcode_parser_properties = array(
    ‘smiley_url’ => false,
    ‘smiley_dir’ => false
    );

    /** Forum Section *****************************************************/

    // Old forum id (Stored in postmeta)
    $this->field_map[] = array(
    ‘from_tablename’ => ‘forums’,
    ‘from_fieldname’ => ‘forum_id’,
    ‘to_type’ => ‘forum’,
    ‘to_fieldname’ => ‘_bbp_old_forum_id’
    );

    // Forum parent id (If no parent, then 0, Stored in postmeta)
    $this->field_map[] = array(
    ‘from_tablename’ => ‘forums’,
    ‘from_fieldname’ => ‘parent_id’,
    ‘to_type’ => ‘forum’,
    ‘to_fieldname’ => ‘_bbp_old_forum_parent_id’
    );

    // Forum topic count (Stored in postmeta)
    $this->field_map[] = array(
    ‘from_tablename’ => ‘forums’,
    ‘from_fieldname’ => ‘forum_topics’,
    ‘to_type’ => ‘forum’,
    ‘to_fieldname’ => ‘_bbp_topic_count’
    );


    1ef501b557
    Participant

    @1ef501b557

    I got around this by creating a new admin/founder account and downgrading all of the staff to standard accounts so that they could be imported. how can i do this ?

Viewing 2 replies - 1 through 2 (of 2 total)