-
Author
-
December 18, 2015 at 05:53 #94029rmedia105Participant
How do you hide the admin profile from showing up on the “top members” section located on the bottom of the site?
December 19, 2015 at 22:23 #94308LauraModeratorHello, 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 solutionLaura 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 🙂
December 21, 2015 at 01:40 #94462rmedia105ParticipantI 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.
December 21, 2015 at 01:45 #94465rmedia105ParticipantAlso, 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.
December 22, 2015 at 00:42 #94757LauraModeratorHello, 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 websiteHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
December 22, 2015 at 04:23 #94777rmedia105ParticipantI 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.
December 22, 2015 at 08:50 #94802rmedia105ParticipantI 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!! =)
December 22, 2015 at 09:07 #94805LauraModeratorHello, lets try this one:
Add to functions.php of child themeCOPY CODEadd_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.htmlHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
December 23, 2015 at 08:28 #95010rmedia105ParticipantWell that worked! It shows in the member count, but no longer visible on members search.
Thanks!
December 27, 2015 at 15:33 #95347LauraModeratorHello, glad it worked 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
-
AuthorPosts
You must be logged in to reply to this topic.