Search Results for 'Hide Admin'
-
Search Results
-
WordPress 4.9.5 -> BuddyPress 2.9.4 -> Agama Blue Child Theme
I ended up with the below code from posts in these forums but it doesn’t do quite what I need it to do.
Users should not be able to see other users’ friends so the Friends tab when viewing another user’s profile page must be removed along with the functionality. Here’s my code:function bpfr_hide_tabs() { if ( !is_super_admin() && !bp_is_my_profile() ) { bp_core_remove_subnav_item( 'profile', 'friends' ); // This does nothing //bp_core_remove_nav_item( 'friends' ); //Or this but this also hides the Friends main menu item, not just the Friends tab in the user's profile page } } add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );I’ve switched between both options in the code.
bp_core_remove_subnav_item( 'profile', 'friends' );doesn’t really do anything andbp_core_remove_nav_item( 'friends' );does remove the Friends tab from another user’s profile but it also removes it from the main menu which is a different thing. The main menu Friends link points to my own Friends whereas the Friends tab in another user’s profile points to their friends. Any help would be appreciated.Topic: Hiding the admin user
Hi How do you hide the admin user from Buddypress? Thanks!
Topic: Hiding Admin Accounts
I saw a thread here:
https://buddypress.org/support/topic/how-can-i-disable-the-last-active-time/However, I’d like it to hide for everybody apart from me, the Admin.
Doable?
Good day,
Am not sure if this is the right place to put this but please do pardon me .
I wanted to ask any one or the buddy-press support team on how where they able to implement the this certain functions to the site.
https://postimg.org/image/urrv2bmbp/1) Have a create new topic button on the admin menu tab
2 ) is there a way to hide the Mysites – from other users except admin ( as I do make use of a multisite)
– if its not possible is there a way to customize it from My site to something like “Site Tool” and a way to change the W – logo to something else.
In all Thank you very much, as I do appreciate your help and assistGood Afternoon, I wanted to ask if there was any-one who has an ides how to hide site > my site which is created by buddypress on the admin dashboard area. as below
https://postimg.org/image/dop3730kl/As i was able to find a way to hide the site from the user profile thanks to @vapvarun
using the functionfunction vap_remove_buddypress_sites_tabs() { global $bp; // to remove main menu for sites. bp_core_remove_nav_item('blogs' ); } add_action( 'bp_setup_nav', 'vap_remove_buddypress_sites_tabs', 999 );But the question is how do i hide it also in the admin dashboard.
As preferable I would likely wish if i could hide it specifically from other users except admin and site owner.
Thank you in advanceTopic: 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