Skip to:
Content

bbPress.org

Changeset 5575


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

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

File:
1 edited

Legend:

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

    r5550 r5575  
    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
     
    316335         * PunBB v1.4.2 Forums do not support topic tags out of the box
    317336         */
     337
     338        /** Topic Subscriptions Section ***************************************/
     339
     340        // Subscribed topic ID (Stored in usermeta)
     341        $this->field_map[] = array(
     342            'from_tablename'  => 'subscriptions',
     343            'from_fieldname'  => 'topic_id',
     344            'to_type'         => 'topic_subscriptions',
     345            'to_fieldname'    => '_bbp_subscriptions'
     346        );
     347
     348        // Subscribed user ID (Stored in usermeta)
     349        $this->field_map[] = array(
     350            'from_tablename'  => 'subscriptions',
     351            'from_fieldname'  => 'user_id',
     352            'to_type'         => 'topic_subscriptions',
     353            'to_fieldname'    => 'user_id',
     354            'callback_method' => 'callback_userid'
     355        );
    318356
    319357        /** Reply Section *****************************************************/
Note: See TracChangeset for help on using the changeset viewer.