This topic has 7 replies, 4 voices, and was last updated 11 years by SQadmin.

  • Author
  • #816
     kellylouise007
    Participant

    Hey there,

    Is there an option for the user to make his entire profile private?
    I swear I saw this option when messing about with the settings but I can’t seem to find it now?? Any help appreciated, thank you.

    Also, what default user ‘type’ should I make my users when they register? and is there a way of not allowing users access to the wordpress login panel.

    Thanks again.

    #817
     twoshoes
    Participant

    In >Sweetdate >Miscellaneous the “Admin toolbar” allows you to disable access to the WP backend. My default is “Subscriber” for my members.

    #821
     SQadmin
    Keymaster

    Hi
    You can set privacy for profile fields individually.
    Users should be Subscribers so they won’t have too much permissions.
    For the login restriction you can try Theme my login plugin
    Best regards

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

    Hey, Yes I’m aware I can set individual fields to private, but can I hide the entire profile?
    Thanks twoshoes, most helpful.

    Thanks again.

    #864
     SQadmin
    Keymaster

    Hi
    Right now you can’t hide whole profile but we’ll look into it.

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

    That would be handy, Thank you.

    #1009
     AKG86
    Participant

    Yeah that would be good, I’m happy to run my website, however I don’t want my profile to be visible on the site…is there another way to take it off?

    #1040
     SQadmin
    Keymaster

    Hi,
    To hide Admin profile you could add this snippet to your sweetdate-child/functions.php:

    COPY CODE
    
    
    add_action('bp_init', 'kleo_private_admin');
    function kleo_private_admin(){
        global $bp;
        if(is_super_admin())
        {
            remove_action("wp_head","bp_core_record_activity"); //id SM is on, remove the record activity hook
            //then remove the last activity, if present
            delete_user_meta($bp->loggedin_user->id, 'last_activity');
        }
    }
    
    add_action('bp_ajax_querystring','kleo_exclude_users',20,2);
    function kleo_exclude_users($qs=false,$object=false)
    {
        //list of users to exclude
    
        $excluded_user='1';//comma separated ids of users whom you want to exclude
    
        if($object!='members')//hide for members only
        return $qs;
    
        $args=wp_parse_args($qs);
    
        //check if we are listing friends?, do not exclude in this case
        if(!empty($args['user_id']))
        return $qs;
    
        if(!empty($args['exclude']))
        $args['exclude']=$args['exclude'].','.$excluded_user;
        else
        $args['exclude']=$excluded_user;
    
        $qs=build_query($args);
    
        return $qs;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 8 posts - 1 through 8 (of 8 total)

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

Log in with your credentials

Forgot your details?