Search Results for 'Hide Admin'
-
Search Results
-
Hello I had a question in continuation of the topic below ref removing the delete-group from group admins using the code provided below :
https://buddypress.org/support/topic/how-to-remove-tabs-from-group-admin-nav-2/#post-261003function turker_remove_group_admin_tab() { if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) { return; } // Add the admin subnav slug you want to hide in the // following array $hide_tabs = array( 'group-avatar' => 1, 'delete-group' => 1, ); $parent_nav_slug = bp_get_current_group_slug() . '_manage'; // Remove the nav items foreach ( array_keys( $hide_tabs ) as $tab ) { bp_core_remove_subnav_item( $parent_nav_slug, $tab ); } // You may want to be sure the user can't access if ( ! empty( $hide_tabs[ bp_action_variable( 0 ) ] ) ) { bp_core_add_message( 'Sorry buddy, but this part is restricted to super admins!', 'error' ); bp_core_redirect( bp_get_group_permalink( groups_get_current_group() ) ); } }
Dan writes:
Get Ready! 2.4.0 will introduce important changes in Groups homes
“The function is still working, but not completely (tabs aren’t hidden). You probably need to complete it with $component (read above document)”
This code was written circa 2.2. Im not sure where/how to add the $component to get the code to work. Any assistance is appreciated thank you.
Hi, I’m using the plugin BuddyPress Admin Only Profile Fields to hide certain xprofile fields, I have quite a few, when viewing the admin EDIT (front view) page, it shows a blank white screen. I cannot figure out whats wrong with the site, if anyone can help I’d greatly appreciate it.
Hi, I have previously been asked to set my site up so that buddyprerss members’ profiles can not be found by search engines. They want theme to only be accessible by visiting the site. I have put a robots file on my site (see below) but am still getting profiles appearing in searches – please can you tell me if there is anything I need to add to the file. Thanks, Matt.
User-agent: *
Disallow: */activity/p/*
Disallow: /docs/
Disallow: *send-invites*
Disallow: */groups/*members*
Disallow: */groups/*media*
Disallow: *widget-title*
Disallow: *members/*activity*
Disallow: *members/*notifications*
Disallow: *members/*friends*
Disallow: *members/*groups*
Disallow: *members/*docs*
Disallow: *members/*media*
Disallow: *acpage*
Disallow: *messages*
Disallow: *friends*
Disallow: *settings*
Disallow: /*/comment-page*
Disallow: *register*
Disallow: *login*
Disallow: *profile*
Disallow: *admin*
Disallow: *includes*
Disallow: *content*Hi,
I’d like to be able to hide the header, footer and sidebar that appears in a member’s profile.
I’ve had a read and have found how to do it using a child theme, but I am just using the plugin, not the theme.
I’ve tried using the bp-custom.php file.
Firstly with the following which I have inserted as Custom CSS (via my OptimizePress theme’s inbuilt option) on posts where I want the same things hidden.
.banner{display:none;}
#nav-top{display:none;}
#nav-bottom{display:none;}
.page-header{display:none}
.in-page-ad {display: none}
.op-author-info {display: none}
.footer-content {display: none}
.wpadminbar {display: none}It didn’t like this and the other things I tried here didn’t seem to do anything.
Any help with what I can do would be greatly appreciated 🙂
Thanks,
Jon
i want to know
1.how to rename activity page “site-wide activity”
to something else.
2.how can i hide activity page from everyone except the admin
so that only admin can see the activity
3.how can i have user profile add to menu bar?