December 11, 2019 at 2:09 pm #10303
After installing PMpro – addon for buddypress plugin!
There is an issue in the BP search results.
Let’s say you search for X and X is not there. Then the search results should be – Sorry, nothing found!. But instead, is shows all members.
The only way you can prevent this from happening, is to make sure that all search fields are combined and attached to a members profile fields.
But there is so many combinations. So that will be almost impossible to do.
I will have to create 500 dummy profiles. I hope you know what I mean?
Best regards Carsten.December 12, 2019 at 9:52 am #10306
That’s been a known issue for a long time, see:
but unfortunately it’s been ignored so far.
I suggest you remind the ‘Paid Memberships Pro – BuddyPress Add On‘ team of this long-standing problem, or you can try to implement yourself the fix I suggested in the above mentioned posts.December 13, 2019 at 4:24 pm #10316
Thanks for the quick reply 🙂 But none of the above suggestions, worked on my site.
But the bp-search, works very well if you use this search form –>
<form action=”” method=”get” id=”search-members-form”>
<label for=”members_search” class=”bp-screen-reader-text”>Search Members…</label>
<input type=”text” name=”members_search” id=”members_search” placeholder=”Search Members…”>
<input type=”submit” id=”members_search_submit” name=”members_search_submit” value=”Search”>
Maybe it’s possible to use the above form and replace it, with the search field in –>
<!– BP Profile Search 5.2.3 members/bps-form-home –>
<input type=”hidden” name=”field_any_label” value=”Search…”>
<input type=”hidden” name=”bps_form” value=”204″>
I don’t know how, but that would solve the issue for now! I guess..
Best regards Carsten.December 14, 2019 at 9:23 am #10317
Your suggestion may work in your use case, but it doesn’t in other cases.
The conflict is caused by the ‘Paid Memberships Pro – BuddyPress Add On‘ plugin, and there is no way it can be fixed in BP Profile Search. I recommend you raise the issue with the PMPro team.December 17, 2019 at 3:07 pm #10323
Yes, it very strange. Because if you remove this Buddypress add, everything works perfect and the search form on the members page works, regardless on which plugin you are using.
So why is it showing all members instead of – Sorry, no members were found. The problem is that I need this Buddypress Add to restrict members from certain content. So, I guess, I will just have to replace the search field, with a profile field.
Do you thing, it could have something to do with what template pack I am using. Buddypress Nouveau or Legacy? My theme uses Legacy!
I have tested the Youzer plugin on my site and here the Bp search works and shows the notice. If nothing is found. Sorry, no members were found. But it doesn’t work with my themes layout and more..
I have already created 2 tickets on PMpro. However, no respond yet. Maybe because I have to buy a license key, to get full tech support. But that cost $297! Therefore, I’ll just wait until they notice this issue, themselves. 🙂
Best regards Carsten.December 17, 2019 at 3:40 pm #10324
I think I found a solution!
After watch this video. https://www.screencast.com/t/t0xHRqvH
I went to the Paid Memberships Pro – BuddyPress Add On, Settings!
Include in Member Directory:
Should non-member users be included in the BuddyPress member directory?
Chose YES and then it works. So no coding required.
Best regards Carsten.December 17, 2019 at 4:11 pm #10325
Thank you for sharing the solution you found, I’m sure it will help other readers.
Anyway, as the video points out, there is a coding problem inside the ‘Paid Memberships Pro – BuddyPress Add On’ plugin and it will need to be fixed.December 18, 2019 at 2:45 pm #10333
Your welcome and I am only glad, if I can help other readers. 🙂
Do you know anything about the Buddypress widgets?
I am trying to find a way to filter these widgets. Either by role or gender. I already have a snippet code, which filters logged in users by gender.
I works find in the members directory. However, the Buddypress widgets are filtered and using, the members-lists. Same list as PM-pro is using!
Maybe you know someone, who can edit the snippet, so it also works in the widgets! That will be a great help.
I have already created two tickets on Buddypress.org. But after 2 month, still no respond!
Best regards Carsten.December 18, 2019 at 6:22 pm #10334
The BuddyPress widgets are outside the scope of BP Profile Search, but I did some research that you can find here:December 20, 2019 at 12:42 pm #10339
Thanks for the help. I have moved to the subject you recommended, on WordPress and hope I can find a solution there. Because there is a few side effect, as you said. Regarding the gender based code!
Best regards Carsten.December 20, 2019 at 4:13 pm #10340
Great, I hope you find a suitable solution!