Search Results for 'Hide Admin'
-
AuthorSearch Results
-
November 23, 2011 at 4:38 pm #124887
In reply to: ”Create a Group” button only allow admin to see
Nahum
Participantremoving the button from the groups index page alone will not stop your members from being able to create groups…
have you seen this…to limit group creation to admins
If you just want to hide the button…maybe something like
`<?php if (is_user_logged_in() && current_user_can('administrator'))
>
your button stuff
`November 21, 2011 at 7:57 pm #124774In reply to: how to hide admin activity on Buddypress activity?
@mercime
Participant@igotmore There’s also this other plugin for that plugin https://wordpress.org/extend/plugins/bp-ninja/
November 20, 2011 at 10:09 pm #124737In reply to: how to hide admin activity on Buddypress activity?
igotmore
MemberNovember 20, 2011 at 9:38 pm #124736In reply to: Hide Admin
igotmore
MemberI put the code in my Theme functions (functions.php)
should i put it in buddypress/bp-activity/bp-activity-functions.php or ?
I’m noob in codes & coding, but I really need this, so I hope someone will help me get it done
November 20, 2011 at 9:31 pm #124735In reply to: Hide Admin
igotmore
MemberHey Magi182 I put that code in my functions.php and still no changes ? any other way?
Using WP 3.2.1. & BP 1.5.1
October 7, 2011 at 8:56 am #122648In reply to: Feature request: Hide certain members
Fee
Participantthis should work for excluding all super admins:
`
-
<?php while ( bp_members() ) : bp_the_member();
if( !in_array( bp_get_member_user_login(), get_super_admins() ) ) {
?>`September 30, 2011 at 12:57 pm #121554In reply to: How to edit and add thing to bp adminbar
Tahir Taous
Memberi tried to remove Viisit Radom Member, Random Group And Random Site from BuddyBar successfully, Here is link for you how to make changes, edit BuudyBar.
http://www.funjog.com/learnbuddypress/2011/09/30/how-to-hide-visit-random-group-members-sites-menu-from-buddypress-buddybar/
Hope this will help.September 15, 2011 at 12:00 am #120091modemlooper
ModeratorYou need to clarify more, you can just re enable the groups component in the admin. if the hide the create button try going to the URL /groups/create
August 10, 2011 at 11:08 pm #118172In reply to: Activation Code after New Member Registration
Whitefox
MemberOK so I’ve had the same problem and have built a very clumsy workaround.
PROBLEM: When the user click the email verification it sends them to verify.php and logs them in to WP but my Buddypress doesn’t know they are logged in and asks them to login. If the user just ignores the login request there is no problem but users don’t do that so they try to login and get the same “error..please provide a valid activation key” message because the account is already active.
MY RUBBISH ANSWER: The only thing that worked for me was to hide the BP admin bar and handle login links manually then change the text on the verify.php to a simple ‘congratulations, you’re in’ message. The downside of this is that I lost the use of my BP-Sliding-Login-Panel which I love. so I would be very grateful for a real solution to this.
August 7, 2011 at 10:48 pm #117943In reply to: remove admin-bar
valuser
Participantdefine(‘BP_DISABLE_ADMIN_BAR’, true); + Hide admin bar for logged out users NO works
August 3, 2011 at 10:12 pm #117607In reply to: Hide Admin
Ducky
ParticipantThere is one problem with that solution, it does not hide the user from groups
August 3, 2011 at 10:11 pm #117606In reply to: Hide Admin
Ducky
ParticipantThe 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?
stripedsquirrel
ParticipantThere 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?
danbpfr
ParticipantMaybe 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?
dude
Memberthanks 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 #115091angslycke
ParticipantExcellent piece of information! Could prove to be really useful for me as well to hide administrators.
June 19, 2011 at 5:32 pm #114811MRSepehr
MemberHello 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-y
KeymasterThere’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
Magi182
ParticipantFor 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 #112921vikramtalkin
Memberi 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 Ashmore
ParticipantNot 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
Doug
Participantyes, 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..
@mercime
Participant== 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 Ogundipe
Participantif 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?
chrisreg1
MemberHmm 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.
-
AuthorSearch Results

