Results 1 to 5 of 5

Thread: Changing Search Radius Dropdown in 1.8.2

  1. #1
    Thread Starter
    blue61em's Avatar
    Join Date
    Feb 2013
    Location
    United States
    Posts
    161
    Thanks
    1
    Thanked 12 Times in 8 Posts

    Changing Search Radius Dropdown in 1.8.2

    How can I change the search radius dropdown amounts in JR 1.8.2?

    It appears the change needs to be made in the geolocation.php file.

    I attempted to changed the amounts on Line 417 as follows:

    Code:
    function jr_radius_dropdown() {
    	global $jr_options;
    ?>
    	<div class="radius">
    		<label for="radius"><?php _e('Radius:', APP_TD); ?></label>
    		<select name="radius" class="radius" id="radius">
    <?php
    		$selected_radius = isset( $_GET['radius'] ) ? absint( $_GET['radius'] ) : 0;
    
    		foreach ( array( 0, 5, 10, 25, 50, 100, 200 ) as $radius ) {
    			if ( ! $radius ) {
    				$echo_radius = __( 'Auto', APP_TD );
    			} else {
    				$echo_radius = number_format_i18n( $radius ) . ' ' . $jr_options->jr_distance_unit;
    			}
    			?><option value="<?php echo esc_attr($radius); ?>" <?php selected( $selected_radius, $radius ); ?>><?php echo $echo_radius; ?></option><?php
    		}
    ?>
    But the amounts still remain the default Auto, 1, 5, 10, 50, 100, 1000, 5000.

    My site is for a specific state and any amounts over 250 miles are inappropriate.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,965
    Thanks
    169
    Thanked 3,406 Times in 3,277 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    blue61em's Avatar
    Join Date
    Feb 2013
    Location
    United States
    Posts
    161
    Thanks
    1
    Thanked 12 Times in 8 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    blue61em's Avatar
    Join Date
    Feb 2013
    Location
    United States
    Posts
    161
    Thanks
    1
    Thanked 12 Times in 8 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,965
    Thanks
    169
    Thanked 3,406 Times in 3,277 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Changing Default Search Radius
    By ssijuade91 in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: April 10th, 2014, 02:57 PM
  2. Changing Default Radius for Refine Search Criteria
    By ssijuade91 in forum Vantage General Discussion (Legacy)
    Replies: 0
    Last Post: April 8th, 2014, 06:51 AM
  3. Jomark Help changing the radius
    By hbo1 in forum Help Using ClassiPress
    Replies: 1
    Last Post: January 5th, 2013, 09:57 AM
  4. To Edit Main search bar and Remove radius search & slider
    By myhero in forum JobRoller General Discussion
    Replies: 3
    Last Post: November 16th, 2012, 09:34 AM
  5. Changing the options in the Radius drop down box
    By thebaht in forum JobRoller General Discussion
    Replies: 1
    Last Post: January 31st, 2012, 07:45 AM