BuddyDev

Search

Replies

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

    Hello Brian,

    Welcome to the BuddyDev Forums. As per my understanding, You want to restrict a member type from replying to activity comments. If yes, use the following code:

    
    
    /**
     * 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.
    	$is_restricted = bp_has_member_type( get_current_user_id(), 'student' );
    
    	if ( $is_restricted ) {
    		$can = false;
    	}
    
    	return $can;
    }
    
    add_filter( 'bp_activity_can_comment_reply', 'buddydev_user_can_reply_on_comment' );
    
    

    Please let me know if it helps or not.

    Use can put this code inside ‘bp-custom.php’ file. Please have a look here: https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Ravi

    • This reply was modified 3 years, 4 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Dianne,

    Thank you for marking it resolve. we are also following BuddyBoss Platform updates.

    Regards
    Ravi

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

    Hello Buddyuser,

    Thank you for sharing the details. We will check the compatibility and will let you within 24 or 48hrs.

    Regards
    Ravi

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

    Thank you

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: mediapress #43718

    Hello Giuseppe,

    Thank you for the acknowledgement. Our team will check and will acknowledge you within 24 hours or early.

    Regards
    Ravi

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

    Hello Nick,

    Thank you for your acknowledgement. ‘bpdgt_remove_tabs’ is not a good name for the filter as with this name filter’s sole purpose seems to be only removal. I would suggest use ‘bpdgt_modify_tabs’ instead. Also, the position should be on the return statement

    Regards
    Ravi

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

    Hello Dianne,

    Thank you for the acknowledgement. I am glad that the problem is resolved. Yes, ‘just-me’ is the slug used for the personal tab by BuddyPress.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: mediapress #43711

    Hello Giuseppe,

    Please enable the following setting “Show Gallery description on single gallery pages?”. You can find this setting under MediaPress > Settings > Theming > Display Settings. If enabled, It will show gallery description on a single gallery page.

    Please let me know if helps you or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] removing tabs #43680

    Hello Giuseppe,

    Sorry for the inconvenience. Please let me know what issue you facing so that I can help you with this.

    Regards
    Ravi

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

    Thank you for the acknowledgement. I am glad that I could help.

    Regards
    Ravi