Revise search by region/state
From OSClass
Beginning with OSClass 2.3.2 there is the added functionality to refine your searches by Region or State, but you'll need to make a simple code addition. You can see the before/after screen-shots of this in the attached images. (this can be done in any theme, but BCute is used here)
Before and After screen-shots:
First, locate this code in the file search.php, located in the theme folder:
<div class="row one_input">
<h6><?php _e('City', 'bcute'); ?></h6>
<input type="text" id="sCity" name="sCity" value="<?php echo osc_search_city() ; ?>" />
</div>
Add this almost identical code right below (or above) it:
<div class="row one_input">
<h6><?php _e('Region', 'bcute'); ?></h6>
<input type="text" id="sRegion" name="sRegion" value="<?php echo osc_search_region() ; ?>" />
</div>
- You'll notice that the ONLY thing that's changed is the word "City" is replaced by the word "Region".
- Additionally, if you'd like for the label to say "State" instead of "Region", just change the second line to read "State", as shown here:
<h6><?php _e('State', 'bcute'); ?></h6>
- Lastly, make sure that anywhere in the code that it says "bcute" that you change it to your theme name.
--Jesse 14:17, 21 December 2011 (CET)
