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

    (@dontdream)

    Hi Spyroweb,

    You can use this code in your functions.php or bp-custom.php file:

    add_filter ('bps_field_data_for_search_form', 'change_display');
    function change_display ($f)
    {
    	if ($f->id == 123)  $f->display = 'selectbox';
    	return $f;
    }

    Replace 123 with the actual ID of your checkbox field.

    Thread Starter Sultan

    (@sultan_semmaiyahoocom)

    Hi,

    I have fixed it just turn the template bps-form-sample-2 and its work.

    Thanks!

    I have another question now this the site link https://www.explicacoes-online.pt/explicadores/ where i am working

    my question

    Is it possible that some one select checkbox and it should filter that concern checkbox, In other word I mean that it should work before hitting submit button like a filter.

    Thread Starter Sultan

    (@sultan_semmaiyahoocom)

    i am talking about sidebar form

    Plugin Author Andrea Tarantini

    (@dontdream)

    That feature is not built-in, but you could add some JavaScript to the form template to automatically submit the form when a form element is changed.

    Hi,

    Andrea Tarantini, I am not a programmer but i would really wanted have a dropdown for my BP profile search. Can you explain in detail where i should insert the code.

    I have tried to edit the plugin with the code you have given but it display error in the pulgin.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi idichoo,

    You can add the code I suggested in one of two ways:

    1. To the file functions.php, located in the directory of your active theme;

    2. To the file bp-custom.php, located in the directory /wp-content/plugins.

    If you can’t find them, you can create one of them (I suggest you use bp-custom.php so your changes are not tied to a specific theme).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘change checkbox to drop down on search form?’ is closed to new replies.