Add Country, State & City Quick Search

Does anybody know how to create Country, State and City in the Front Page Quick Search?  If so, can they please supply a tutorial on how to do this.

Quote · 21 May 2009

do you know php?

templates/base/scripts/bxbaseindex.php

function getBlockCode_QuickSearch()

heres a section to modify then add:

$ret .= '<div class="qsi_line">';
$ret .= '<div class="qsi_first">';
$ret .= _t("_I am a");<<<<new string
$ret .= '</div>';
$ret .= '<div class="qsi_second">';
$ret .= '<select name="LookingFor[]">';<<<<<Country field
$ret .= SelectOptions("LookingFor", $member_sex);<<<<<Country field
$ret .= '</select>';
$ret .= '</div>';
$ret .= '</div>';

I have video tutorials to help you mrpowless.com
Quote · 22 May 2009

Hi MrPowless,

 

I will give it a go over the weekend.  It's great to have people like you in the forum.

Quote · 22 May 2009

I try to come as often as I can.... I know what it was like when I first started.....getting better...not every fix is 5$ lol

I have video tutorials to help you mrpowless.com
Quote · 22 May 2009

Hi Mrpowless,

 

do you know php?

templates/base/scripts/bxbaseindex.php

 

function getBlockCode_QuickSearch()

 

heres a section to modify then add:

 

$ret .= '<div class="qsi_line">';
$ret .= '<div class="qsi_first">';
$ret .= _t("_I am a");<<<<new string
$ret .= '</div>';
$ret .= '<div class="qsi_second">';
$ret .= '<select name="LookingFor[]">';<<<<<Country field
$ret .= SelectOptions("LookingFor", $member_sex);<<<<<Country field
$ret .= '</select>';
$ret .= '</div>';
$ret .= '</div>';

 

I followed your instructions to the tee. However, the front page has become invisible.  Strangely, there are no errors on the page, it's just a plain white page.

 

Have I missed something from the instructions you gave me? Frown

Quote · 23 May 2009

hey goldman!

so were you able to fix it? i would like to do the same, but before i would like to know if it worked!,

thank a bunch!

Quote · 26 May 2009

Hi Westmerch,

 

No, unfortunately I couldn't.  I'm now looking to incorporate city into member search page.  My only hope is that they include country and city search into the quick search page in the next edition of Dolphin 7.  Frown

Quote · 26 May 2009

dont insert exactly lol

$ret .= _t("_I am a");<<<<new string

this line will break it

what i mean is edit _I am a

LookingFor[] is an admin/builders/fileds builder field

you want Country? change to Country[]      ....     Country in line below

try a few different fields to test

see how its built?

I can give exact code but thats no fun for you

I have video tutorials to help you mrpowless.com
Quote · 26 May 2009
 
 
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.