Just caught wind of this plugin to hide admin activity: https://wordpress.org/extend/plugins/bp-ninja/
@sbrajesh
No luck with that code to hide Admin activity. Can you pastebin to make sure I have it clean?
Possible cross-post: My apologies in advance.
Project site: http://nubiint.com
BuddyPress Sub-directory: http://nubiint.com/community
I’ve enabled the option to “Hide admin bar for logged out users” and it works fine. I’m now trying to prevent the bar from appearing on other sub-directories for logged in users. So I have the following sub-directories:
/business
/int-info
/networking
/tech
I’ve uploaded the “bp-hide-sub-blog-adminbar” plugin and activated it but it doesn’t do anything by default so I add a blog ID as follows:
<?php
if($blog_id != 2) < – /business Blog ID
This doesn’t do anything. Am I missing something?
Another issue I notice on the Main MU site for logged in users is the following that appears below the website:
•My Account
?Activity
?Personal
?Friends
?Groups
?Favorites
? @admin Mentions
?Profile
?Public
?Edit Profile
?Change Avatar
?Blogs (6)
?Messages ?Inbox
?Sent Messages
?Compose
?Notices
?Friends (0)
?My Friends
?Requests
?Groups (0)
?My Groups
?Invites
?Settings
?General
?Notifications
?Log Out
•My Blogs
?NU.B.I-I.N.T.
?Dashboard
?New Post
?Manage Posts
?Manage Comments
?Business
?Dashboard
?New Post
?Manage Posts
?Manage Comments
?Community
?Dashboard
?New Post
?Manage Posts
?Manage Comments
?Networking
?Dashboard
?New Post
?Manage Posts
?Manage Comments
?Technology
?Dashboard
?New Post
?Manage Posts
?Manage Comments
?Internet Information
?Dashboard
?New Post
?Manage Posts
?Manage Comments
•Notifications
?No new notifications.
•Visit
?Random Member
?Random Group
?Random Blog
You can see it by navigating to the site above. How do I remove this?
Any responses appreciated.
hey @r-a-y no prob.
@scotm looking forward to hear if it works or not.
@sbrajesh I’m going to try that…Thanks
BP 1.2.3 does provide is_site_admin() in the compat file, FWIW.
Hey @sbrajesh, you’re right! Sorry about that! Was thinking off the top
hi @r-a-y is_site_admin() and is_admin() are very different. is_admin() checks whether you are inside wordpress admin or not.
@scotm
How about making the activity of admin user private
`add_filter(“bp_activity_hide_sitewide_before_save”,”make_admin_activity_private”,10,2);
function make_admin_activity_private($hide_sitewide,$activity){
//get the current activity
if(current_user_can(‘manage_options’))//user is admin
return 1;
else
return $hide_sitewide;
}
`
Hopefully the code goes through this forum.
The snippet only works on WPMU.
If you’re using standard WP, replace is_site_admin() with if(current_user_can(‘manage_options’)) (thanks Brajesh).
Also, you could try adding the function in your theme’s functions.php (omit the add_action line).
@scotm – if you read the end of that post, there’s a free solution noted by Brajesh.
@DJPaul @scotm – I believe @sbrajesh did a plugin to hide admin stuff… let me see if I can find it:
Stealth Mode for BuddyPress Site Admin Plugin
@DJPaul Any activity that the Admin carries out in my opinion should be hidden. Starting a Group, a forum topic, etc. In my case I am creating a number of groups for members to join and I’d like to hide all of that activity.
@scotm what are you doing on your BP site with the admin user to generate activity which you don’t want in the activity stream?
@nuprn1 did you do a plugin to hide the admin account from the members directory, or was that someone else?
I’m not sure if it hides activity, but I heard a trick to “hiding” admins from the member list was to change their status in the database of the user to “99” and that prevents it from showing in the member’s list.
Still curious about this one. Can we hide the Admin throughout BuddyPress activity sitewide?
Hi guys,
My site is financial based and has to abide by governing rules set by the Financial Authorities. Therefore when someone posts a forum post it has to be uneditable and undeletable by the member who posted it as it. An admin can edit it or delete it but not the member. Is there anyway to hide the buttons from the member or disable them altogether?
@warut
V1.3 works just fine… thanks!
Another suggestion: allow site admins to define a default width and height, and allow users to adjust if needed.
As it is now, badge dimensions are defined by those of the uploaded logo (width if vertical layout, height if horizontal layout).
Oh, and please do allow site admins/users to show or hide the field labels. As Greg says, they aren’t really needed.
@warut
I’m playing with 1.3 and it’s working great…
2 suggestions:
1. Create an option in the admin menu to hide the names of the profile fields. Most of the fields are pretty self explanatory anyway and the extra words just clutter things up.
2. Create an extra field for users to type in a short message or description, giving them some other way to personalize their badge.
It looks great warut!
@ Smuda
Well ok, but I stand by my point I don’t think you should block all traffic towards wp-admin. Just hide it.
@ etiviti (rich!)
Isn’t it smarter to use current_user_can(‘edit_posts’)? That way anything higher than a subscriber can access the wp-admin.
Same error on fresh install… Maybe i should just leave it there? or create a different bar that will load only for authors?
I’m using WPMU 2.9.2 and the latest version of Buddypress. I guess i’ll try using it in a fresh install, maybe someone on our staff edited something they shouldn’t and it’s causing this error…
Thanks
is_user_logged_in() is present in both WP and WPMU. Odd. What versions of WordPress/WordPress MU are you using?