• Current Version WP installed with buddypress with woffice theme.

    I’ve imported my user database from my other member directory that was in Miva, and the do show in user list as active subscribers,

    The problem I’m running into it’s that the are not showing up on the members page until the log in the first time.

    Does anyone know a way to fix this issue so all my members are listed on the members page?

    Maybe insert today’s days in all users last log in date in the MySQL database? If so, can someone help me with the instructions how to insert that into all users?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    For member page content, I recommend you ask in the BuddyPress dedicated support forum where the plugin developers and expert users will be able to help you.

    I can help you with saving data in the user meta table when a user logs in. This aspect would relate to altering core WP functionality and would be independent from BuddyPress. You would hook the ‘wp_login’ action, which passes the logged in user’s WP_User object to your callback as the second parameter (user_login is first). You are after the user ID, $user->ID if the passed user object is collected with $user. Use the ID to call update_user_meta() in order to save the current timestamp. I prefer saving Unix timestamps over more human readable formats. They are easier to do math upon, like if it has been 3 days since last login or similar.

Viewing 1 replies (of 1 total)
  • The topic ‘New users not showing on member page until they sign in’ is closed to new replies.