Hi there,
I added a new field in Builder > Profile fields and I called it (e.x. color).
I have copied all the messages and stuff from the nickname field.
I have checked in profiles mysql table and everything looks ok.
Well,
In SearchKeyword.php we have this in line 155:
function getSearchForm () {
$aList = $GLOBALS['MySQL']->fromCache('sys_objects_search', '');
$aValues = array();
So I checked the 'sys_objects_search' table and I found the PHP pages that declare where searchkeyword module has to search in,
In my case template/base/script/BxBaseSearchProfiles.php
In BxBaseSearchProfiles.php
in line 13 we have this:
'searchFields' => array('NickName', 'Headline', 'DescriptionMe', 'City', 'Tags'),
So, I added my new Profile field in there in this way:
'searchFields' => array('NickName', 'Color', 'Headline', 'DescriptionMe', 'City', 'Tags'),
But now when I go for search something I get Mysql error :
SELECT COUNT(*) FROM `Profiles` WHERE 1 AND `Profiles`.`Status` ='Active' AND MATCH(`Profiles`.`NickName`, `Profiles`.`Color`, `Profiles`.`Headline`, `Profiles`.`DescriptionMe`, `Profiles`.`City`, `Profiles`.`Tags`) AGAINST ('red')
Unknown column 'Profiles.Color' in 'where clause'
Called 'db_value' function with erroneous argument #0.
Any ideas guys???
Many thanks