Skip to:
Content

bbPress.org

Changeset 5551


Ignore:
Timestamp:
10/11/2014 12:55:36 AM (10 years ago)
Author:
netweb
Message:

Include anonymous topic and reply import support in Phorum (Phorum.php) importer
Props netweb. Fixes #2703

File:
1 edited

Legend:

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

    r5530 r5551  
    177177        );
    178178
     179        // Topic author name (Stored in postmeta as _bbp_anonymous_name)
     180        $this->field_map[] = array(
     181            'from_tablename' => 'messages',
     182            'from_fieldname' => 'author',
     183            'to_type'        => 'topic',
     184            'to_fieldname'   => '_bbp_old_topic_author_name_id'
     185        );
     186
     187        // Is the topic anonymous (Stored in postmeta)
     188        $this->field_map[] = array(
     189            'from_tablename'  => 'messages',
     190            'from_fieldname'  => 'user_id',
     191            'to_type'         => 'topic',
     192            'to_fieldname'    => '_bbp_old_is_topic_anonymous_id',
     193            'callback_method' => 'callback_check_anonymous'
     194        );
     195
    179196        // Topic Author ip (Stored in postmeta)
    180197        $this->field_map[] = array(
     
    316333            'to_fieldname'    => 'post_author',
    317334            'callback_method' => 'callback_userid'
     335        );
     336
     337        // Reply author name (Stored in postmeta as _bbp_anonymous_name)
     338        $this->field_map[] = array(
     339            'from_tablename'  => 'messages',
     340            'from_fieldname'  => 'author',
     341            'to_type'         => 'reply',
     342            'to_fieldname'   => '_bbp_old_reply_author_name_id'
     343        );
     344
     345        // Is the reply anonymous  (Stored in postmeta)
     346        $this->field_map[] = array(
     347            'from_tablename'  => 'messages',
     348            'from_fieldname'  => 'user_id',
     349            'to_type'         => 'reply',
     350            'to_fieldname'    => '_bbp_old_is_reply_anonymous_id',
     351            'callback_method' => 'callback_check_anonymous'
    318352        );
    319353
Note: See TracChangeset for help on using the changeset viewer.