This topic contains 8 replies, has 2 voices, and was last updated by Ace Suares 1 week, 1 day ago.
May 2, 2019 at 9:38 am #9897
Hello, hoping you’re doing great.
I have the following issue. Once I search for a category in my searchform, my results aren’t showing up due to my members filter is always in ‘Last Active’ if I changue it to ‘Alphabetical’ I can se the result I was looking for, the problem is that every refresh the filter ‘Last Active’ filter stills and doesn’t shows anythingMay 2, 2019 at 11:08 am #9898
I can suggest two solutions:
1 (recommended) – Wait until your members are active, they will become active as soon as they log in. If they are test users, you can log in with their credentials.
2 (not recommended) – You can force the alphabetical order, but this will render the Order By: drop-down ineffective. You will no longer be able to order by Last Active or whatever.
If you are interested in the second solution, please let me know.June 5, 2019 at 9:31 pm #9938
Please post the force alphabetical. My users don’t care to see last active they only want to see Alphabetical. Also, how do I allow for non-members to see the memberlist?June 5, 2019 at 11:13 pm #9939
I found the code to set Alphabetical as the default in another thread. I’m still having a problem making the search results available to non-logged in visitors.June 6, 2019 at 10:23 am #9940
“I’m still having a problem making the search results available to non-logged in visitors.”
I guess BP Profile Search is not involved in this issue, try to deactivate it and make sure that the Members directory can be seen by non-logged in visitors.
Then you can reactivate BP Profile Search and it should work as expected.June 16, 2019 at 3:25 pm #9944
We have a lot of users that will never be active. Isn’t there a better way to omit the last-active filter?June 16, 2019 at 3:30 pm #9945
Also, I got this in my custom members loop:
<?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) . ‘type=alphabetical’ ) ) : ?>
The main member page looks fine. But on that page is a search (filter) and whatever search I do – the result is not longer ‘alphabetical’ but ‘last active’.
So the members don’t show up 🙁June 17, 2019 at 9:39 am #9947
Try using this line instead of yours:
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&type=alphabetical' ) ) : ?>
Note the ampersand (&) before
type=alphabetical.June 17, 2019 at 11:52 am #9950
The ampersand helped! (Didn’t I see that? Oh my!)