Skip to:
Content

bbPress.org

Changeset 5528


Ignore:
Timestamp:
09/20/2014 05:17:55 AM (11 years ago)
Author:
netweb
Message:

phpBB: Don't import phpBB search engine bot/crawler user accounts, e.g Google Bot, Bing Bot

File:
1 edited

Legend:

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

    r5526 r5528  
    411411
    412412        // Store old User id (Stored in usermeta)
    413         $this->field_map[] = array(
    414             'from_tablename' => 'users',
    415             'from_fieldname' => 'user_id',
    416             'to_type'        => 'user',
    417             'to_fieldname'   => '_bbp_user_id'
     413        // Don't import users with id 2, these are phpBB bot/crawler accounts
     414        $this->field_map[] = array(
     415            'from_tablename'  => 'users',
     416            'from_fieldname'  => 'user_id',
     417            'from_expression' => 'WHERE user_type !=2',
     418            'to_type'         => 'user',
     419            'to_fieldname'    => '_bbp_user_id'
    418420        );
    419421
Note: See TracChangeset for help on using the changeset viewer.