BuddyDev

Search

Replies

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

    Hello Nick,

    Thank you for posting here. We will release the update in the future version. For the time being You can use the following code:

    
    
    /**
     * Check and redirect on the restricted tab
     *
     * @param int $group_id Group id.
     */
    function buddydev_check_redirect_restricted_tab( $group_id ) {
    
    	if ( ! groups_is_user_admin( get_current_user_id(), $group_id ) || ! bp_is_group_admin_screen( 'group-settings' ) ) {
    		return;
    	}
    
    	if ( ! empty( $_POST['group_default_tab'] ) && 'members' == $_POST['group_default_tab'] ) {
    		bp_core_add_message( sprintf( 'Members tab can not be use as default tab.' ), 'error' );
    		bp_core_redirect( bp_get_group_admin_permalink( $group_id ) . 'group-settings' );
    	}
    }
    
    add_action( 'groups_group_settings_edited', 'buddydev_check_redirect_restricted_tab', 9 );
    

    It will restrict group admin to save the ‘members’ tab as the default tab. You can replace this with your own tab slug. Please give it a try and let me know if it works or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Tags with MediaPress #43669

    Hello Joanne,

    Thank you for posting here. Please take a look at the following plugin:

    https://github.com/mediapress/mpp-gallery-categories/archive/refs/heads/master.zip

    It does allow applying categories on MediaPress Galleries and filtering them based on category.

    Please let me know if it helps you or not.

    Regards
    Ravi

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

    Hello Tosin,

    Try the following code:

    
    
    add_action( 'bblpro_ppp_post_published', function( $post_id ) {
    	$post_type = get_post_type( $post_id );
    
    	if ( 'post' != $post_type ) {
    		return;
    	}
    
    	// Get category.
    	$newcat = get_term_by( 'name', 'Sponsored posts', 'category' );
    
    	if ( ! $newcat ) {
    		return;
    	}
    
    	wp_set_post_categories( $post_id, $newcat->term_id, true );
    } );
    

    Please check and let me know if it helps or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Profile page – sites #43667

    Hello Uros,

    a) it seems BuddyPress only list those sites that the user has created. Because BuddyPress or BuddyBoss Platform manage this you should contact them regarding this issue. They can assist you better with this issue.
    b) For leaving site functionality in the join blog widget plugin. We can not help you due to a lack of development time. But in future we will add this feature.

    Regards
    Ravi

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

    Hello Yuriix,

    I have checked this and found no easy way to truncate the title. Sorry, I can not help you much with this.

    Regards
    Ravi

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

    Hello Tosin,

    Please take a look at the following action:

    
    do_action( 'bblpro_ppp_post_published', $post_id, $form_id );
    
    

    It will fire once the WooCommerce order is completed and after publishing the post.

    Regards
    Ravi

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

    Hello Yuriix,

    Thank you for the acknowledgment. I will take a look at the title and will let you know.

    Regards
    Ravi

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

    Hello Yuriix,

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

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] XProfile Custom Fields allowed file types #43654

    Hello John,

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

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Profile page – sites #43653

    Hello Uros,

    Thank you for the acknowledgment. For your other requirements, I will take a look at the feasibility and will let you know soon.

    Regards
    Ravi