Zip Search and results

Hi All :)

2 Questions.

1. For the Zip Search, I have this on the profile search page. A user is able to enter a number, select Miles or KM and enter a zip code - then press search and get the results within that radius etc.
Is there as way to have a drop down for the distance selector rather than a text input box. So I would force users to use 5, 10, 30, 50, 100 etc, instead of them putting what they like in.

2. Once the results are shown, on the Extended section - there is a drop down for Latest Activity, registration date etc. Could Distance (Nearest first) be included as an option?

Cheers

Quote · 8 May 2013

Hello

1. Distance field can be modified via inc/classes/BxDolProfileFields.php file -> getFormsSearch function. Find the following code

 

<input type="text" name="distance" class="form_input_distance bx-def-round-corners-with-border bx-def-font" />
<select name="metric" class="form_input_select form_input_metric">
  <option selected="selected" value="miles">$sMilesC</option>
  <option value="km">$sKmC</option>
</select>

The first INPUT is a text box which you need to replace with SELECT element with the same name.

2. It won't be so easy, because reordering will require to execute search by location everytime you want to order profiles by Distance.

 

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 8 May 2013

Thanks Anton - will give that a go.

Would be great if these were settings that did not involve changing code in core files.

Quote · 8 May 2013

Hello 

Thanks Anton - will give that a go.

Would be great if these were settings that did not involve changing code in core files.

You are welcome. :) I agree with you, user friendly settings in admin panel are better, but unfortunately there is no way to have settings for everything. 

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 8 May 2013

Thhhhhhhhhanks Anton,

For a year I'm looking how to put km default unit ! Sealed

 

I replaced by

 

<input type="text" name="distance" class="form_input_distance bx-def-round-corners-with-border bx-def-font" />
                                            <select name="metric" class="form_input_select form_input_metric">
                                                <option selected="selected" value="km">$sKmC</option>
                                                <option value=="miles">$sMilesC</option>

Baloo
Quote · 11 Jun 2013
 
 
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.