Replies
- Ravi on March 29, 2022 at 5:03 am in reply to: Restrict the Default Profile Type (aka the “—“) #44164
Hello Brian,
Thank you for sharing the screenshots. Please replace the old code which is shared here:
with
/** * Restrict member type for replying * * @param bool $can Bool. * * @return bool */ function buddydev_user_can_reply_on_comment( $can ) { // Replace 'student' with your member type. $user_member_types = bp_get_member_type( get_current_user_id(), false ); $user_member_types = empty( $user_member_types ) ? array() : $user_member_types; if ( ! $user_member_types || in_array( 'student', $user_member_types ) ) { $can = false; } return $can; } add_filter( 'bp_activity_can_comment_reply', 'buddydev_user_can_reply_on_comment' );
Please check
Regards
Ravi- This reply was modified 3 years, 3 months ago by
Ravi.
- This reply was modified 3 years, 3 months ago by
- Ravi on March 28, 2022 at 8:51 am in reply to: Auto Join Groups not working on new user activation #44144
Hello,
Thank you for using the plugin. BuddyPress Auto Join Groups adds groups to users on activation, member type change, profile update actions. If your plugin fires some specific action once the user registers you can attach our function on that hook. Please ask the plugin author if his plugin offers any action like activation or not.
Regards
Ravi - Ravi on March 28, 2022 at 8:42 am in reply to: [Resolved] Mediapress / link when clik o n notification #44143
Hello Fabien,
Thank you for the kind words. I am glad that I could help.
Have a nice day
Regards
Ravi - Ravi on March 28, 2022 at 8:10 am in reply to: [Resolved] Mediapress / link when clik o n notification #44141
Hello Fabien,
You can place this code anywhere in the “bp-custom.php” file. Please check.
Regards
Ravi - Ravi on March 28, 2022 at 7:59 am in reply to: [Resolved] Mediapress / link when clik o n notification #44139
Hello Fabien,
Thank you for sharing the screenshots. Please try the following code:
add_filter( 'bp_activity_get_permalink', function( $link, $activity ) { if ( ! bp_is_user_notifications() ) { return $link; } $parent_activity = ''; // Get parent activity id. if ( 'activity_comment' === $activity->type ) { $parent_activity = new BP_Activity_Activity( $activity->item_id ); } if ( $parent_activity && 'mpp_media_upload' == $parent_activity->type ) { $link = bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $parent_activity->id; } return $link; }, 15, 2 );
Please let me know if it helps or not.
Regards
Ravi - Ravi on March 28, 2022 at 7:04 am in reply to: Restrict the Default Profile Type (aka the “—“) #44138
Hello Brian,
Can you point me to the option you want to modify using some screenshots so that We can understand your problem more clearly?
Regards
Ravi Hello Philip,
Welcome to the BuddyDev Forums. Please let me know with BuddyBlog are referring to BuddyBlog or BuddyBlog Pro plugin.
Regards
Ravi- Ravi on March 28, 2022 at 6:47 am in reply to: Member Types Pro – Can you direct to a different results page #44136
Hello KP,
Thank you. I do not know if there is a solution to such kind of problem available right now. But it can be feasible you can hire some developer to do that for you.
Regards
Ravi - Ravi on March 25, 2022 at 5:07 pm in reply to: How to create a link ( user profile -> edit ) ? #44120
Hello Yuriix,
Thank you for posting. There is a way for logged-in users with URL like ‘members/me/profile/edit/group/1/’. There is no way for the other user.
Regards
Ravi - Ravi on March 25, 2022 at 5:03 pm in reply to: [Resolved] Mediapress / link when clik o n notification #44119
Hello Fabien,
I have checked this again with MediaPress and BuddyPress and it is working fine for me. Please check the following screenshot with Mention and Media.
https://www.awesomescreenshot.com/image/24694414?key=f65516f0a9c6b350a02e6d42a2b7c93e
Please guide me to the steps so that I can recreate the issue on my local server.
Regards
Ravi