Modify Quick Search on home page

Hi,

I would like to replace the age section to born and people enter their birthdate in an input area.

I manage to do this here; www.newheartandsoulmatch.com/date/search.php.  Can't seem to figure it out for the home page search box.

Also, where would I go to delete the online only and with photos only options?

Thanks.

Quote · 30 Oct 2009

Hide online only and with photos only options,

1)
search.php
Find and hide line 222 - 225

From:
<td class="search_form_submit_row" colspan="2">
<input type="checkbox" name="online_only" id="online_only" />
<label for="online_only"><?= _t( '_online only' ) ?></label>
<input type="checkbox" name="photos_only" id="photos_only" />
<label for="photos_only"><?= _t( '_With photos only' ) ?></label>
<input type="submit" value="<?= _t( '_Fetch' ) ?>" />
</td>

To:
<td class="search_form_submit_row" colspan="2">
<!--<input type="checkbox" name="online_only" id="online_only" />
<label for="online_only"><?= _t( '_online only' ) ?></label>
<input type="checkbox" name="photos_only" id="photos_only" />
<label for="photos_only"><?= _t( '_With photos only' ) ?></label>-->
<input type="submit" value="<?= _t( '_Fetch' ) ?>" />
</td>



2)
browse.php
Find and hide line 134 - 137

From:
<div class="only">
' . $photo_only_check . '
' . $online_only_check . '
</div>

To:
<!--<div class="only">
' . $photo_only_check . '
' . $online_only_check . '
</div>-->



3)
Quick Search on home page
File templates/base/scripts/BxBaseIndex.php -> function getBlockCode_QuickSearch()
on this function can you also edit the input area/form


Hide with photos only options,

templates/base/scripts/BxBaseIndex.php
Find and hide line 1165 - 1168

From:
$ret .= '<div class="qsi_line" style="text-align:center; margin-top:3px;">';
$ret .= '<input type="checkbox" name="photos_only" id="qsi_photos_only" style="width:15px; height:15px;" /> ';
$ret .= '<label for="qsi_photos_only">' . _t("_With photos only") . '</label>';
$ret .= '</div>';


To:
//$ret .= '<div class="qsi_line" style="text-align:center; margin-top:3px;">';
//$ret .= '<input type="checkbox" name="photos_only" id="qsi_photos_only" style="width:15px; height:15px;" /> ';
//$ret .= '<label for="qsi_photos_only">' . _t("_With photos only") . '</label>';
//$ret .= '</div>';

Quote · 30 Oct 2009

Thanks okweb!

Quote · 31 Oct 2009

I've put in this code;

$ret .= '<div class="qsi_line">';

$ret .='<div class="qsi_first">';

$ret .= _t("Date of Birth");

$ret .='</div>';

$ret .='<div class="qsi_second">';

$ret .='<input type="text" name="Date of Birth" />';

$ret .='</div>';

$ret .='</div>';

When I go and check the main page, it says "Parse error: syntax error, unexpected '<' in /home/christal/public_html/newheartandsoulmatch.com/date/templates/base/scripts/BxBaseIndex.php on line 1386", which is the line in yellow.

What did I do wrong?

Any help appreciated!  Thank

Quote · 31 Oct 2009

I've put in this code;

$ret .= '<div class="qsi_line">';

$ret .='<div class="qsi_first">';

$ret .= _t("Date of Birth");

$ret .='</div>';

$ret .='<div class="qsi_second">';

$ret .='<input type="text" name="Date of Birth" />';

$ret .='</div>';

$ret .='</div>';

When I go and check the main page, it says "Parse error: syntax error, unexpected '<' in /home/christal/public_html/newheartandsoulmatch.com/date/templates/base/scripts/BxBaseIndex.php on line 1386", which is the line in yellow.

What did I do wrong?

Any help appreciated!  Thank

You can try this code, I think you missing a space between = and '

$ret .= '<div class="qsi_line">';
$ret .= '<div class="qsi_first">';
$ret .=  _t("Date of Birth");
$ret .= '</div>';
$ret .= '<div class="qsi_second">';
$ret .= '<input type="text" name="DateofBirth" />';
$ret .= '</div>';
$ret .= '</div>';

Quote · 1 Nov 2009

Is there an update for this since 2009? I want to remove the online only and with photos only radio boxes from the quick search area on my home page.

Quote · 29 Nov 2011

 

Is there an update for this since 2009? I want to remove the online only and with photos only radio boxes from the quick search area on my home page.

 Bump. I want to remove the online only and photos only radio boxes from all search areas. 7.0.8.

Quote · 30 Nov 2011

Does anyone simply know how to eliminate age range feild in quick search?

Quote · 10 Mar 2012

go to

administration/fields.php -> Search Profiles -> quick search

good luck

so much to do....
Quote · 10 Mar 2012

Sorry! its a dolphin 6 thread and i posted for dolphin 7

so much to do....
Quote · 10 Mar 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.