Search Criteria - a request for simplification

15 years 6 months ago #78489 by withcompliments
Replied by withcompliments on topic Re:Search Criteria - a request for simplification
I agree, 1.2RC3 is wonderfull, 25 euros well spent! The search is also great, except for the criteria.
My temporary solotion to limit the options and make it clearer for the user is:

in the language file (components/com_comprofiler/plugins/language/default_language/default_language.php) I added:

DEFINE ('_UE_NO_PREFERENCE','Search has to match:');
DEFINE ('_UE_MATCH_ARE_EXACTLY','');
DEFINE ('_UE_MATCH_INCLUDE_ALL_OF','all words');
DEFINE ('_UE_MATCH_INCLUDE_ANY_OF','one of the words');
DEFINE ('_UE_MATCH_EXCLUSIONS','');
DEFINE ('_UE_MATCH_ARE_EXACTLY_NOT','');
DEFINE ('_UE_MATCH_INCLUDE_ALL_OF_NOT','');
DEFINE ('_UE_MATCH_INCLUDE_ANY_OF_NOT','');
DEFINE ('_UE_MATCH_IS_EXACTLY','');
DEFINE ('_UE_MATCH_PRASE','');
DEFINE ('_UE_MATCH_ALL','all words');
DEFINE ('_UE_MATCH_ANY','any of the words');
DEFINE ('_UE_MATCH_IS_EXACTLY_NOT','');
DEFINE ('_UE_MATCH_PHRASE_NOT','');
DEFINE ('_UE_MATCH_ALL_NOT','');
DEFINE ('_UE_MATCH_ANY_NOT','');

in the file administrator/components/com_comprofiler/plugin.class.php I deleted some things:

case 'text':
$choices = array( 'all' => _UE_MATCH_ALL,
'any' => _UE_MATCH_ANY,
);
break;
case 'singlechoice':
$choices = array( // 'all' => _UE_MATCH_ALL,
'anyis' => _UE_MATCH_IS_ONE_OF, // _UE_MATCH_ANY,
);
break;
case 'multiplechoice':
$choices = array( 'all' => _UE_MATCH_INCLUDE_ALL_OF,
'any' => _UE_MATCH_INCLUDE_ANY_OF,
);

I hope this is of some help for the moment. Please make a backup of the original files!!! Just in case...

An option to not use the criteria would be great!

Please Log in to join the conversation.

15 years 6 months ago #78493 by beat
withcompliments,
thanks for your workaround. B)

All,
Your requests have been heard :)

We will work on this for CB 1.2 Stable. This might result in a very short RC 4 to make sure it doesn't break something else.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.149 seconds

Facebook Twitter LinkedIn