Replies
- Brajesh Singh on November 27, 2017 at 1:39 am in reply to: [Resolved] How to change size of avatar or make lightbox work on avatar #11883
Hi Carsten,
When you post on the pastebin(and submit) you can copy the url of the page and share.Thank you
Brajesh - Brajesh Singh on November 27, 2017 at 1:36 am in reply to: [Resolved] Profile tabs depending to user role or member type #11882
Marking the thread as resolved.
- Brajesh Singh on November 27, 2017 at 1:34 am in reply to: [Resolved] Profile tabs depending to user role or member type #11880This reply has been marked as private.
- Brajesh Singh on November 26, 2017 at 12:52 pm in reply to: [Resolved] Multiple blank comments after multiple image upload? #11875
Thank you. I am hoping for an update today or early tomorrow.
Regards
Brajesh - Brajesh Singh on November 26, 2017 at 12:51 pm in reply to: [Resolved] Media Moderator not showing…? #11874
Hi Richard,
Thank you.
Thanks to @ravisharma , we are almost done with it. It should be available today or tomorrow.Thank you again for the patience 🙂
Regards
Brajesh - Brajesh Singh on November 26, 2017 at 12:48 pm in reply to: [Resolved] Profile tabs depending to user role or member type #11873This reply has been marked as private.
- Brajesh Singh on November 26, 2017 at 4:42 am in reply to: [Resolved] Profile tabs depending to user role or member type #11868This reply has been marked as private.
- Brajesh Singh on November 25, 2017 at 12:00 am in reply to: [Resolved] Profile tabs depending to user role or member type #11853
Hi Beuza,
Can you please give this code a shot?/** * Remove groups from user profile based on member type. */ function buddydev_remove_group_based_on_member_types() { if ( ! bp_is_user() ) { return; } $user_id = bp_displayed_user_id(); if ( ! bp_has_member_type( $user_id, 'agent' ) ) { bp_core_remove_nav_item( 'groups' ); } } add_action( 'bp_setup_nav', 'buddydev_remove_group_based_on_member_types', 1001 ); /** * Remove groups from adminbar based on member type. * * @param array $nav nav items. * * @return array */ function buddydev_filter_show_hide_groups_in_adminbar( $nav ) { if ( ! is_user_logged_in() ) { return $nav; } if ( ! bp_has_member_type( bp_loggedin_user_id(), 'agent' ) ) { $nav = array(); } return $nav; } add_filter( 'bp_groups_admin_nav', 'buddydev_filter_show_hide_groups_in_adminbar' );It works with our Member types pro and most probably will work with the other plugin too.
Please make sure to use “agent” like shown below in the member type name.
https://i.imgur.com/JdiZUTa.pngRegards
Brajesh - Brajesh Singh on November 24, 2017 at 6:06 pm in reply to: How do I make the comment button read only in the activity stream? #11850
Hi Naomi,
before I assist you with the code I will like to explain these two buttons.Comment Button:- Allows you to comment on activity
Reply Button:- Allows you to comment on comment.
Do you still want to disable reply button?
You can use this code.add_filter( 'bp_activity_can_comment_reply', '__return_false' );Regards
Brajesh - Brajesh Singh on November 24, 2017 at 6:01 pm in reply to: [Resolved] Profile tabs depending to user role or member type #11849
Hi Laurent,
Thank you.
It was a kind gesture by you but not required.I am going to install and use the other plugin and check the code. I will get back to you within an hour with the details.
Thank you
Brajesh