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

  • Author
  • #94029
     rmedia105
    Participant

    How do you hide the admin profile from showing up on the “top members” section located on the bottom of the site?

     

    #94308
     Laura
    Moderator

    Hello, please check out https://archived.seventhqueen.com/forums/topic/administrator-profiles-2 🙂

    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 🙂

    #94462
     rmedia105
    Participant

    I copied and pasted that code in the instructed place and it gave a error page on the site when you access.

    Please help. Still having issue.

    #94465
     rmedia105
    Participant

    Also, ever since I did that, when I do a search from the home page, I get this error on the top of the site page now:

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/24/5963424/html/lovetohookup/wp-content/themes/sweetdate-child/functions.php:19) in /home/content/24/5963424/html/lovetohookup/wp-content/themes/sweetdate/custom_buddypress/kleo-bp-search.php on line 595

    Bear in mind, because of another issue I was trying to resolve, I am not able to go in to my admin panel.

    Please help.

    #94757
     Laura
    Moderator

    Hello, please access to the file manager of your hosting or ftp and delete the code you just added, it should resolve the issue.
    To hide admins then you might need to contact a freelancer as it seems that this code doesnt work at your website

    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 🙂

    #94777
     rmedia105
    Participant

    I erased the code as the result made my website inaccessible and giving a server error when I placed the in.

    I don’t know if a freelancer can make a code for a software he did not make, I’m not sure about that, moreover, I bought software under the impression that you did not need a freelancer, if not I would not have bought it.

    I am still having an issue. Please help However, it cant be resolved until I am able to login which I am not able to do per your advice from a previous post.

    I appreciate you reaching out to help, but I am still having issues with this software.

    #94802
     rmedia105
    Participant

    I got the login back after a reinstall.

    Please help. Is there any other way to hide the admin from showing up on member search?

    This ones’s a toughie… please help!! =)

    #94805
     Laura
    Moderator

    Hello, lets try this one:
    Add to functions.php of child theme

    COPY CODE
    
    add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
    function bpdev_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 searching for friends list etc?, do not exclude in this case
        if(!empty($args['user_id'])||!empty($args['search_terms']))
            return $qs;
       
        if(!empty($args['exclude']))
            $args['exclude']=$args['exclude'].','.$excluded_user;
        else
            $args['exclude']=$excluded_user;
         
        $qs=build_query($args);
       
       
       return $qs;
       
    }
    

    Change the 1 for the admin id
    How to get user id http://rudrastyh.com/wordpress/get-user-id.html

    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 🙂

    #95010
     rmedia105
    Participant

    Well that worked! It shows in the member count, but no longer visible on members search.

    Thanks!

    #95347
     Laura
    Moderator

    Hello, glad it worked 🙂

    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 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?