This topic has 7 replies, 2 voices, and was last updated 10 years by themeforest.
-
Author
Tagged: member's
-
April 1, 2014 at 01:53 #13972themeforestParticipant
Hi: Can you recommend how I may exclude certain member type from the Member’s Directory?
Here for example, I want to exclude ‘administrators’ and ‘group leaders’ from showing up on this list – and only allow those with ‘administrator’ and ‘group leaders’ with access to the full list.
April 1, 2014 at 04:09 #13994sharmstrModeratorgoogle ‘exclude members from buddypress directory’. This is a common request in the buddypress forums. If you get stuck, hit me up and I’ll see if I can help.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 1, 2014 at 04:36 #14000themeforestParticipanthi sharmstr – thanks! i reviewed the forums and found one guidance that seemed to work for many. Here for example, meg@info suggested an easy solution, however, I get an error message when I run it. Source
Basically, I add this code to functions.php :
https://gist.github.com/dzmounir/8285459
the author noted no need to edit any template files and to just change the query by putting the role ids to hide.
$excluded_roles = array( ‘administrator’, ‘subscriber’ );however, I’m thinking this file has custom code to make the awesome Kleo theme 🙂
Can you suggest where I can include the above?April 1, 2014 at 04:37 #14001themeforestParticipantSorry, here’s the link: https://buddypress.org/support/topic/excluding-roles-from-the-members-directory/
April 1, 2014 at 05:24 #14004sharmstrModeratorWorked fine for me. put it in /kelo-child/functions.php.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 1, 2014 at 05:35 #14005themeforestParticipantyou’re the best! thanks @sharmstr!! Putting it in kelo-child worked 🙂
April 1, 2014 at 05:53 #14006sharmstrModeratorNo problem. Dont ever modify files in the Kleo directory. If you need to, copy the file you need to modify to the kleo-child directory. None of those files will be touched during updates.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 1, 2014 at 06:01 #14007themeforestParticipantDefinitely! thank you for the guidance, hats off to you 🙂
-
AuthorPosts
The topic ‘Exclude members from Member's Directory’ is closed to new replies.