Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] New users only visible after logging in

  • @nielspilon

    Participant

    Hi,

    I’m currently developing a buddypress site where all users with their profile are are already setup by the administrators and not the users themselves.

    I’ve no problem creating the users and filling the profiles but I noticed that all these new members are not visible at the ‘members’ page until they’ve been logged in at least one time.

    Is there a way to show all users on the members page regardless of their status (never logged in/logged in before)?

    If not there’s no other way then logging them all in but it would be nice if that shouldn’t be case as their are quite a few of them 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • @shanebp

    Moderator

    They aren’t visible because they have no last_activity field.
    Going forward, this should add it for new members – untested, goes in theme/functions.php

    function pilon_add_timestamp( $user_id ) {
        bp_update_user_last_activity( $user_id );
    }
    add_action('user_register', 'pilon_add_timestamp', 10 , 1);

    For existing members with no last_activity, you could write a script that gathers those member ids and then run them thru the function above.

    @nielspilon

    Participant

    Thanks Shanebp, just added it to my function.php, registered a new member and its instantly visible at the members page without ever logging in with the new member details 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] New users only visible after logging in’ is closed to new replies.
Skip to toolbar