Skip to:
Content

bbPress.org

Changeset 5516


Ignore:
Timestamp:
09/13/2014 01:56:43 AM (11 years ago)
Author:
netweb
Message:

Include 'default' forum status and forum type meta keys in importers for databases that do not support these values.

  • Forum status: _bbp_status = open meta
  • Forum type: _bbp_forum_type = forum

Props netweb. See #2647

Location:
trunk/src/includes/admin/converters
Files:
17 edited

Legend:

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

    r5428 r5516  
    108108        );
    109109
     110        // Forum type (Set a default value 'forum', Stored in postmeta)
     111        $this->field_map[] = array(
     112            'to_type'      => 'forum',
     113            'to_fieldname' => '_bbp_forum_type',
     114            'default'      => 'forum'
     115        );
     116
    110117        // Forum status (Unlocked = 1 or Locked = 0, Stored in postmeta)
    111118        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/Drupal7.php

    r5428 r5516  
    8080        );
    8181
     82        // Forum type (Set a default value 'forum', Stored in postmeta)
     83        $this->field_map[] = array(
     84            'to_type'      => 'forum',
     85            'to_fieldname' => '_bbp_forum_type',
     86            'default'      => 'forum'
     87        );
     88
     89        // Forum status (Set a default value 'open', Stored in postmeta)
     90        $this->field_map[] = array(
     91            'to_type'      => 'forum',
     92            'to_fieldname' => '_bbp_status',
     93            'default'      => 'open'
     94        );
     95
    8296        // Forum dates.
    8397        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/FluxBB.php

    r5427 r5516  
    100100        );
    101101
     102        // Forum type (Set a default value 'forum', Stored in postmeta)
     103        $this->field_map[] = array(
     104            'to_type'      => 'forum',
     105            'to_fieldname' => '_bbp_forum_type',
     106            'default'      => 'forum'
     107        );
     108
     109        // Forum status (Set a default value 'open', Stored in postmeta)
     110        $this->field_map[] = array(
     111            'to_type'      => 'forum',
     112            'to_fieldname' => '_bbp_status',
     113            'default'      => 'open'
     114        );
     115
    102116        // Forum dates.
    103117        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/Invision.php

    r5428 r5516  
    115115            'to_fieldname'    => '_bbp_forum_type',
    116116            'callback_method' => 'callback_forum_type'
     117        );
     118
     119        // Forum status (Set a default value 'open', Stored in postmeta)
     120        $this->field_map[] = array(
     121            'to_type'      => 'forum',
     122            'to_fieldname' => '_bbp_status',
     123            'default'      => 'open'
    117124        );
    118125
  • trunk/src/includes/admin/converters/Mingle.php

    r5428 r5516  
    7373            'to_type'        => 'forum',
    7474            'to_fieldname'   => 'menu_order'
     75        );
     76
     77        // Forum type (Set a default value 'forum', Stored in postmeta)
     78        $this->field_map[] = array(
     79            'to_type'      => 'forum',
     80            'to_fieldname' => '_bbp_forum_type',
     81            'default'      => 'forum'
     82        );
     83
     84        // Forum status (Set a default value 'open', Stored in postmeta)
     85        $this->field_map[] = array(
     86            'to_type'      => 'forum',
     87            'to_fieldname' => '_bbp_status',
     88            'default'      => 'open'
    7589        );
    7690
  • trunk/src/includes/admin/converters/MyBB.php

    r5428 r5516  
    9292        );
    9393
     94        // Forum type (Set a default value 'forum', Stored in postmeta)
     95        $this->field_map[] = array(
     96            'to_type'      => 'forum',
     97            'to_fieldname' => '_bbp_forum_type',
     98            'default'      => 'forum'
     99        );
     100
     101        // Forum status (Set a default value 'open', Stored in postmeta)
     102        $this->field_map[] = array(
     103            'to_type'      => 'forum',
     104            'to_fieldname' => '_bbp_status',
     105            'default'      => 'open'
     106        );
     107
    94108        // Forum dates.
    95109        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/PHPWind.php

    r5428 r5516  
    133133        );
    134134
     135        // Forum status (Set a default value 'open', Stored in postmeta)
     136        $this->field_map[] = array(
     137            'to_type'      => 'forum',
     138            'to_fieldname' => '_bbp_status',
     139            'default'      => 'open'
     140        );
    135141        // Forum dates.
    136142        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/Phorum.php

    r5428 r5516  
    101101        );
    102102
     103        // Forum status (Set a default value 'open', Stored in postmeta)
     104        $this->field_map[] = array(
     105            'to_type'      => 'forum',
     106            'to_fieldname' => '_bbp_status',
     107            'default'      => 'open'
     108        );
     109
    103110        // Forum dates.
    104111        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/PunBB.php

    r5427 r5516  
    100100        );
    101101
     102        // Forum type (Set a default value 'forum', Stored in postmeta)
     103        $this->field_map[] = array(
     104            'to_type'      => 'forum',
     105            'to_fieldname' => '_bbp_forum_type',
     106            'default'      => 'forum'
     107        );
     108
     109        // Forum status (Set a default value 'open', Stored in postmeta)
     110        $this->field_map[] = array(
     111            'to_type'      => 'forum',
     112            'to_fieldname' => '_bbp_status',
     113            'default'      => 'open'
     114        );
     115
    102116        // Forum dates.
    103117        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/SMF.php

    r5428 r5516  
    106106            'to_type'        => 'forum',
    107107            'to_fieldname'   => 'menu_order'
     108        );
     109
     110        // Forum type (Set a default value 'forum', Stored in postmeta)
     111        $this->field_map[] = array(
     112            'to_type'      => 'forum',
     113            'to_fieldname' => '_bbp_forum_type',
     114            'default'      => 'forum'
     115        );
     116
     117        // Forum status (Set a default value 'open', Stored in postmeta)
     118        $this->field_map[] = array(
     119            'to_type'      => 'forum',
     120            'to_fieldname' => '_bbp_status',
     121            'default'      => 'open'
    108122        );
    109123
  • trunk/src/includes/admin/converters/SimplePress5.php

    r5428 r5516  
    106106            'to_type'        => 'forum',
    107107            'to_fieldname'   => 'menu_order'
     108        );
     109
     110        // Forum type (Set a default value 'forum', Stored in postmeta)
     111        $this->field_map[] = array(
     112            'to_type'      => 'forum',
     113            'to_fieldname' => '_bbp_forum_type',
     114            'default'      => 'forum'
     115        );
     116
     117        // Forum status (Set a default value 'open', Stored in postmeta)
     118        $this->field_map[] = array(
     119            'to_type'      => 'forum',
     120            'to_fieldname' => '_bbp_status',
     121            'default'      => 'open'
    108122        );
    109123
  • trunk/src/includes/admin/converters/Vanilla.php

    r5428 r5516  
    108108            'to_type'        => 'forum',
    109109            'to_fieldname'   => 'menu_order'
     110        );
     111
     112        // Forum type (Set a default value 'forum', Stored in postmeta)
     113        $this->field_map[] = array(
     114            'to_type'      => 'forum',
     115            'to_fieldname' => '_bbp_forum_type',
     116            'default'      => 'forum'
     117        );
     118
     119        // Forum status (Set a default value 'open', Stored in postmeta)
     120        $this->field_map[] = array(
     121            'to_type'      => 'forum',
     122            'to_fieldname' => '_bbp_status',
     123            'default'      => 'open'
    110124        );
    111125
  • trunk/src/includes/admin/converters/XMB.php

    r5428 r5516  
    117117        );
    118118
     119        // Forum status (Set a default value 'open', Stored in postmeta)
     120        $this->field_map[] = array(
     121            'to_type'      => 'forum',
     122            'to_fieldname' => '_bbp_status',
     123            'default'      => 'open'
     124        );
     125
    119126        // Forum dates.
    120127        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/bbPress1.php

    r5428 r5516  
    120120        );
    121121
     122        // Forum status (Set a default value 'open', Stored in postmeta)
     123        $this->field_map[] = array(
     124            'to_type'      => 'forum',
     125            'to_fieldname' => '_bbp_status',
     126            'default'      => 'open'
     127        );
     128
    122129        // Forum dates.
    123130        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/e107v1.php

    r5428 r5516  
    115115            'to_fieldname'    => '_bbp_forum_type',
    116116            'callback_method' => 'callback_forum_type'
     117        );
     118
     119        // Forum status (Set a default value 'open', Stored in postmeta)
     120        $this->field_map[] = array(
     121            'to_type'      => 'forum',
     122            'to_fieldname' => '_bbp_status',
     123            'default'      => 'open'
    117124        );
    118125
  • trunk/src/includes/admin/converters/vBulletin.php

    r5428 r5516  
    115115            'to_fieldname'    => '_bbp_forum_type',
    116116            'callback_method' => 'callback_forum_type'
     117        );
     118
     119        // Forum status (Set a default value 'open', Stored in postmeta)
     120        $this->field_map[] = array(
     121            'to_type'      => 'forum',
     122            'to_fieldname' => '_bbp_status',
     123            'default'      => 'open'
    117124        );
    118125
  • trunk/src/includes/admin/converters/vBulletin3.php

    r5428 r5516  
    115115            'to_fieldname'    => '_bbp_forum_type',
    116116            'callback_method' => 'callback_forum_type'
     117        );
     118
     119        // Forum status (Set a default value 'open', Stored in postmeta)
     120        $this->field_map[] = array(
     121            'to_type'      => 'forum',
     122            'to_fieldname' => '_bbp_status',
     123            'default'      => 'open'
    117124        );
    118125
Note: See TracChangeset for help on using the changeset viewer.