Search Results for 'Hide Admin'
-
Search Results
-
I’m trying to remove the admin user and other users of the membership list. But all the solutions researched here in the forum have not worked.
I was wondering if it was because of the recent update of WordPress.Does anyone have any solution to help?
thank youWP: 4.1.1 (not multi-site)
BP: 2.2.1
Theme: Twenty Fifteen
Plugins activated: AkismetLink: ClubBnb
Hi everybody.
I recently installed Buddypress (first time) for a travel-community site and all was running smoothly. An hour ago I accidentally overwrote the site’s wp-config.php with my local (vanilla) version. I managed to get it up and running again but I found that the posts, authors, users and other pertinent details are missing from the blog. I checked out the DB at PhpMyAdmin (Godaddy) and saw that they are still there.
Prior to this I backed up my DB (1,500-ish posts and 60+ users who’ll be after my hide when this isn’t resolved so I’m getting my passport ready just in case 😀 ).
I’m stumped now so I might as well ask for help from you guys (while I grab a beer that I do not deserve).
For now I’ll try to recreate the site in my local machine using the most recent DB backup and see what’ll happen.
If you need more specifics just let me know.
Thanks guys.
I have my admin bar and dashboard hidden by a plug in, but if they know what to type in the url they can still access some parts of admin functions. What is the best way to hide everything admin related from users, Im sure Im not the only one with this concern.
Hi @imath,
In this topic you write that the function you provided should work with BuddyPress Version 2.2
https://buddypress.org/support/topic/how-to-remove-tabs-from-group-admin-nav/#post-230995function 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() ) ); } } add_action( 'bp_actions', 'turker_remove_group_admin_tab', 9 );There is still one issue with the manage link like named from @danbp
The normal link is groups/GROUP-SLUG/admin/ and it will become a 404
groups/GROUP-SLUG/admin/edit-details/ will work.
How can I change the manage link to groups/GROUP-SLUG/admin/edit-details/
or better do you have a working solution? Hope you can help.
Cheers,
SvenHi,
I am really struggling with trying to hide my admins from my site. I searched this site and tried every code available with no success. Below is the last code I tried with no success.
https://buddypress.org/support/topic/hide-admins-activities-from-all-activity-feeds-in-buddypress/
Any ideas what I am doing incorrectly? This code is inserted in my child themes fuction.php correct?I am racking my brain on this one!
Thanks for any help,
KenThe Theme I am using is KLEO by Seventh Queen
Buddy Press version Version 2.2.1
Website:http://www.cmpg-annex.org/Other Plugins
Akismet
bbPress
BuddyPress Cover Photo
K Elements
MOJO Marketplace
Paid Memberships Pro
PMPro MailChimp Integration
PMPro Register Helper
PMPro Set Expiration Dates
Register Helper Example
Revolution Slider
rtMedia Pro for WordPress, BuddyPress and bbPress
The Events Calendar
WPBakery Visual Composer// deny access to admins profile. User is redirected to the homepage function bpfr_hide_admins_profile() { global $bp; if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) : wp_redirect( home_url() ); exit; endif; } add_action( 'wp', 'bpfr_hide_admins_profile', 1 ); // Remove admin from the member directory function bpdev_exclude_users($qs=false,$object=false){ $excluded_user='1'; // Id's to remove, separated by comma if($object != 'members' && $object != 'friends')// hide admin to members & friends return $qs; $args=wp_parse_args($qs); if(!empty($args['user_id'])) return $qs; if(!empty($args['exclude'])) $args['exclude'] = $args['exclude'].','.$excluded_user; else $args['exclude'] = $excluded_user; $qs = build_query($args); return $qs; } add_action('bp_ajax_querystring','bpdev_exclude_users',20,2); // once admin is removed, we must recount the members ! function bpfr_hide_get_total_filter($count){ return $count-1; } add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter'); // hide admin's activities from all activity feeds function bpfr_hide_admin_activity( $a, $activities ) { // ... but allow admin to see his activities! if ( is_site_admin() ) return $activities; foreach ( $activities->activities as $key => $activity ) { // ID's to exclude, separated by commas. ID 1 is always the superadmin if ( $activity->user_id == 1 ) { unset( $activities->activities[$key] ); $activities->activity_count = $activities->activity_count-1; $activities->total_activity_count = $activities->total_activity_count-1; $activities->pag_num = $activities->pag_num -1; } } // Renumber the array keys to account for missing items $activities_new = array_values( $activities->activities ); $activities->activities = $activities_new; return $activities; } add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );Hello,
As an administrator, I manage group and I am listed in some group list members.
How to hide me in the list of members for all groups except one?Cheers.
I am using the SweetSate theme, a dating/matching theme which is built on Buddypress.
Instead of people searching for people with profile fields, I want to match people with universities/colleges.
I have my colleges entered in through my admin.
I want students to register on the site but I do not want them visible to anybody else.
I only want the universities/colleges to be visible.
How can I do this?
In the search box for University Locations I can have Medchool – UK or Medschool – Overseas, but it also includes a null/blank field. I want blank fields in all the other search fields but not this one. If all the fields are blank it finds and displays all members.
Site can be seen here: http://hotzoc.com/medical-schools/
I have colleges registered as site role contributors and site users who sign up as subscribers.
Is there any way I can restrict the search only to my ‘contributors’ group not the ‘subscribers’ group?
I want users registered if possible so I can contact them and monitor their profile preferences. I cannot do this if I do not allow registration and just have my colleges as the only registered users.
Any ideas or help greatly appreciated.
I have a bbpress install where all user can edit their profile in the frontend.
So I can hide the admin bar and all users can change password, public name and so on…THE PROBLEM:
When I activate buddypress, the users only can edit their profile in the wordpress backend.
All attempts to edit the userprofile in the buddypress frontend redirect me to 404.Can anybody help. I would like to use buddypress, but without user access to my wordpress backend…
Thanks
Matthias