BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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:

    https://buddydev.com/support/forums/topic/how-do-i-restrict-certain-member-types-from-comment-replying/#post-43765

    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.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Custom post layout on Buddyboss Theme profile #44137

    Hello Philip,

    Welcome to the BuddyDev Forums. Please let me know with BuddyBlog are referring to BuddyBlog or BuddyBlog Pro plugin.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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