BP search. Date selector not showing on form

Home Forums BP Profile Search Forum BP search. Date selector not showing on form

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #10438 Reply
    Carsten
    Guest

    Hi Andrea.

    Please see the picture. Bp-search form

    I have Version 5.3.2 installed. But it already happened in Version 5.3

    And I can’t change the age range either. Edit profile field! “Date selector”

    Best regards Carsten.

    #10442 Reply
    andrea
    Keymaster

    Hi Carsten,

    If you were using the code suggested in:

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

    that code has changed a little in version 5.3, please have a look at that page to see the current version.

    #10482 Reply
    Carsten
    Guest

    Hi Andrea.

    Issue fixed, after my theme posted a new update. Regarding the picture, above!

    I still have a issue, setting the date range.
    Even if I use your snippet!
    ———————————————————————–
    add_action (‘bps_field_before_search_form’, ‘change_display’);
    function change_display ($f)
    {
    if ($f->code == ‘field_4’ && $f->display == ‘integer-range’)
    {
    $f->display = ‘range-select’;
    $range = range (18, 99);
    $f->options = array (” => ”) + array_combine ($range, $range);
    }
    }
    ————————————————————————-
    Could it be another plugin? there is causing this issue..or would it help to modifying the default form template? I have just installed a child theme!

    Best regards Carsten.

    #10484 Reply
    andrea
    Keymaster

    Hi Carsten,

    How does your search field appear right now (e.g. two input boxes)?

    #10485 Reply
    Carsten
    Guest

    Hi Andrea.

    Like in the picture:

    https://filipinowomen.online/wp-content/uploads/2020/03/search-field-4.jpg

    Best regards Carsten.

    #10486 Reply
    andrea
    Keymaster

    And what would you like to change?

    #10487 Reply
    Carsten
    Guest

    I would like to set the age range, from 18 to 90, thanks 🙂

    #10488 Reply
    andrea
    Keymaster

    Sorry, I didn’t notice the current range starts from 19 🙂

    Well, if you didn’t set the range, probably the settings are elsewhere, say in your theme or in your profile field. Did you look there? And anyway the question is, who is setting the current range right now? BP Profile Search doesn’t set any range by itself.

    #10489 Reply
    Carsten
    Guest

    That’s the issue, I wanna set the age range from 18…But I can’t change the age range, at all. Every time I try to set it. It returns the same value. I have even tried to create a new field, but with the same results. See picture –
    https://filipinowomen.online/wp-content/uploads/2020/03/profile-field-id-frozen.jpg. It’s like, it doesn’t want to be updated! Stuck on the same value, no matter what I do.

    Best regards Carsten. 🙂

    #10490 Reply
    andrea
    Keymaster

    Hi Carsten,

    If you wish, I could have a look at your site or test site. I’ll need a WP admin access, you can use my Contact page to share it privately.

    #10493 Reply
    Carsten
    Guest

    Hi Andrea.

    Thanks for always responding and trying to help. 🙂 and thank you, but that will not be necessary. Because I just found the issue and of course, it’s a plugin.

    The “BuddyPress Xprofile Custom Field Types plugin” is causing the issue. If you deactivate it. Change the age range in the field settings and then activate it again. It keeps the settings. So in the future, you’ll have to deactivate this plugin, to change the settings and then afterwards, activate it again! I will report the bug to byddydev, later.

    Sorry for the inconvenience.

    Best regards Carsten. 🙂

    #10494 Reply
    andrea
    Keymaster

    Hi Carsten,

    No problem, glad you found the solution!

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: BP search. Date selector not showing on form
Your information: