Skip to:
Content

bbPress.org

Changeset 5428


Ignore:
Timestamp:
07/07/2014 03:26:49 PM (11 years ago)
Author:
netweb
Message:

Updated forum parent ID importing method for compatibility when wp_bbconverter_translator database sync_table exists.

  • Renamed forum parent meta key _bbp_forum_parent_id to _bbp_old_forum_parent_id for importers that support forum parents
  • Improvements for future iterations of post import meta data manipulation/enhancements with reference only imported post meta keys including a common _old prefix as part of the _bbp prefix

See #2650

Location:
trunk/src/includes/admin
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converter.php

    r5427 r5428  
    10621062
    10631063        if ( !empty( $this->sync_table ) ) {
    1064             $query = 'SELECT value_id, meta_value FROM ' . $this->sync_table_name . ' WHERE meta_key = "_bbp_forum_parent_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;
     1064            $query = 'SELECT value_id, meta_value FROM '            . $this->sync_table_name . ' WHERE meta_key = "_bbp_old_forum_parent_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;
    10651065        } else {
    1066             $query = 'SELECT post_id AS value_id, meta_value FROM ' . $this->wpdb->postmeta . ' WHERE meta_key = "_bbp_forum_parent_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;
     1066            $query = 'SELECT post_id AS value_id, meta_value FROM ' . $this->wpdb->postmeta  . ' WHERE meta_key = "_bbp_old_forum_parent_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;
    10671067        }
    10681068
  • trunk/src/includes/admin/converters/AEF.php

    r5427 r5428  
    3939            'from_fieldname'  => 'par_board_id',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/Drupal7.php

    r5427 r5428  
    4343            'from_expression' => 'LEFT JOIN taxonomy_vocabulary AS taxonomy_vocabulary USING (vid) WHERE module = "forum"',
    4444            'to_type'         => 'forum',
    45             'to_fieldname'    => '_bbp_forum_parent_id'
     45            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4646        );
    4747
  • trunk/src/includes/admin/converters/Example.php

    r5427 r5428  
    4141            'from_fieldname'  => 'the_parent_id',
    4242            'to_type'         => 'forum',
    43             'to_fieldname'    => '_bbp_forum_parent_id'
     43            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4444        );
    4545
  • trunk/src/includes/admin/converters/Invision.php

    r5427 r5428  
    3939            'from_fieldname'  => 'parent_id',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/Kunena1.php

    r5426 r5428  
    3939            'from_fieldname' => 'parent',
    4040            'to_type'        => 'forum',
    41             'to_fieldname'   => '_bbp_forum_parent_id'
     41            'to_fieldname'   => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/Kunena2.php

    r5426 r5428  
    4040            'from_fieldname'  => 'parent_id',
    4141            'to_type'         => 'forum',
    42             'to_fieldname'    => '_bbp_forum_parent_id'
     42            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4343        );
    4444
  • trunk/src/includes/admin/converters/Kunena3.php

    r5426 r5428  
    3939            'from_fieldname'  => 'parent_id',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/Mingle.php

    r5427 r5428  
    3939            'from_fieldname' => 'parent_id',
    4040            'to_type'        => 'forum',
    41             'to_fieldname'   => '_bbp_forum_parent_id'
     41            'to_fieldname'   => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/MyBB.php

    r5427 r5428  
    3939            'from_fieldname'  => 'pid',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/PHPFox3.php

    r5427 r5428  
    3939            'from_fieldname'  => 'parent_id',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/PHPWind.php

    r5426 r5428  
    3939            'from_fieldname'  => 'parentid',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/Phorum.php

    r5426 r5428  
    3939            'from_fieldname'  => 'parent_id',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/SMF.php

    r5427 r5428  
    3939            'from_fieldname'  => 'id_parent',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/SimplePress5.php

    r5427 r5428  
    3939            'from_fieldname' => 'parent',
    4040            'to_type'        => 'forum',
    41             'to_fieldname'   => '_bbp_forum_parent_id'
     41            'to_fieldname'   => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/Vanilla.php

    r5426 r5428  
    4040            'from_fieldname'  => 'ParentCategoryID',
    4141            'to_type'         => 'forum',
    42             'to_fieldname'    => '_bbp_forum_parent_id',
     42            'to_fieldname'    => '_bbp_old_forum_parent_id',
    4343            'callback_method' => 'callback_forum_parent'
    4444        );
  • trunk/src/includes/admin/converters/XMB.php

    r5427 r5428  
    3939            'from_fieldname'  => 'fup',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/XenForo.php

    r5427 r5428  
    3939            'from_fieldname'  => 'parent_node_id',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/bbPress1.php

    r5427 r5428  
    3939            'from_fieldname' => 'forum_parent',
    4040            'to_type'        => 'forum',
    41             'to_fieldname'   => '_bbp_forum_parent_id'
     41            'to_fieldname'   => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/e107v1.php

    r5427 r5428  
    3939            'from_fieldname'  => 'forum_parent',
    4040            'to_type'         => 'forum',
    41             'to_fieldname'    => '_bbp_forum_parent_id'
     41            'to_fieldname'    => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/phpBB.php

    r5427 r5428  
    3939            'from_fieldname' => 'parent_id',
    4040            'to_type'        => 'forum',
    41             'to_fieldname'   => '_bbp_forum_parent_id'
     41            'to_fieldname'   => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/vBulletin.php

    r5427 r5428  
    3939            'from_fieldname' => 'parentid',
    4040            'to_type'        => 'forum',
    41             'to_fieldname'   => '_bbp_forum_parent_id'
     41            'to_fieldname'   => '_bbp_old_forum_parent_id'
    4242        );
    4343
  • trunk/src/includes/admin/converters/vBulletin3.php

    r5427 r5428  
    3939            'from_fieldname' => 'parentid',
    4040            'to_type'        => 'forum',
    41             'to_fieldname'   => '_bbp_forum_parent_id'
     41            'to_fieldname'   => '_bbp_old_forum_parent_id'
    4242        );
    4343
Note: See TracChangeset for help on using the changeset viewer.