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: 25485

    Hi Daniel,
    Thank you for the question.

    I am assuming you are using a plugin for the social login/gogole login. Please contact the plugin author(s). They will be in a better position to assist you with it. If the plugin requests email from the service, this should not be a difficult issue.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Different Member Types, Different Display Names #31889

    Hi RES,
    No issues.

    can you please tell me where did you place the code ? is it in wp-content/plugins/bp-custom.php?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Featured members / Own slug #31877

    Thank you for confirming that it works. I appreciate the kind words.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: SHORT CODE / PAGE / DEFAULT THEME Buddyboss #31876

    Please share a screenshot. I might be understanding it incorrectly.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Gregory,
    Thank you for the details.

    Please disable the EU Cookie and BuddyPress reactions plugin temporarily and then please clear cache and check. Is the problem still happening?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Tosin,
    That will only happen for users who had uploaded avatar before you activated force profile photo plugin.

    The Force profile photo stores a meta on new profile photo upload.

    We are unable to differentiate past avatars form letter avatars as the letter avatar plugin filters on default avatar.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: SHORT CODE / PAGE / DEFAULT THEME Buddyboss #31870

    Hi Sandrine,
    Thank you for teh questions
    1. Please try suing

    
    
    [bp-featured-members view="default"]
    
    

    2. I am not using Divi/Divi builder currently. I am sorry, I am unable to assist you with this question.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Chris,
    No issues.

    1. No, It will not have any effect on existing users. If you need that, please use our BuddyPress Custom development services. The time taken is beyond what we offer as forum support.

    Here is the update code for excluding some domains. Please feel free to add more.

    
    
    /**
     * Add users from same domain as friend on account activation.
     *
     * @param int $user_id user id.
     */
    function buddydev_add_friends_on_activation_by_email_domain( $user_id ) {
    
    	$user = get_user_by( 'id', $user_id );
    	if ( ! $user ) {
    		return;
    	}
    
    	$email_parts = explode( '@', $user->user_email );
    
    	if ( count( $email_parts ) !== 2 ) {
    		return;
    	}
    
    	$domain = $email_parts[1];
    	// Lis of excluded domains.
    	$excluded_domain = array(
    		'gmail.com',
    		'outlook.com',
    		'yahoo.com',
    	);
    
    	// skip if in the excluded domain list.
    	if ( in_array( $domain, $excluded_domain ) ) {
    		return;
    	}
    
    	$potential_friend_ids = buddydev_get_users_with_email_domain( $domain );
    
    	if ( empty( $potential_friend_ids ) ) {
    		return;
    	}
    
    	foreach ( $potential_friend_ids as $potential_friend_id ) {
    
    		if ( $potential_friend_id == $user_id || friends_check_friendship( $user_id, $potential_friend_id ) ) {
    			continue;
    		}
    
    		friends_add_friend( $potential_friend_id, $user_id, true );
    	}
    
    }
    
    add_action( 'bp_core_activated_user', 'buddydev_add_friends_on_activation_by_email_domain' );
    
    /**
     * Get all users who have given email domain.
     *
     * @param string $domain domain name.
     *
     * @return array
     */
    function buddydev_get_users_with_email_domain( $domain ) {
    	global $wpdb;
    
    	$pattern       = '%@' . trim( $domain );
    	$sql_statement = $wpdb->prepare( "SELECT ID FROM {$wpdb->users} WHERE user_email LIKE %s", esc_sql( $pattern ) );
    
    	return $wpdb->get_col( $sql_statement );
    }
    
    

    Regards
    Brajesh

    P.S:- Please do not copy this code from the forum notification mail. Instead use it form the support page here.

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Featured members / Own slug #31866

    Hi Sandrine,
    Thank you for the reply.

    Please make sure you did not use the code fro forum notification mail. The code gets entity encoded and that gives the error you are facing.

    Please copy it from the forum post here and it will work.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Featured members / Own slug #31861

    Hi Sandrine,

    Thank you for the reply.

    1. For now, Please add the following css to hide follow inside the featured members widget

    
    .bp-featured-members-widget .follow-container {
        display: none;
    }
    

    2. For changing the orser, It might have effect on other plugins. So, I will recommend editing on your site.

    Please change this line
    https://github.com/buddydev/bp-featured-members/blob/master/core/class-featured-members-template-helper.php#L22

    from

    
    add_action( 'bp_members_directory_member_types', array( $this, 'directory_tab' ) );
    
    

    to

    
    add_action( 'bp_members_directory_member_types', array( $this, 'directory_tab' ), 0 );
    
    

    Let me know if it change the order or not?

    Regards
    Brajesh