View Single Post

Old 04-01-2008   #2 (permalink)
Ruslan A.
Junior Member
 
Join Date: Mar 2008
Posts: 11
Ruslan A. is on a distinguished road
Default Re: Can i disable the field "within"?

Hi TurXaliM,

As I understood you don't want to use search by distance option?
if so, follow instructions

1. open '../templates/AutoClassifieds/header.tpl'
find following code
Code:
                        <td style="width: 50px;">Within:</td>
                        <td>
                            <select name="distance" class="text">
                                <option value="0" selected="selected">{$lang.any}</option>
                                {html_options options=$distances}
                            </select>
                        </td>
replace it with
Code:
                        <td style="width: 50px;">&nbsp;</td>
                        <td>&nbsp;</td>
find following code
Code:
                        <td style="width: 50px;">of {$lang.field_zip}:</td>
                        <td>
                            <input type="text" name="zip" size="7" class="text" />
                        </td>
replace with following code
Code:
                        <td style="width: 50px;">&nbsp;</td>
                        <td>&nbsp;</td>
save and close it.

2. open '../templates/AutoClassifieds/search.tpl'

find and remove following piece of code
Code:
<div class="searchingOptions">
        <fieldset class="collapsible" style="float:left;margin:10px;">
            <legend>Distance</legend>
            <table cellpadding="5" cellspacing="0">
                    <tr>
                        <td>Within:</td>
                        <td>
                            <select name="_settings[distance]" id="distance" class="text">
                                <option value="0" selected="selected">{$lang.any}</option>
                                {html_options options=$distances}
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>of {$lang.field_zip}:</td>
                        <td>
                            <input type="text" id="zip_domid" name="_settings[zip]" size="7" class="text" />
                        </td>
                    </tr>
                </table>
            </fieldset>
</div>
save and close it.

HTH
Ruslan A. is offline   Reply With Quote