Skip to:
Content

bbPress.org


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

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

File:
1 edited

Legend:

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

    r5568 r5579  
    169169        );
    170170
     171        /** Forum Subscriptions Section ***************************************/
     172
     173        // Subscribed forum ID (Stored in usermeta)
     174        $this->field_map[] = array(
     175            'from_tablename'  => 'forum_watch',
     176            'from_fieldname'  => 'node_id',
     177            'to_type'         => 'forum_subscriptions',
     178            'to_fieldname'    => '_bbp_forum_subscriptions'
     179        );
     180
     181        // Subscribed user ID (Stored in usermeta)
     182        $this->field_map[] = array(
     183            'from_tablename'  => 'forum_watch',
     184            'from_fieldname'  => 'user_id',
     185            'to_type'         => 'forum_subscriptions',
     186            'to_fieldname'    => 'user_id',
     187            'callback_method' => 'callback_userid'
     188        );
     189
    171190        /** Topic Section *****************************************************/
    172191
     
    314333         * XenForo Forums do not support topic tags out of the box
    315334         */
     335
     336        /** Topic Subscriptions Section ***************************************/
     337
     338        // Subscribed topic ID (Stored in usermeta)
     339        $this->field_map[] = array(
     340            'from_tablename'  => 'thread_watch',
     341            'from_fieldname'  => 'thread_id',
     342            'to_type'         => 'topic_subscriptions',
     343            'to_fieldname'    => '_bbp_subscriptions'
     344        );
     345
     346        // Subscribed user ID (Stored in usermeta)
     347        $this->field_map[] = array(
     348            'from_tablename'  => 'thread_watch',
     349            'from_fieldname'  => 'user_id',
     350            'to_type'         => 'topic_subscriptions',
     351            'to_fieldname'    => 'user_id',
     352            'callback_method' => 'callback_userid'
     353        );
    316354
    317355        /** Reply Section *****************************************************/
Note: See TracChangeset for help on using the changeset viewer.