Skip to:
Content

bbPress.org

Changeset 5577


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

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

File:
1 edited

Legend:

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

    r5546 r5577  
    144144                        'to_fieldname' => 'post_modified_gmt',
    145145                        'default'      => date( 'Y-m-d H:i:s' )
     146                );
     147
     148                /** Forum Subscriptions Section ***************************************/
     149
     150                // Subscribed forum ID (Stored in usermeta)
     151                $this->field_map[] = array(
     152                        'from_tablename'  => 'subscribeforum',
     153                        'from_fieldname'  => 'forumid',
     154                        'to_type'         => 'forum_subscriptions',
     155                        'to_fieldname'    => '_bbp_forum_subscriptions'
     156                );
     157
     158                // Subscribed user ID (Stored in usermeta)
     159                $this->field_map[] = array(
     160                        'from_tablename'  => 'subscribeforum',
     161                        'from_fieldname'  => 'userid',
     162                        'to_type'         => 'forum_subscriptions',
     163                        'to_fieldname'    => 'user_id',
     164                        'callback_method' => 'callback_userid'
    146165                );
    147166
     
    357376                );
    358377
     378                /** Topic Subscriptions Section ***************************************/
     379
     380                // Subscribed topic ID (Stored in usermeta)
     381                $this->field_map[] = array(
     382                        'from_tablename'  => 'subscribethread',
     383                        'from_fieldname'  => 'threadid',
     384                        'to_type'         => 'topic_subscriptions',
     385                        'to_fieldname'    => '_bbp_subscriptions'
     386                );
     387
     388                // Subscribed user ID (Stored in usermeta)
     389                $this->field_map[] = array(
     390                        'from_tablename'  => 'subscribethread',
     391                        'from_fieldname'  => 'userid',
     392                        'to_type'         => 'topic_subscriptions',
     393                        'to_fieldname'    => 'user_id',
     394                        'callback_method' => 'callback_userid'
     395                );
     396
    359397                /** Reply Section *****************************************************/
    360398
Note: See TracChangeset for help on using the changeset viewer.