+ Reply to Thread
Results 1 to 5 of 5

Thread: No checkbox fields on search on map page?

  1. #1
    Master
    Join Date
    Apr 2021
    Location
    USA
    Posts
    261

    No checkbox fields on search on map page?

    Hi Flynax Dev,

    I just found that on search on map page I could not add check box field. How can I fix this?

    Thank you

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    Hello,

    What template do you use?

  3. #3
    Master
    Join Date
    Apr 2021
    Location
    USA
    Posts
    261
    Quote Originally Posted by Rudi View Post
    Hello,

    What template do you use?
    Hi Rudi,

    I'm using the general rainbow template and version 4.9.2? I also went to the flynax demo and try to add a checkbox field to the map search form. But it just does not show any checkbox field in admincp > search form > on map

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    The fact is that, initially, checkboxes are not supported for the map form because they take too much space on the form and are not so effective for filtering listings on the map

    But you can enable them editing some files:

    1. In admin/controllers/search_forms.inc.php > at the bottom find this code:
    PHP Code:
    Only registered members can view the code
    and replace it with:
    PHP Code:
    Only registered members can view the code
    2. Then go to templates/general_rainbow/tpl/blocks/fields_search_horizontal.tpl

    at the bottom, before the last {/if} add:
    Code:
    Only registered members can view the code.

    3. Finally, open templates/general_rainbow/controllers/search_map/search_map.js

    find:
    Code:
    Only registered members can view the code.
    and replace all occurrences with:
    Code:
    Only registered members can view the code.

  5. #5
    Master
    Join Date
    Apr 2021
    Location
    USA
    Posts
    261
    Thank you so much Rudi.

+ Reply to Thread