Search Results for 'Hide Admin'
-
AuthorSearch Results
-
August 3, 2011 at 10:11 pm #117606
In reply to: Hide Admin
DuckyParticipantThe reason chaging the users status to 99 will hide them is because it marks the user as a spammer. Which means only an admin can view their profile. However, thus far it has been the only way I have been able to accomplish the task of hiding the administrator.
July 17, 2011 at 7:05 pm #116460In reply to: Way to disable admin bar on certain themes?
stripedsquirrelParticipantThere is a ‘hide admin bar for logged out users’ option. But I want the bar on regular BP sites, I just did not want it on a domain-mapped site that is totally separate (though running on the same WP multisite installation).
http://blog.netweblogic.com/php/wordpress-php/remove-admin-bar-plugin/ did the trick for me.
July 8, 2011 at 8:50 pm #116012In reply to: Is it possible to make some profile fields private?
danbpfrParticipantMaybe this can help ?
https://buddypress.org/community/groups/creating-extending/forum/topic/hide-profile-field/
https://buddypress.org/community/groups/bp-profile-privacy/
http://bp-tricks.com/snippets/displaying-certain-profile-fields-on-your-members-profile-page/also remember that privacy controls don’t apply to Admin. Admin can see everything. Log in as a regular user and then test.
June 28, 2011 at 1:03 pm #115347In reply to: Members’ privacy: how can I hide members’ profiles?
dudeMemberthanks for the reply @pcwriter
If you don’t mind I need a little more assistance with this (as I’m not code savvy)
how do I find this ‘child-theme’ you mention
do I go to cpanel..? or in my admin (dashboard)Also, I do not want to restrict ‘members’ viewing, only their ‘profiles’
June 23, 2011 at 11:33 am #115091angslyckeParticipantExcellent piece of information! Could prove to be really useful for me as well to hide administrators.
June 19, 2011 at 5:32 pm #114811MRSepehrMemberHello everyone,
Add the codes below to your theme’s function.php file :
add_action(‘admin_head’, ‘adminbarhide’);
function adminbarhide() {
define(‘BP_DISABLE_ADMIN_BAR’, true);
}then go to wp-content/your-theme-directory/_inc/css/adminbar.css and change “padding-top: 25px” on second line to “padding-top: 0px” ,
this code will remove admin bar only from your dashboard, and css code will hide white space after removing admin bar.after all I’m sorry about my bad English if there was some wrong spelling.
June 6, 2011 at 6:52 pm #114003r-a-yKeymasterThere’s a plugin for this:
https://wordpress.org/extend/plugins/buddypress-block-activity-stream-types/It’s an older plugin and the developer is now busy with other projects, so you’ll need to update the plugin manually so the admin menu will show up in WP.
Read this tutorial:
http://code.ipstenu.org/2011/wordpress-3-1-network-menu/(Edit) Just read the full post, you want to hide it from group feeds only? Or throughout the site? If throughout the site, the plugin will do the job. If only on group feeds, you can take the basic premise from the plugin, then you’ll need to do a conditional to check if you’re in a BP feed.
May 26, 2011 at 7:02 am #113094In reply to: Hide Admin
Magi182ParticipantFor those still looking for a solution to this, you can add the following code to the functions.php file of your active theme. The username gets replaced with the username you wish to hide. Alternatively, you could substitute the stuff in the parens of the conditional with a properly done current_user_can() statement to hide all the administrators.
`
global $current_user;
get_currentuserinfo();if( $current_user->user_login == ‘username’ ) {
remove_action(“wp_head”,”bp_core_record_activity”);
}
`May 24, 2011 at 12:53 pm #112921vikramtalkinMemberi am using bp role manager to create roles for users in wordpress.
now i want to that only user with specific role should be approved by admin through BuddyPress Registration Options plugin it is now used for every type of users registered.
how can i do this plz suggest.May 16, 2011 at 2:16 pm #112384In reply to: missing nav-bar
Hugo AshmoreParticipantNot necessarily an easy fix with so little info to go on. Default is to show the adminbar all the time so setting ‘yes’ to hide it for logged out users isn’t going to change things for logged in users.
Usual questions must be asked now: Are you running a custom theme? If so then can you revert to bp-default and see how that performs.
May 15, 2011 at 8:47 pm #112340In reply to: missing nav-bar
DougParticipantyes, that is the bar, and “no” is checked for hide admin bar for logged out users. Would yes change that?
May 12, 2011 at 5:06 pm #112144In reply to: Hi! I want to make a custom buddybar but..
@mercimeParticipant== All I want to do is to hide the “Dashboard” button ==
Know that the “Dashboard” link in adminbar appears for logged-in users who have a role greater than Subscriber on your blog. If you still want to do this then if you don’t have one yet, create a bp-custom.php file, add the code below and upload to wp-content/plugins folder:
`<?php
remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_thisblog_menu’, 6 );
?>`== have Notifications and buttons like “Edit Profile” etc [in adminbar] ==
Notifications link and “Edit Profile” buttons are already in adminbar for logged-in-users.
May 10, 2011 at 9:01 pm #112005Prince Abiola OgundipeParticipantif you simply want to hide Admin bar login and sign up, just add
remove_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );
to your functions.php and login and sign up will go away
May 10, 2011 at 5:54 am #111964In reply to: How Do I Remove Log Out From “My Account” Menu?
chrisreg1MemberHmm unfortunately, that still did not work. Thanks for all your help thus far guys. Here is how my problem originated:
I recently transferred my site from the default ”/wordpress/” sub directory to my root directory. Everything works fine in BuddyPress except for the LOGOUT and LOGIN menu options from the BuddyPress menu bar (up at the top).
Upon looking at the URL that the logout and login tries to redirect to (in the tag), it still thinks it is in the ”/wordpress” subdirectory and the thus results in a Error 404 – Page Not Found problem.
I’ve search various ways to do this but people have either not have found a solution or seem to not have posted it. I originally thought I could just use the ‘Add All Nav Links to Admin Bar’ plugin (https://buddypress.org/community/groups/add-all-nav-links-to-bp-adminbar/) and hide the Login and Sign Up options but unfortunately the “Log Out” still remains since it is under the ‘My Account’.
Any help would be much appreciated, thanks.
April 19, 2011 at 3:47 am #110538Webweaver21MemberThanks for your help. I did indeed have the setting “Hide admin bar for logged out users?:” set to YES. I switched it to NO and now the menu bar appears whether logged in or logged out.
The only problem is that new users still only see the “Register” and “Log In” menu items, even when they are logged in. This is puzzling because I can access the pages directly as a new user if I type in the URL.
The test user I’m working with is visible under the Users listing of my BP root blog so it doesn’t seem like that would be the problem. I even gave the test user Admin priviledges to make sure there were no access level issues. The only difference is that the test user was signed up after I activated multiuser mode.
The way that WP eMember handles membership is directly linked to the WP user database. The only thing that WP eMember does is allow a new user to be created and grants them appropriate priviledges dependent on their membership level. It does seem like there could be something happening with the sign-up
When I activated WP multiuser it transferred all my plugins to the network admin panel instead of the individual site. WP eMember is now a network-wide plugin, along with BP. Since WP eMember creates a WP user account, I’m guessing it’s now creating user accounts outside of the main site and thus the main site doesn’t recognize the user? Perhaps I should move a bunch of plugins back to the main site instead of the whole network? I don’t really need any plugins for the user blogs so they could all be on the main site and things might work better. I’m not quite sure how I’d manage moving the plugins though.
April 19, 2011 at 2:38 am #110536Boone GorgesKeymasterThanks for the clarification. That makes a lot more sense.
Go to Dashboard > BuddyPress > General Settings, and look at the setting for “Hide admin bar for logged out users?:” Does it say Yes? Try switching it to No.
I’m guessing that users are not being added automatically to the BP root blog (a situation which would have been irrelevant in non-MS mode). It’s possible that either the setting I mention above, or something about the way that WP eMember handles membership in an MS network, is interfering with the way that the admin bar is conditionally displayed.
April 17, 2011 at 11:45 am #110456In reply to: Admin Profile page
Hugo AshmoreParticipantYou could always edit the template files for /members/single/ (in a child theme) and wrap default actions in something like :
`if( ‘1’ == bp_displayed_user_id() )`
As a check for the displayed user being ‘1’ or primary network super_admin then you’ll do stuff based on that such as unique markup for that user alone or use in a ‘if not’ manner to hide certain profile display elements.
That’s a basic approach you could extend that to be more flexible by checking a users role bp_displayed_user() checked against WP roles and capabilities for that user.
April 13, 2011 at 1:02 pm #110157In reply to: Hide Admin
explanetomeMember@dmanthony : cool. not sure that I ‘ve understood where I should enter 99 to hide admin … ? merci
April 4, 2011 at 2:45 pm #109528In reply to: how to hide admin activity on Buddypress activity?
@mercimeParticipantalso, from @sbrajesh, an alternative to the the Stealth Mode for Super Admins – Put this code in bp-custom.php and None of the site admin activity will be recorded nor will you appear in the Who is Online/ recently active members widget. –
`add_action(“plugins_loaded”,”bpdev_init_sm_mode”);
function bpdev_init_sm_mode(){
if(is_site_admin())
remove_action(“wp_head”,”bp_core_record_activity”); //id SM is on, remove the record activity hook
}`April 4, 2011 at 12:40 pm #109525In reply to: how to hide admin activity on Buddypress activity?
VirtualiParticipantwhen admin post on wordpress, post also appeared on BuddyPress activity, as admin’s activity.
how to prevent it? how to hide admin activity?
Try this plugin https://buddypress.org/community/groups/buddypress-block-activity-stream-types/
April 4, 2011 at 4:18 am #109502wilsontrayMemberI added it but I still dont see an easy way to set it as a default theme for new blogs… did they just hide it with the new 3.1 multsite or somthing? Or did I install it incorrectly as now I dont have my superadmin menu just a way to toggle between network and site admin on the top menu bar
April 3, 2011 at 6:05 pm #109474In reply to: Removing site name from admin bar
@mikey3dParticipantIf you are doing a research about (display:none), no one said it’s not the best way to use it. There is a purpose for using (display:none) to hide and it does not remove it.
April 2, 2011 at 6:37 pm #109389In reply to: Hide Admin
dmanthonyMemberI’m not sure why ’99’ works, but it does and I am most grateful for it. Thanks
April 2, 2011 at 10:17 am #109359goldbrickMemberwould there be any code somewhere to hide pages unless an admin user?
March 24, 2011 at 2:14 pm #108625dodisabaruddinMemberOuch..It’s a rude way. The code just killing the admin bar, and lefting some space.
-
AuthorSearch Results