This topic has 21 replies, 3 voices, and was last updated 9 years by Andrei.

  • Author
  • #53259
     heebeha
    Participant

    How can I adjust the setting so users don’t have to login once to show up in the members directory and search results? I need all registered users to be searchable and in the members directory. I don’t want them to have to login once to show. THIS IS A CRITICAL SUPPORT REQUEST

    #53362
     Laura
    Moderator

    Hello, please try to add the following code to your functions.php in child theme, this will make user appear once they register. After adding the code, go to Admin Panel > Tools > Buddypress and check all options, this will “activate” old users that didnt appear

    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 🙂

    #53425
     heebeha
    Participant

    This did nothing. I even tried adding it to the main functions.php file and still nothing. It cause the site to not show actually, after adding the code to the main functions.php file. Maybe IU added it in the wrong area of the file?

    I appreciate the help Laura. Please help me further to get it to work. Did you test this on your site”?

    #53710
     Laura
    Moderator

    Hello, yes this is tested and works, could you please share your functions.php of child theme ? 🙂

    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 🙂

    #53716
     heebeha
    Participant

    attached

    #53721
     heebeha
    Participant

    The file is empty.

    #53722
     heebeha
    Participant

    ALSO I DONT KNOW IF I SAID THIS BNUT I AM USING BUDDYPRESS.

    #53767
     heebeha
    Participant

    Could this help?
    I found this online, regarding buddypress activating users
    http://etivite.com/api-hooks/buddypress/trigger/do_action/bp_core_activated_user/

    #54058
     Laura
    Moderator

    Hello, attach the file as a .txt please

    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 🙂

    #54067
     heebeha
    Participant

    Ok but there is nothing in the child theme function.php file, Maybe you could send me the child theme function.php file you are using that works?

    I am attaching both of my functions files from the main theme and child theme. I renamed them so you could tell which ones they are.

    Your help is greatly appreciated.
    Again, Maybe you could send me the child theme function.php file you are using that works and the main functions.php file you are using?

    Attachments:
    You must be logged in to view attached files.
    #54352
     Laura
    Moderator

    Hello, please try to replace all of functions.php of CHILD theme with the following

    COPY CODE
    
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    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"));
    }
    function make_user_active( $user_id ) {
    	bp_update_user_last_activity( $user_id );
    }
    add_action ('user_register', 'make_user_active', 1, 11);
    ?>
    
    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 🙂

    #54392
     heebeha
    Participant

    After adding it my sites goes dark. Nothing shows up.

    #54407
     heebeha
    Participant

    Are you activating the child theme or the main theme?
    When I activate the child theme with this code in the functions.php file it makes my site go dark.
    Have you done any other modifications to your theme maybe?

    I really need this to work…..

    #54495
     Laura
    Moderator

    Hello, the functions should work in child theme, maybe you have a plugin that creates a conflict with the function, please try to disable all but buddypress and then add the function, if it works means that one of your plugins is creating a conflict

    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 🙂

    #54650
     heebeha
    Participant

    I deactivated all plugins one at a time and tested the site, no good. I even deactivated all but BuddyPress still no good. I even tried deactivating all plugins and still no good.

    What plugins do you have active?

    #54703
     Laura
    Moderator

    Hello, can you share ftp details and wp-admin details? 🙂

    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 🙂

    #54740
     heebeha
    Participant
    This reply has been set as private.
    #54741
     heebeha
    Participant
    This reply has been set as private.
    #54744
     heebeha
    Participant

    I just added some code to the child theme functions.php file to hide the admin account. so now its not an empty file

    #54763
     Laura
    Moderator

    Hello, to recount members try to go to Tools > Buddypress and check all options

    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 🙂

    #54820
     heebeha
    Participant

    Did you FTP to my account and do anything on the Admin side of the site?
    I need to change the FTP login credentials and delete the admin account I created for you after you fix things for me.

    #55183
     Andrei
    Moderator

    Hi @heebeha, the user activation script is now installed correctly and whenever a new user will register, his account will be visible in the members directory by default.

    What I’ve realized when I’ve been given a look at your install, is that because of some plugin that you used, you somehow managed to block/blacklist your users, and from 400+ users you only have 11 available.

    I tried to find a quick fix but unfortunately I didn’t found anything, dunno if they were spam users, if that would be the case then you shouldn’t worry about them.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 22 posts - 1 through 22 (of 22 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?