WordPress.org

Support

Support » Plugins and Hacks » [Resolved] FYN Premium: Restricting search results to "Within Distance"

[Resolved] FYN Premium: Restricting search results to "Within Distance"

  • meltdown2
    Member

    @meltdown2

    Hello – I’ve just purchased the Premium FYN. I would like to restrict the search results to, in this case, cooks located within a 5-mile distance. I’ve added the following code to my pre-selected Search Results Page:

    [FYN_searchform show_postalcode_search=1 show_within_distance=1]

    I see that “Unlimited” is automatically placed within the dropdown list. As I would like just the one, 5-mile option, is it possible to remove it?

    Any help would be appreciated 🙂

    Thanks

    http://wordpress.org/extend/plugins/wp-find-your-nearest/

Viewing 3 replies - 1 through 3 (of 3 total)
  • meltdown2
    Member

    @meltdown2

    in getFYNSearchForm.php I was able to comment out the following line:

    //$form .= "<option value=\"0\">Unlimited</option>\n";

    This worked in FF but didn’t seem to in IE or Safari 🙁

    meltdown2
    Member

    @meltdown2

    I see now that if I comment-out both lines, the “Unlimited” option is removed:

    //$form .= "<option value=\"0\"></option>\n";
    //$form .= "</select></div>\n";
    Adam Sargant
    Member

    @adamsargant

    Hi… for premium support it is probably best to email me direct as I don’t receive automatic notification of new posts here

    But there is now way currently to remove the unlimited option other than the way you suggest (though I’m not sure that removing the closing </select> tag is a good idea)… this will likely cause problems with future upgrades though, requiring you to edit everytime an upgrade comes out

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] FYN Premium: Restricting search results to "Within Distance"’ is closed to new replies.