Search Results for 'Hide Admin'
-
Search Results
-
Topic: Page and post budypress
I’m going to do more with your admin groups .
For example
The box administrator with limited opportunities can base your group and take their users, and manage them . But it can not manage other groups.
Then the administrator and his group can hide posts or publish .
Group administrator can grant up to the author ’s website , but can not modify pages of other groups ?
Possible?
Thank you
Hi, I’m using Buddypress Version 2.5.3 and WordPress 4.5.2.
I’m running a multisite wordpress installation, Right now I’m trying to exclude the suscribers in the members directory, this is the code i found:
function bpdev_exclude_users($qs=false,$object=false){ //list of users to exclude if($object!='members')//hide for members only return $qs; $excluded_user = implode(',',get_users('role=subscriber&fields=ID')); $excluded_admins = implode(',',get_users('role=administrator&fields=ID')); //$excluded_self=bp_loggedin_user_id(); $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'])) return $qs; if(!empty($args['exclude'])){ $args['exclude']=$args['exclude'].','.$excluded_user; $args['exclude']=$args['exclude'].','.$excluded_admins; //$args['exclude']=$args['exclude'].','.$excluded_self; } else { $args['exclude']=$excluded_user; if(!empty($args['exclude'])) $args['exclude']= $args['exclude'].','.$excluded_admins; else $args['exclude']=$excluded_admins; //$args['exclude']=$excluded_self; } $qs=build_query($args); return $qs; } add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
but right now, the get_users function won’t show any subscriber because there are not suscribers on this site, but on the other ones. Anyway, the buddypress is showing all users including the ones in the other sites.
any hint?
Thanks
I’ve been searching and trying many possible solutions for this but still haven’t found anything that works for me. Admins are showing up in the group member list. I need to hide them in the list but still allow their activity to show in the activity stream.
I found the parameter exclude_admins_mods in the bp-groups-functions.php and it’s set to true but admins are still showing. I’m not experience with php so this is a trial and error thing.
hello there!
I am new to BuddyPress.
1. In BuddyPress, we by default get to see member page. I want to know how to redirect someone who is logging in/ new user after registration to News feed?
2. I want to keep those wall, timeline and all in menu bar instead of profile tab. How to do that?
3. I am unable to hide admin bar/ that WordPress logo bar for non-admin user. no plugin helping me out.
4. how to make the menu such that signed in user can see log out button and other sign in/ register?
5. how to enable realtime notification and instant messaging private n groups both?
6. how to remove show dropdown menu in profile
PS:- I don’t know PHP much. moreover, I cannot afford to hire someone.hi.
i want to hide some tabs only for non-admins.
for example “Compose”
underMessage > Compose.
in bp-messages/classes/class-bp-component.php lines:199 & 287.
it’s possible to add a conditional if().<strong>if(current_user_can(administrator))</strong> { $sub_nav[] = array( 'name'=> __( 'Compose', 'buddypress' ), 'slug'=> 'compose', 'parent_url'=> $messages_link, 'parent_slug'=> $slug, 'screen_function'=> 'messages_screen_compose', 'position'=> 30, 'user_has_access'=> $access }
and do this for line 287.
so, both the Compose tab and the ability to composing a msg will be in admin hands.
BUT it’s not a good way to hack core codes!
so how can i do this?the things i want to hide from non-admins:
1) Notification tab
2) Compose (sub-nav)
3) hide the panel and restrict the access to change Account email (from Setting > General)thanks in advance.