Add search field in BxBaseSearchProfile.php

Hi there,

in  templates/base/ BxBaseSearchProfile.php

(check out the red line)

 

class BxBaseSearchProfile extends BxBaseSearchResultText {
 var $aCurrent = array(
  'name' => 'profile',
  'title' => '_People',
  'table' => 'Profiles',
  'ownFields' => array('ID', 'NickName', 'NickName', 'Headline', 'DescriptionMe', 'Country', 'City', 'Tags', 'DateReg', 'DateOfBirth', 'Sex', 'Couple'),
  'searchFields' => array('NickName', 'Headline', 'DescriptionMe', 'City', 'Tags'),
  'restriction' => array(
   'activeStatus' => array('value'=>'Active', 'field'=>'Status', 'operator'=>'='),
  ),
  'paginate' => array('perPage' => 10, 'page' => 1, 'totalNum' => 10, 'totalPages' => 1),
  'sorting' => 'last'
 );

the red line determine fields to search for profiles (when you're using the keyword search, the one in the nav bar menu)
I would add another search field I made.

I alredy tried by myself but nothing...  maybe i have to add a report in mysql?

Anyone can help?

Quote · 19 Jan 2011

When I try to add a new field in     'searchFields'

I have an error in inc/classes/BxDolSearch.php.......

 

Any ideas??

Quote · 19 Jan 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.