Advertisement:

Author Topic: search by city area?  (Read 2379 times)

marki

  • Newbie
  • *
  • Posts: 16
search by city area?
« on: April 11, 2011, 09:07:40 pm »
hello,

  does anyone know how i could make it so that visitors can search by city area also? I know they can search by region or in the USA by state but I would like them to be able to search for a city also. Is this possible?

Thanks
Mark

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: search by city area?
« Reply #1 on: April 13, 2011, 11:30:18 am »
Hi,


No, you can not do that right now. I opened an issue, so it will be fixed on next version.

You could follow the development here :
http://issues.osclass.org/browse/OSCLASS-496

Thanks for the feedback

alien

  • Jr. Member
  • **
  • Posts: 61
Re: search by city area?
« Reply #2 on: April 13, 2011, 12:56:54 pm »
I have added a city search field in my homepage

theme/modern/inc.search.php
add this :

 
Code: [Select]
<div class="filters">
<form action="<?php echo osc_base_url(true); ?>" method="get" onSubmit="return checkEmptyCategories()">
                            <input type="hidden" name="page" value="search" />
                            <fieldset class="box location">
                                                              
                                
                                <div class="row one_input">
                                    <h4><?php _e('City''modern'); ?></h4>
                                    <input type="text" id="sCity" name="sCity" value="<?php echo osc_search_city() ; ?>" />
                                
                            </fieldset><button type="submit"><?php _e('Search''modern') ; ?></button>
                        </form></div></div>
« Last Edit: April 13, 2011, 12:58:48 pm by alien »

marki

  • Newbie
  • *
  • Posts: 16
Re: search by city area?
« Reply #3 on: April 13, 2011, 02:39:15 pm »
Hi,

  Thanks alien. Where in the code should I add the lines?

thanks
Mark

alien

  • Jr. Member
  • **
  • Posts: 61
Re: search by city area?
« Reply #4 on: April 13, 2011, 02:45:48 pm »
at the end