This topic has 14 replies, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #67290
     iamj_kim
    Participant

    Hello,

    When I create a new member through the backend as admin, I have to log in as that user to activate and be present in the members directory. Is that the way that is supposed to work? If not, how can I have the member be automatically activated without having to log in as that member? I have over 200 members to create so this is important for this project. Thanks!

    #67432
     Laura
    Moderator

    Hello, yes thats how it should work, but you can use this code in your functions.php ( child theme ) to activate them automatically.

    COPY CODE
    
    add_action('bp_core_activated_user', 'kleo_add_member_activity');
    function kleo_add_member_activity($user_id)
    {
    	add_user_meta( $user_id, 'last_activity', date("Y-m-d H:i:s"));
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #67497
     iamj_kim
    Participant

    Well, that’s not working for me. After adding the code to the child theme functions file, I still have to login as the new member to get them to show up in the member directory. Could you confirm that it works on your end? I am entering a new user in the admin, entering their extended profile, and looking for them in the member directory – from which they are missing.

    Thanks.

    #67561
     iamj_kim
    Participant

    Also, can you suggest a plugin that will activate users? Thx.

    #67719
     Laura
    Moderator

    Hello, it does work for me, please try to go to Tools > Buddypress and check out all options then check directory again.
    To activate users do you mean not send then an activation email?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #67731
     iamj_kim
    Participant

    Yes, I want to create user in the backend and have them show up in the Directory. Does that code accomplish that? It doesn’t work for me, even after updating the last activity in the buddypress tools section. Should I create a live site and send to you the login details? I just want to make sure that the activation can be manually done by the admin in the backend. Thx.

    #67963
     Laura
    Moderator

    Hello, activate the user is avaible by just going to Pending users in Users section. But for them to appear in the members directory they need to login at least once. The code disabled the need to login of the user to appear in members directory, but their account needs to be activated.

    So You create the user in backend > Activate them in Pending ( or autoactivate them with a plugin ) > User logs in for the first time and appear in member list ( Without the code ) User appear in the directory ( With Code )

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #68502
     iamj_kim
    Participant

    Hello Laura,

    It is still not working for me. Could you check my site to see the problem? My login/CP details are below and functions file attached. Thx so much!

    #68503
     iamj_kim
    Participant
    This reply has been set as private.
    #68504
     iamj_kim
    Participant
    This reply has been set as private.
    #68656
     Laura
    Moderator
    This reply has been set as private.
    #68661
     iamj_kim
    Participant

    Hello,

    I activated everyone of those, and none show up in the members area. Can u go through the process of creating and activating a user in the backend which shows up in Members? Thanks.

    #68732
     Laura
    Moderator

    Hello, if you activated all of them, to show up in search they need to log in for the first time

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #69052
     iamj_kim
    Participant

    Hello Laura,

    I’m really confused. You said “Hello, it does work for me….The code disabled the need to login of the user to appear in members directory, but their account needs to be activated.” And then “So You create the user in backend > Activate them in Pending ( or autoactivate them with a plugin ) > User logs in for the first time and appear in member list ( Without the code ) User appear in the directory ( With Code )”

    I have the code and activated the user. Then you said “if you activated all of them, to show up in search they need to log in for the first time”

    So if it was working for you, why do users have to log in to show up in the directory? It seems not clear to me. Could you please clarify? Thank you.

    #69184
     Laura
    Moderator

    Hello, it works for users that have logged in, as i told you it worked, but if you get new users, they need to activate their account, then login.

    Also to check out you can go to Settings > Buddypress adn check all options, it would refresh the data, because maybe someone ligged in but didnt appeared. Its how buddypress works

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?