Reply to thread

In file src/XF/Import/Importer/vBulletin.php, query selects profilefieldid > 3.


[CODE=php]// ####################### STEP: CUSTOM USER FIELDS #####################


    public function stepUserFields(StepState $state)

    {

        $choiceLookUps = [];


        $profileFields = $this->sourceDb->fetchAllKeyed($this->prepareImportSql($this->prefix, "

            SELECT pf.*,

                phr1.text AS title,

                phr2.text AS description

            FROM profilefield AS pf

            INNER JOIN phrase AS phr1

                ON (phr1.varname = CONCAT('field', pf.profilefieldid, '_title'))

            INNER JOIN phrase AS phr2

                ON (phr2.varname = CONCAT('field', pf.profilefieldid, '_desc'))

            WHERE pf.profilefieldid > 3

        "), 'profilefieldid');

       

        ....

    }[/CODE]


Why ?


Indeed, we want to import fields with IDs < 3...


Back
Top Bottom