Skip to:
Content

bbPress.org

Changeset 5546


Ignore:
Timestamp:
10/10/2014 08:01:49 AM (7 years ago)
Author:
netweb
Message:

Include anonymous topic and reply import support in vBulletin 3 (vBulletin3.php) and vBulletin 4 (vBulletin.php) importers
Props netweb. See #2347

Location:
trunk/src/includes/admin/converters
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/vBulletin.php

    r5545 r5546  
    190190            'to_fieldname'    => 'post_author',
    191191            'callback_method' => 'callback_userid'
     192        );
     193
     194        // Topic author name (Stored in postmeta as _bbp_anonymous_name)
     195        $this->field_map[] = array(
     196            'from_tablename'  => 'thread',
     197            'from_fieldname'  => 'postusername',
     198            'to_type'         => 'topic',
     199            'to_fieldname'    => '_bbp_old_topic_author_name_id'
     200        );
     201
     202        // Is the topic anonymous (Stored in postmeta)
     203        $this->field_map[] = array(
     204            'from_tablename'  => 'thread',
     205            'from_fieldname'  => 'postuserid',
     206            'to_type'         => 'topic',
     207            'to_fieldname'    => '_bbp_old_is_topic_anonymous_id',
     208            'callback_method' => 'callback_check_anonymous'
    192209        );
    193210
     
    386403        );
    387404
     405        // Reply author name (Stored in postmeta as _bbp_anonymous_name)
     406        $this->field_map[] = array(
     407            'from_tablename'  => 'post',
     408            'from_fieldname'  => 'username',
     409            'to_type'         => 'reply',
     410            'to_fieldname'    => '_bbp_old_reply_author_name_id'
     411        );
     412
     413        // Is the reply anonymous (Stored in postmeta)
     414        $this->field_map[] = array(
     415            'from_tablename'  => 'post',
     416            'from_fieldname'  => 'userid',
     417            'to_type'         => 'reply',
     418            'to_fieldname'    => '_bbp_old_is_reply_anonymous_id',
     419            'callback_method' => 'callback_check_anonymous'
     420        );
     421
    388422        // Reply content.
    389423        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/vBulletin3.php

    r5545 r5546  
    190190            'to_fieldname'    => 'post_author',
    191191            'callback_method' => 'callback_userid'
     192        );
     193
     194        // Topic author name (Stored in postmeta as _bbp_anonymous_name)
     195        $this->field_map[] = array(
     196            'from_tablename'  => 'thread',
     197            'from_fieldname'  => 'postusername',
     198            'to_type'         => 'topic',
     199            'to_fieldname'    => '_bbp_old_topic_author_name_id'
     200        );
     201
     202        // Is the topic anonymous (Stored in postmeta)
     203        $this->field_map[] = array(
     204            'from_tablename'  => 'thread',
     205            'from_fieldname'  => 'postuserid',
     206            'to_type'         => 'topic',
     207            'to_fieldname'    => '_bbp_old_is_topic_anonymous_id',
     208            'callback_method' => 'callback_check_anonymous'
    192209        );
    193210
     
    386403        );
    387404
     405        // Reply author name (Stored in postmeta as _bbp_anonymous_name)
     406        $this->field_map[] = array(
     407            'from_tablename'  => 'post',
     408            'from_fieldname'  => 'username',
     409            'to_type'         => 'reply',
     410            'to_fieldname'    => '_bbp_old_reply_author_name_id'
     411        );
     412
     413        // Is the reply anonymous (Stored in postmeta)
     414        $this->field_map[] = array(
     415            'from_tablename'  => 'post',
     416            'from_fieldname'  => 'userid',
     417            'to_type'         => 'reply',
     418            'to_fieldname'    => '_bbp_old_is_reply_anonymous_id',
     419            'callback_method' => 'callback_check_anonymous'
     420        );
     421
    388422        // Reply content.
    389423        $this->field_map[] = array(
Note: See TracChangeset for help on using the changeset viewer.