Skip to:
Content

bbPress.org

Changeset 5573


Ignore:
Timestamp:
11/22/2014 12:42:39 PM (11 years ago)
Author:
netweb
Message:

FluxBB importer: Include Subscribed Forums and Subscribed Topics
Props netweb. See #2668

File:
1 edited

Legend:

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

    r5530 r5573  
    136136        );
    137137
     138        /** Forum Subscriptions Section ***************************************/
     139
     140        // Subscribed forum ID (Stored in usermeta)
     141        $this->field_map[] = array(
     142            'from_tablename'  => 'forum_subscriptions',
     143            'from_fieldname'  => 'forum_id',
     144            'to_type'         => 'forum_subscriptions',
     145            'to_fieldname'    => '_bbp_forum_subscriptions'
     146        );
     147
     148        // Subscribed user ID (Stored in usermeta)
     149        $this->field_map[] = array(
     150            'from_tablename'  => 'forum_subscriptions',
     151            'from_fieldname'  => 'user_id',
     152            'to_type'         => 'forum_subscriptions',
     153            'to_fieldname'    => 'user_id',
     154            'callback_method' => 'callback_userid'
     155        );
     156
    138157        /** Topic Section *****************************************************/
    139158
     
    297316         * FluxBB v1.5.3 Forums do not support topic tags out of the box
    298317         */
     318
     319        /** Topic Subscriptions Section ***************************************/
     320
     321        // Subscribed topic ID (Stored in usermeta)
     322        $this->field_map[] = array(
     323            'from_tablename'  => 'topic_subscriptions',
     324            'from_fieldname'  => 'topic_id',
     325            'to_type'         => 'topic_subscriptions',
     326            'to_fieldname'    => '_bbp_subscriptions'
     327        );
     328
     329        // Subscribed user ID (Stored in usermeta)
     330        $this->field_map[] = array(
     331            'from_tablename'  => 'topic_subscriptions',
     332            'from_fieldname'  => 'user_id',
     333            'to_type'         => 'topic_subscriptions',
     334            'to_fieldname'    => 'user_id',
     335            'callback_method' => 'callback_userid'
     336        );
    299337
    300338        /** Reply Section *****************************************************/
Note: See TracChangeset for help on using the changeset viewer.