Search Results for 'Hide Admin'
-
AuthorSearch Results
-
February 28, 2013 at 10:45 pm #154748rizingsunParticipant
Thanks @bphelp !
I’m trying to make it so that a user’s “Friends” tab is only visible to that specific user (like “Settings” and “Messages”).
I think your advice would still enable a user’s friends to see their other friends.
Is there any way to make it so that the a user’s “Friends” tab is only visible to said user?
February 28, 2013 at 10:28 pm #154747bp-helpParticipantYou can use this tutorial http://wpmu.org/how-to-add-profile-privacy-to-buddypress/
its meant for profiles but it can be adapted for friends. Follow it exactly but instead of putting3. Edit your theme file to include the friendship check:
To restrict profile info, open up /members/single/profile.php and add this at the top of the page:add that code in 3. instead to /members/single/friends.php
You may also want to change the test in 2. step to:
You must be friends in order to access users friends.February 27, 2013 at 3:02 pm #154620bp-helpParticipanthttp://www.mediafire.com/download.php?u6oos92g344485f
This plugin does not hide the activity tab in the main nav or in the profile activity tab but it does make activity friend only unless your the admin in which case it shows sitewide activity. To test it you would have to create two accounts that are not admins and not friends and put come activity in on both and you will see that as long as your not friends you can not see the others activity.February 21, 2013 at 5:22 pm #153622In reply to: Hide Profile Group When Editing
haughtamParticipantIt’s been a while since my original post, but I think I’ve figured this out and I hope this helps someone else. The original problem changed a bit too. Basically, now I want to show a profile group based on the value in an xprofile field (when editing a profile). So, if my User Category field for a logged in user says Recruiter, then I want to show the profile group called “Recruiter” (show this for admins too). Otherwise, I want to hide this profile group through php.
Thanks to the hint above, I was able to come up with a function in my child theme’s function.php file.
I’m just learning php/wordpress, and I don’t have a clear understanding why this works. I do know that $group_name[3] is the Recruiter profile group. Also, I do realize this snippet uses awful coding practices. If anyone has improvements, please let me know.
function my_recruit($group_name){
if ( is_site_admin() || xprofile_get_field_data( “User Category”)===”Recruiter”) {
echo $group_name[0];
echo $group_name[1];
echo $group_name[2];
echo $group_name[3];
}
else {
echo $group_name[0];
echo $group_name[1];
echo $group_name[2];
}
}
add_filter(‘xprofile_filter_profile_group_tabs’,’my_recruit’);
January 18, 2013 at 12:00 am #150991danbpfrParticipantGo to your admin > Pages and delete the register and empty the trash
Do the same if you have a Login page.
Then go to settings > buddypress.
– Tab Component and check the one you want.
– Tab Pages and create a page from there for each component.
Save.
Now BP is correctly configured.
Check also settings > permalinks and choose something other as default.
If you created some custom menus before installing BP, double check them to have the new pages.
Done !
December 21, 2012 at 12:42 pm #148378In reply to: Block Blog from Activity
Paul Wong-GibbsKeymasterEasiest way is to go to wp-admin on the site you want to hide, go to the Settings > Reading menu, and tick the “Discourage search engines from indexing this site” option. Of course, this will also ask search engines to not index that site.
December 19, 2012 at 8:34 pm #148177In reply to: WPMS stand alone plus multisite?
voopressParticipantThat doesn’t seem to hide the main site’s wp-admin login. Each time a user who owns a blog clicks on the main site item at the top left hand side, they are sent to the admin of the top site.
>You do not have sufficient permissions to access this page.
December 19, 2012 at 1:38 am #147819Toby Cryns (@themightymo)ParticipantIf you want to hide stuff but want it to be available to Google, you could use CSS and/or jQuery to hide things. Check out this post about how to add BuddyPress-specific body classes:
Here is a post that might help if you want to hide everything from Google: http://premium.wpmudev.org/forums/topic/buddypress-how-do-i-hide-community-elements-from-non-members
December 14, 2012 at 5:50 pm #147394AdamParticipanthi there, i have a similar problem on my wordpress multisite, however, unchecking “Show the admin bar for logged out users” doesn’t work for me.
what’s really weird is, on some websites on my multisite the admin bar shows up but not on others.
any ideas?thanks,
AdamDecember 13, 2012 at 1:21 am #147244In reply to: Activity Stream not showing up on user's profile.
mreederParticipantI solved this problem.
The plugin “BuddyPress Friends Only Activity Stream” claimed to only show activity from your friends and the admins only. I guess since you can’t be friends with yourself, it hides your activity as well. :/
I may look into the plugin’s files later to see if there’s a workaround for this, but as of right now it’s staying deactivated.
November 26, 2012 at 5:21 pm #145683Ben HansenParticipantstreams are not related to profile fields. stream is created by site activity. i don’t think theres a decent way to hide that other then for admin users using a plugin or by modifying code stuff.
November 15, 2012 at 5:29 pm #145072In reply to: Hide My Account Menu
hughshieldsParticipantThe name of the menu is ‘my-account-buddypress’. This is a buddypress menu and therefore you cannot find it in the wordpress adminbar.php file. It is added when you installed buddypress. You can remove it by adding the following to your theme’s functions.php file:
function remove_bp_adminbar() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu(‘my-account-buddypress’);
}
add_action( ‘wp_before_admin_bar_render’, ‘remove_bp_adminbar’ );If someone knows the names of the submenus in this buddypress menu I would like to know them so that I can remove the redundant ones (media, forms, friends etc).
October 31, 2012 at 5:03 pm #144322In reply to: Need original WordPress Registration page back
David CavinsKeymasterI think a better bet is to collect that info on the BP registration page and then not display it on the user profile (that way you’ll still be able to use it in other ways). With BP 1.6. you can change the visibility of each xprofile field to friends only, logged-in users, or public (and force that level or allow the user to override your selection). (Visible to admin only is coming in BP 1.7, btw, which would totally fix you up.) At the moment, you can modify your theme template file (themes/yourtheme/members/single/profile/profile-loop.php) to hide some fields like this:
`about line 17:<?php $no_display_fields = array( // Enter the field name of any field that you don't want to appear on the user profile.
‘E-mail’,
‘Name of Field Hide’,
‘Another’
);if ( bp_field_has_data() && !in_array( bp_get_the_profile_field_name(), $no_display_fields ) ) : ?>`
It’s a hack, but it works for me (until BP 1.7).
October 29, 2012 at 8:42 pm #144223In reply to: Remove the General Settings in BuddyPress v1.6.1
meg@infoParticipantHi @wpmirwin, this part of code above is from buddypress Notifcation manager plugin.
https://wordpress.org/extend/plugins/buddypress-notifications-manager/
mybe this plugin can help you.this function hide the notifications subnav, and it should work in bp 1.5 and bp 1.6
function bp_hide_notifications_subnav(){
global $bp;
bp_core_remove_subnav_item($bp->settings->slug, ‘notifications’);if ( bp_use_wp_admin_bar() ) {
add_action( ‘wp_before_admin_bar_render’, create_function(
”, ‘global $bp, $wp_admin_bar; $wp_admin_bar->remove_menu( “my-account-settings-notifications” );’ ) );
}
}//if is not bp 1.5
if ( version_compare( BP_VERSION, ‘1.5’ ) < 0 )
add_action( ‘wp’, ‘bp_hide_notifications_subnav’);
else
add_action( ‘bp_setup_nav’, ‘bp_hide_notifications_subnav’ );October 16, 2012 at 6:17 am #143525In reply to: URGENT!!! PLS HELP -> Add new users from admin
benzineParticipantI’m in despair for such a solution right now. So, I think it’s better to have all custom fields mandatory while members can decide whether to hide or show them in public such that they can edit any fields later if they want to. Also, re-register from front end all manually created profiles from dashboard. This is the most plausible solution to me at this time.
Thanks for your time.
October 15, 2012 at 5:59 pm #143498In reply to: Hide General Settings Tab
trailmix5ParticipantThanks @modemlooper
I was able to comment out the entire form with /* and */, but the user is still directed to a general settings page (that is now blank except for the title “General Settings”). Granted this is better than having the password and email field, but is there a way for me to bypass that tab and go straight to the notifications?
Also, I have settings checked in the admin panel because I want the user to be able to change the notification and privacy preferences. Is that correct?
I’m not sure why I didn’t think of this before, but I could just hide the tab in CSS (like I did previously) and then use a 301 redirect match in my htaccess from settings to settings/notifications. Huh, is that a viable way to achieve this?
October 15, 2012 at 4:38 am #143465In reply to: Hide General Settings Tab
modemlooperModeratorIn BP-default folder you can edit the file members/single/settings/general.php
Just comment out the form for the settings. BTW did you uncheck settings option in admin?
Thanks for the rating.
October 4, 2012 at 11:21 pm #142995In reply to: how to hide admin activity on Buddypress activity?
staceymParticipantHere is a solution that works in BuddyPress 1.6. This will prevent new activities from being added and will also prevent the user from showing as recently active. The first option is for admins, the second is for a specific username.
`
// Don’t record activity by the site admins or show them as recently active
function my_admin_stealth_mode(){
if ( is_site_admin() ) {
global $bp;
remove_action(‘wp_head’,’bp_core_record_activity’);
delete_user_meta($bp->loggedin_user->id, ‘last_activity’);
}
}
add_action(‘init’,’my_admin_stealth_mode’);// Don’t record activity for a user or show them as recently active
function my_user_stealth_mode(){
$current_user = wp_get_current_user();
if(is_user_logged_in()) {
if(‘YourUsername’ == $current_user->user_login) {
remove_action(‘wp_head’,’bp_core_record_activity’);
delete_user_meta($current_user->ID, ‘last_activity’);
}
}
}
add_action(‘init’,’my_user_stealth_mode’);
`October 1, 2012 at 6:08 pm #142776In reply to: bp profile menu adding more menu items
haagsekakParticipantAwesome, thank you for the great support that you provide.
I am trying to get away from using the top admin bar and having to go to the dashboard to access the posts, comments and media. So I was able to add the link within your file so that when you logged in you would see the link.
Below is some of the code I added to your bp-profile-menu.php menu structure between line 33 and 59 sub menu items.
$items .= '<li id="menu-item" class="menu-item"><a href="http://thevillageblog.com/wp-admin/edit.php">My Articles</a></li>';
**NOTE: trying to include the code in this post but it shows as html instead of text. If you want I can email the code to you or is there another way to include code in a post and show it as text?
I tried the same concept using the menu panel instead but did not get the same effect. If you have a trick as to how to hide the links until the user has logged in then I would be very grateful. Otherwise the only thing I can think of is to edit your code again which i’d rather not do.
Thanks again for your help.
September 17, 2012 at 7:09 pm #141915In reply to: BP Test Drive
r-a-yKeymasterYou should be able to disable the admin bar for logged-out users in the WP admin area by navigating to “Settings > BuddyPress“, then click on the “Settings” tab.
If someone really wanted to find out if you were using BuddyPress, then it would be quite simple. I would take steps to try and hide the fact you were using WordPress first, then move down the ladder to BuddyPress later on.
About notifications without the admin bar, there are some third-party plugins available like:
http://buddydev.com/plugins/buddypress-notifications-widget/ (a widget)With BP 1.7, we’ll be adding universal theme compatibility, so we’ll be taking some steps to try and make life without the admin bar a little easier.
September 17, 2012 at 4:12 pm #141890In reply to: Hide Admin Bar Buddypress v. 1.6.1
meg@infoParticipantadd_filter(‘show_admin_bar’, ‘__return_false’);
September 17, 2012 at 5:01 am #141847In reply to: Hide Admin Bar Buddypress v. 1.6.1
9087877InactiveI am not certain this is what you desire but check out my blog. I have code snippets that may help you. Read the post and you will understand the end result from the snippet. Have a great day and hope it helps!
http://ezwebdesign.wordpress.com/2012/09/14/removing-admin-bar-removing-dashboard-access/September 16, 2012 at 9:35 am #141787LavishDhandParticipantHi!
Can you kindly share how did you actually do this? I need the same for my site.
1. How did you prevent the friends tab to other users?
2. Have you figured out the way for messages?regards
September 2, 2012 at 6:02 pm #140762In reply to: how to hide admin activity on Buddypress activity?
Ben HansenParticipant@shawn38 thanks for your help i figured things out after reading this post i also figured out that the plugin does work you just can’t turn it on or off using the new toolbar so what i did was using the custom file to temporarily activate the old toolbar in order to activate the ninja plugin. thanks again for all your help here and on the other topic!
September 2, 2012 at 12:01 am #140721In reply to: how to hide admin activity on Buddypress activity?
9087877InactiveDid you wrap the code @mercime gave you in opening and closing php tags? Like this:
`<?php
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
}
?>` -
AuthorSearch Results