Several country on search page

Does anyone know how to remove PlusButton for several country choice on search profile page? I mean that user should search profiles by one country only. I think it's strange that search form consist several field "Country" and only one field "City".

Quote · 20 Feb 2012

Hello

You need to edit inc/classes/BxDolProfileFields.php file -> getFormsSearch function. In the function find the code below

switch($aItem['Control']) {
                            case 'select' :
                                $aFormInput['type'] = 'select_box';
                                $aFormInput['attrs']['add_other'] = 'false';
                                break;
                            case 'checkbox' :
                            $aFormInput['type'] = $aItem['Name'] == 'LookingFor' ? 'select' : 'checkbox_set';
                                break;
                            default :
                            $aFormInput['type'] = $aItem['Name'] == 'Sex' ? 'checkbox_set' : 'select';
                        } 

and add this one just after it

if($aItem['Name'] == 'Country')
$aFormInput['type'] = 'select';

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 20 Feb 2012

Thanks a lot!!

Quote · 21 Feb 2012

You are welcome. :)

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 21 Feb 2012
 
 
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.