My results aren't showing up, because my filter is always in Last Active

Home Forums BP Profile Search Forum My results aren't showing up, because my filter is always in Last Active

This topic contains 8 replies, has 2 voices, and was last updated by  Ace Suares 1 month ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #9897 Reply

    Jonathan Torres

    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 anything

    #9898 Reply

    andrea
    Keymaster

    Hello Jonathan,

    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.

    #9938 Reply

    Fred McMurray

    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?

    #9939 Reply

    Fred McMurray

    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.

    #9940 Reply

    andrea
    Keymaster

    Hi Fred,

    “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.

    #9944 Reply

    Ace Suares

    We have a lot of users that will never be active. Isn’t there a better way to omit the last-active filter?

    #9945 Reply

    Ace Suares

    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 🙁

    #9947 Reply

    andrea
    Keymaster

    Hello Ace,

    Try using this line instead of yours:

    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&type=alphabetical' ) ) : ?>

    Note the ampersand (&) before type=alphabetical.

    #9950 Reply

    Ace Suares

    The ampersand helped! (Didn’t I see that? Oh my!)

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: My results aren't showing up, because my filter is always in Last Active
Your information: