Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Johan,

    It depends on the form template. You can edit the form template according to your needs, see Form Templates to get started.

    Thread Starter Johan WALTER

    (@johan_walter)

    Hi Andrea

    I got in touch with dev of the template (GWANGI)
    They cannot implement age range slider if it is not implemented in plugin. To them it is a change that needs to be done at plugin level.

    Do you have more information to give me about technically what it involves to implement age range slider ? Is that a feature only related to template ? Or is it a feature also on plugin ?

    Thanks

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Johan,

    If you look at the default form template (file bp-profile-search/templates/members/bps-form-default.php), the age range is implemented in lines 121-123.

    The min and max values are sent to the server as ‘field_4_age_range[min]’ and ‘field_4_age_range[max]’ (replace 4 with the field ID of your field).

    If you edit the template to implement a different UI, that’s fine, as long as you send the min and max values with the same name. No changes are needed to the plugin itself.

    Please note that Gwangi provide their own BP Profile Search form templates, so you may want to edit those instead.

    By the way, which range slider do you wish to implement? I googled that and I found many different solutions.

    Thread Starter Johan WALTER

    (@johan_walter)

    Hi Andrea

    I would like to implement range slider for age
    For example https://prnt.sc/pcumbq

    But I would like also to have slider for all range ; For GEO MY WP, I have seen a premium plugin which does that from the dev of GEO MY WP.

    Range slider is way more ergonomic especially on mobile.

    Thanks for your answer, I will forward it to Gwangi

    Plugin Author Andrea Tarantini

    (@dontdream)

    Great, let’s wait for their reply.

    In the meantime, maybe you could replace the two input boxes of the age range with two drop-downs, see the code under ‘Customizations’ in:

    https://dontdream.it/bp-profile-search/form-templates/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Age range slider’ is closed to new replies.