Replies
- Brajesh Singh on December 8, 2017 at 8:02 pm in reply to: "BuddyPress Deactivate Account" email notification #12186
Can you please confirm if that worked for you? If I don’t get feedback in next couple of days, I will mark it as resolved and close the topic as it is working our end.
Regards
Brajesh Hi Julia,
Thank you.It seems that now arrays are allowed as user id in the original BuddyPress hook. I will update it today.
Thank you
Brajesh- Brajesh Singh on December 8, 2017 at 7:25 pm in reply to: [Resolved] Media Moderator not showing…? #12183
Hi Richard,
Please deactivate the moderator plugin and reactivate.In the current version, It needs database table to update. We had setup our update routine on activation. So, It seems your table did not get updated causing this.
We will find a better way to do it future.
Regards
Brajesh - Brajesh Singh on December 8, 2017 at 7:21 pm in reply to: [Resolved] Activity Stream for only logged in user, none anyone eles can see #12182
Hi Julia,
I am sorry but I still don’t understand.Both of these plugin add tabs to the Logged in user’s own profile. If they visit someone else’s profile, they won’t see it.
So, what do you want to change?
- Brajesh Singh on December 8, 2017 at 7:15 pm in reply to: [Resolved] How to change size of avatar or make lightbox work on avatar #12181This reply has been marked as private.
- Brajesh Singh on December 8, 2017 at 7:09 pm in reply to: Profile Visibility Manager Intergate with buddypress follower/forums/Group #12180
Hi Julia,
Sorry, we do not plan to add it to Profile Visibility Manager. We do plan to have a successor of the Profile visibility manager in future that will have such functionality.Regards
Brajesh - Brajesh Singh on December 8, 2017 at 6:33 pm in reply to: Issue with provided code (profile tab depending to member type) #12179
Hi Beuza,
here is the code/** * 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' ); $access = bp_core_can_edit_settings(); $friends_link = bp_displayed_user_domain()? bp_displayed_user_domain() : bp_loggedin_user_domain(); $friends_link = trailingslashit( $friends_link . bp_get_friends_slug() ); bp_core_new_subnav_item(array( 'name' => __( 'Invitations', 'buddypress' ), 'slug' => 'invites', 'parent_url' => $friends_link, 'parent_slug' => bp_get_friends_slug(), 'screen_function' => 'buddydev_groups_screen_group_invites', 'user_has_access' => $access, 'position' => 30 )); // move the invitations to the friends screen. } } add_action( 'bp_setup_nav', 'buddydev_remove_group_based_on_member_types', 1001 ); /** * Helps us detect screen. */ function buddydev_groups_screen_group_invites() { add_action( 'groups_screen_group_invites', 'buddydev_load_invite_template' ); groups_screen_group_invites(); } /** * Load our template. */ function buddydev_load_invite_template() { add_action( 'bp_template_content', function () { bp_get_template_part('members/single/groups/invites'); }); bp_core_load_template('members/single/plugins' ); } /** * Change the invite link url for the non 'agent' users. * * @param string $link original link. * * @return string */ function buddydev_update_group_invite_link( $link ) { // for agent, do not break it. if ( bp_has_member_type( bp_loggedin_user_id(), 'agent' ) ) { return $link; } global $groups_template; if ( empty( $group ) ) { $group =& $groups_template->group; } return wp_nonce_url( trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/invites/accept/' . $group->id ), 'groups_reject_invite' ) ; } add_filter( 'bp_get_group_accept_invite_link', 'buddydev_replace_group_to_friends_in_group_invite' ); /** * Change the reject link url for the non 'agent' users. * * @param string $link original link. * * @return string */ function buddydev_update_group_reject_link( $link ) { // for agent, do not break it. if ( bp_has_member_type( bp_loggedin_user_id(), 'agent' ) ) { return $link; } global $groups_template; if ( empty( $group ) ) { $group =& $groups_template->group; } return wp_nonce_url( trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/invites/reject/' . $group->id ), 'groups_reject_invite' ) ; } add_filter( 'bp_get_group_reject_invite_link', 'buddydev_replace_group_to_friends_in_group_invite' ); /** * 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 should work. Can you please give it a try? I haven’t tested it but it should work.
Regards
Brajesh - Brajesh Singh on December 8, 2017 at 3:34 pm in reply to: [Resolved] Media Moderator not showing…? #12172
Are you using any caching? Since the new update needs to load updated version of the js file. Can you please try clearing browser cache and see if it works?
- Brajesh Singh on December 8, 2017 at 2:45 pm in reply to: [Resolved] Media Moderator not showing…? #12168
Hi Richard,
Thank you for the feedback.Please make sure that you have saved the settings atleast once.
It will appear below the textbox.
Please check and let me know.
- Brajesh Singh on December 8, 2017 at 11:23 am in reply to: [Resolved] Media Moderator not showing…? #12166
Thank you Richard.
I am looking forward to your feedback.