andrea

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 573 total)
  • Author
    Posts
  • in reply to: Field to search users for a published post type #11321
    andrea
    Keymaster

    Hi Patrique,

    Unfortunately that’s not possible, “Any Profile Field” is restricted to actual profile fields. Sorry!

    in reply to: Two columns search #11320
    andrea
    Keymaster

    Great, you are welcome!

    in reply to: Two columns search #11313
    andrea
    Keymaster

    Yes, you can add this code to your bp-custom.php:

    add_action ('bps_field_before_search_form', 'remove_option');
    function remove_option ($f)
    {
    	if ($f->code == 'field_75')
    	{
    		unset ($f->options['other']);
    	}
    }

    Replace 75 with the actual ID of your “role” field.

    in reply to: Two columns search #11311
    andrea
    Keymaster

    Hi Jessica,

    A BP Profile Search form is displayed by a form template, the default one is bps-form-default.php, and you (or your developer) can modify the form template to suit your needs.

    I am a programmer, and I’m not familiar with CSS or visual design, so I can’t offer specific advice, but you can find additional information in:

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

    in reply to: Field to search users for a published post type #11305
    andrea
    Keymaster

    Great! You are very welcome.

    in reply to: Field to search users for a published post type #11302
    andrea
    Keymaster

    Luckily it was a simple mistake in my bp-custom.php code.

    It’s fixed now in your test site, so you can copy it wherever you need it.

    Please let me know if you find more problems!

    in reply to: Field to search users for a published post type #11301
    andrea
    Keymaster

    Thank you, Patrique.

    I’ve been able to log into your test site, and I’ll let you know soon what I find.

    in reply to: Field to search users for a published post type #11297
    andrea
    Keymaster

    Hi Patrique,

    Could you please send me a WP admin access to your test site? You can use my Contact page to share it privately.

    in reply to: sidebars #11296
    andrea
    Keymaster

    Hello Martin,

    I see you are using the Kleo theme. Kleo also provides your BP Profile Search form templates, so your question can be answered by the Kleo support team.

    in reply to: displaying autocomplete #11293
    andrea
    Keymaster

    Hi Clara,

    You’re welcome!

    Yes, Select2 autocomplete applies to Custom Taxonomy MultiSelector and any other multiple-selection fields you may create, while Custom Taxonomy MultiSelector applies to categories and any other taxonomy you may create.

    in reply to: displaying autocomplete #11291
    andrea
    Keymaster

    Hello Clara,

    I was able to log into your site, and there were a few missing characters in bp-custom.php, e.g. a couple of closing braces }.

    They are also missing in the code you pasted above, but I didn’t notice them earlier.

    Please let me know if the autocomplete feature is now working for you.

    in reply to: displaying autocomplete #11279
    andrea
    Keymaster

    Hello Clara,

    To see which error you are getting, you could temporarily set WP_DEBUG to true in your wp-config.php.

    If you prefer, I could take a look at your site. I’ll need a WP admin access, and you can share it privately using my Contact page.

    in reply to: Default Value for Drop Down / Location #11276
    andrea
    Keymaster

    Hello luke,

    You can add the following code to your bp-custom.php:

    add_action ('bps_field_before_search_form', 'set_defaults');
    function set_defaults ($f)
    {
    	if ($f->code == 'field_5')   // drop-down field
    	{
    		$f->value = 'Canada';
    	}
    	if ($f->code == 'field_10')   // location field
    	{
    		$f->value['distance'] = 5;
    		$f->value['units'] = 'miles';
    	}
    }

    Replace 5 and 10 with the actual IDs of your fields.

    in reply to: Default Search by Alphabetical order #11266
    andrea
    Keymaster

    Hi mitsuhiro,

    Glad you found a suitable solution!

    The differences between the two template packs are well explained here:

    https://bpdevel.wordpress.com/2017/04/12/bonjour-nouveau-an-introduction-to-the-next-template-packs/

Viewing 14 posts - 1 through 14 (of 573 total)