Search Results for 'Hide Admin'
-
Search Results
-
Topic: registration email
Hi,
I have noticed all emails sent when someone registers are from wordpress@mydomainname.com! Is it possible to change it to admin@mydomainname.com or completely hide wordpress from email correspondences?
Regards,
JacobHello,
How to hide the button “Members” in the display of a group?
https://screenshots.firefox.com/4fhh6NF0U12mYFQu/nullThe following code does not work:
function bpex_hide_members_menu_tabs() { if ( bp_is_group() ) { if ( is_super_admin() ) return ; bp_core_remove_nav_item('members'); } }
Regards
Topic: BuddyPress/WP Login question
Hi,
I have a site and on the sidebar i have buddypress login widget, if the user enters nothing and clicks login their directed to a custom version of wp-login and asked to log in.
before when the user then logged in from here it would redirect them to the main page of the buddypress site.
but i then wanted to hide the fact that it is a wpsite by using a plugin to edit wp-admin.php to login.php.
upon installing this plugin, when you login from what was wp login form it then directs you the the wp-admin page.
i didnt want this so i deleted the plugin, but it didnt revert back as such, the link now says wp-login but they users dont redirected to the site, they redirect to wp-admin.
how can i redirect users when using this form to go direct to the site and not wp-admin.
thanks
Hi, I have this error message
“There was a problem cropping your profile photo.”
when I try to upload an avatar image with a width of 450px and above. Starting to 451px it works (even with an height of 150px). I get a warning message only if I try to upload an image under 150x150px :
“You have selected an image that is smaller than recommended. For best results, upload a picture larger than 150 x 150 pixels.”
So, I suppose this problem doesn’t come from a setting option somewhere.
The problem is the same when I switch to the default theme Twenty Fifteen and I have no other plugin activated (except HideMySite). Cover image works without problem. Cropping image works with Ultimate-member plugin and in WP admin -> Media -> Edit/crop as well.
Config:
Wordpress (new install) v4.9
Buddypress 2.9.2
php 5.6
GD enabledThanks.
Hello,
I would like to modify the default Member’s page to remove the “bp_member_latest_update”. Currently the page shows the list of members, not including the “Admins”. I achieved this by adding the following function to the functions.php page:
add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users_by_role' ); function buddydev_exclude_users_by_role( $args ) { //do not exclude in admin if( is_admin() && ! defined( 'DOING_AJAX' ) ) { return $args; } $excluded = isset( $args['exclude'] )? $args['exclude'] : array(); if( !is_array( $excluded ) ) { $excluded = explode(',', $excluded ); } $role = 'administrator';//change to the role to be excluded $user_ids = get_users( array( 'role' => $role ,'fields'=>'ID') ); $excluded = array_merge( $excluded, $user_ids ); $args['exclude'] = $excluded; return $args; }
The page shows the default behavior: Avatar, Name, Latest Activity (with a link that reads “view”), and the last active time.
I would like to remove/hide the latest activity (including the word “view”) from the list altogether. Any ideas on how I could achieve this? Perhaps with a snippet to add to the functions.php file?
I have the following installed:
BuddyPress – 2.9.1
WordPress – 4.8.2
Theme – Buddy (child)I appreciate any help in advance!
Hi
I really need some help here. I have different user-roles on my website, but I want to exclude a specific user-role from showing up on the overall activity page/feed.
I forund this code where the admin is excluded:
// 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 == 784 ) { 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 );
So i’m hoping someone can help me adjust it. I need for the users that have the user-role ‘Banditter’ && ‘Participant’ not to show up on the overall activity feed, but for them to see their own activity. Plus for the Admin to see all activity
I don’t know so much PHP, so i’m hoping for some help 🙂
Thanks
Hey guys,
Would anyone know how to hide and disable member pages based on their role type. (e.g. yoursite.com/members/username)
Goal: if a member is set to a WordPress Administrator role, we would like to make his/her page inaccessible from the public
Purpose: while we have been able to hide specific roles from displaying in the member directory, their member/page is still visible if you know the URL.
Similar to how we can make the WordPress Author page inaccessible, we’d like to do the same for BuddyPress’s equivalent Member page.
Thanks in advance
Hey guys,
Wondering if there is a way to hide specific members based on a extended profile setting.
While I see options for hiding based on WordPress user role (i.e. Admin, Author, etc.) or based on WordPress user’s ID #, I’m hoping we can do this via an option available to admins to change whether a member is visible in the directory.
Also, we found that the options to hide users appear to work on the parent Buddypress but those settings don’t affect the child site in a multiblog/multisite setting.
Any suggestions is greatly appreciated thanks!
Hey there,
I would like to improve the security of my site and ploughed through this forum to find the right answer.
Is there a way to hide the profiles of administrators site-wide?
At this moment when an administrator creates a group, all visitors could see the profile of the admin. I would like to hide it; I want it only visible for other administrators in dashboard.
Thanks in advance!
add_filter( 'bp_get_send_message_button', function( $array ) { if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) ) { return $array; } else { return ''; } } );
I am using the above filter to hide private message button to non friends. It works but it also hides private message button to site admins and bbpress moderators. I want site admins and bbpress moderatos (bbp_moderator) could send and receive private messages even if they are not friend.
Any solution?
Hi all,
I’m new to buddypress and have no experience with php. I have how ever managed to follow instructions on previous posts on preventing users from seeing the admin profile and activity but it hasnt worked correctly and has come up with errors.
I managed to create the bp-custom.php in the wp-content/plugins directory but the admin profile still appears and just comes up with an error message saying fatal error. It still allows the option to add as a friend aswell unless that might be to do with viewing it from an account already adding the admin account with.
This is where I got the code Im using from:
https://buddypress.org/support/topic/hide-admin-from-members-and-activity/Code in the bpcustom file
<?php 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 ); 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'); 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 ); ?>
Topic: HIDE Profile Subnav title
Hi, I have to recount the members with this filter in function.php :
// 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');
There are 1 500 members (with admin), with this filter the counter should display 1 499 but it display 0, don’t understand why at all…