Template of module Zip search

Hello all the Boonex community,

 

I make a test with dolphin boonex 7.2 pro before to invest in this community script.

I tried to find where I can modify the template of the "search by zip code" functionality to remove the miles / kilometers dropdownlist (I'm in France and nobody use miles).

It seems very difficult to modify block template easly ... so if someone can explain me where to find this.

 

Thnaks a lot in advance,

Florent

Quote · 18 Feb 2016

Welcome Florent, Hope I can help.

 

First off - all modules are located in /dolphin root directory/modules

From here - modules are grouped by creator/vendor.

All default available modules on a fresh install will be in the Boonex folder.

From here - you would look for zipcodesearch folder

 

But, before you start diving in - please take the time to make a backup of everything you have going on. If you make a mistake, it will be easy to go back as opposed to having to start all over. Also, to get familiar with modules, I would like to suggest reviewing https://www.boonex.com/trac/dolphin/wiki/DolphinTutorialMyFirstModule to get more information about how dolphin modules are created and code writing dolphin uses.

caredesign.net
Quote · 18 Feb 2016

Hi,

 

Thanks a lot for your prompt answer and to try to help me.

You can't modify this dropdown list in template of the zip code search.

I found the solution ... if it can help some other people :

File inc/classes/BxDolProfileFields.php (line 1149) you will find the html who generate the dropdownlist with kilometers / miles

 

you can replace by something like this : <input type="hidden" name="metric" value="km" />

if you want only kilometers.

 

thanks again

Quote · 19 Feb 2016
 
 
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.