• starry2eyes

    (@starry2eyes)


    For the life of me I cannot figure out how to get the filter to work to only filter members within the current group. The filter searches the entire site members directory. I am displaying plugin’s search form in all the single group pages. And I need the search form to be only relevant to the current group && these users profile fields info.
    How cam I limit the filter to only search within a current group based on profile fields?

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

    (@dontdream)

    Hi starry2eyes,

    Unfortunately it’s not possible to automatically limit the search to the current group.

    You can add the explicit Groups field to your search form and your users will be able to select the group or groups to search for.

    Thread Starter starry2eyes

    (@starry2eyes)

    Hi Andrea, thanks for your reply

    Plugin Author Andrea Tarantini

    (@dontdream)

    You’re welcome!

    Thread Starter starry2eyes

    (@starry2eyes)

    By the way, you had mentioned to add the explicit Groups field to your search form
    Well, I already have that in the form. However because of it the search form is incredibly long, which throws off the layout of the entire page.
    Also, from a user experience standpoint, it really doesn’t make sense for a user who is already on the groups page and also joined the group, then inorder to search within this group he already is smeer of on on the current group to then to also select in the search form while still on the current group page, to now also have to scroll down in the long list 50+ groups of all the groups listed on the search form (matches one or many, instead of matches current group by group ID or matches single) in the search form to put a tick into the checkbox for the current group.
    (And why is the Base jQuery Theme not collapsible?)
    One more question, which file do I even need to edit (using BP nouveau/BuddyBoss pro) can I even find the search form for which I have a short code for?
    I would like to dive into the code for my form and for groups make it “match single” for me as admin to select which group, when creating new form to short code on the individual group pages, instead so that the user doesn’t have to select from a long list of groups in the search form. In order to make match single for Groups on BP profile search Plugin, Where and which file would I have to edit and what do I have to edit?

    • This reply was modified 2 years, 12 months ago by starry2eyes.
    • This reply was modified 2 years, 12 months ago by starry2eyes.
    • This reply was modified 2 years, 12 months ago by starry2eyes.
    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi starry2eyes,

    If you are willing to code, I suggest you write a custom form template, see:

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

    You can start from the default template and add a possibly hidden form field in order to search for the current group, e.g.:

    <input type="hidden" name="groups_match_any[]" value="<?php echo the current group ID here; ?>">

    Please let me know how this works for you.

    PS: By the way, the Base jQuery Theme should be collapsible. Do you see any JavaScript errors in your browser console?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Limit profile search to a group’s members’ is closed to new replies.