Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25372

    Hi Hugo,
    Thank you for the feedback. I am sorry, but this is an issue with BuddyPress. The tabs are not multilingual supported.

    Is WPML supporting multilingual tab for BuddyPress? If they do, we can utilize their functionality.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25372

    Hi Hugo,
    Please visit Dashboard->Appearance->Customize-> Blog,
    There you will see a section for each different post type. You can disable the header for a specific post type globally from this screen.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25372
    Brajesh Singh on in reply to: media add with URL not working #36764

    Hi verkkoleiri ,
    Welcome to BuddyDev forums.

    Can you please tell us which plugin you are referring to?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25372
    Brajesh Singh on in reply to: [Resolved] Problem to Setting Auto Friendship #36763

    Hi Emanuele,
    Thank you for confirming.

    I am sorry, there is no way to know in BuddyPress when a specific member type was removed. If you remove a member types, it uses set member type action. So,m we don’t have access to previous member type to determine if we should remove all friends.

    If you want, we can add the code for a condition like this. If a user’s member type is set to None(”), we remove all friends. It will apply for all member type though.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25372

    Hi Hgo,
    Thank you for the question.

    Is it about user profile tabs pro plugin? Unfortunately it does not support multilingual tab/content.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25372
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25372

    Hi Emanuele,
    Thank you for the patience.

    There was a minor update needed in the code.

    Here it is

    
    
    /**
     * Add as friend other user with same member type on user member change.
     */
    add_action( 'bp_set_member_type', function ( $user_id, $member_type ) {
    
    	$member_type = (array) $member_type;
    	if ( ! in_array( 'partner', $member_type ) ) {
    		return;
    	}
    
    	$users = new BP_User_Query(
    		array(
    			'member_type'     => 'partner',
    			'populate_extras' => false,
    		)
    	);
    	if ( ! $users->total_users ) {
    		return;
    	}
    
    	foreach ( $users->user_ids as $id ) {
    
    		if ( $id == $user_id ) {
    			continue;
    		}
    
    		if ( ! friends_check_friendship( $user_id, $id ) ) {
    			friends_add_friend( $id, $user_id, true );
    		}
    	}
    }, 10, 2 );
    

    It is working on the staging site now. I have put ti in the child theme’s functions.php

    Regards
    Brajesh

    PS:- I tested by changing a user’s member type, Please revert them.

  • Keymaster
    (BuddyDev Team)
    Posts: 25372

    Please add the rule and point me to the error page. If I can see the rule and then the error message, I can quickly fix it.

    I tried updating rule but it had no effect.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25372

    Hi Tiffany,
    Thank you for the suggestion. It will be part of our next release.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25372
    This reply has been marked as private.