Replies
- Brajesh Singh on July 22, 2020 at 8:09 pm in reply to: BuddyPress Profile Completion and BuddyPress Force profile photo #31874
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 - Brajesh Singh on July 22, 2020 at 10:25 am 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 - Brajesh Singh on July 22, 2020 at 10:02 am in reply to: [Resolved] Auto Friendship Pro (will one of these rules work – and implement backwards)? #31867
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
BrajeshP.S:- Please do not copy this code from the forum notification mail. Instead use it form the support page here.
- Brajesh Singh on July 22, 2020 at 9:43 am 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 - Brajesh Singh on July 22, 2020 at 6:00 am 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#L22from
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 Hi Daniel,
Thank you.It is simple to achieve with MediaPress. Someone with good knowledge of css should be able to achieve it easily.
At the moment, I am preoccupied and unable to spend time on this. I will consider putting an example in future.
Regards
BrajeshHi David,
Thank you for confirming.You can find details about how to filter body class here
https://developer.wordpress.org/reference/hooks/body_class/Please open new topic for unrelated topics if needed.
Thank you
Brajesh- Brajesh Singh on July 22, 2020 at 5:24 am in reply to: [Resolved] Change buddypress username minimum length to 3 #31858
Hi Tosin,
Thank you for reminding. I will be looking into it today.Regards
Brajesh - Brajesh Singh on July 22, 2020 at 5:23 am in reply to: BuddyPress Profile Completion and BuddyPress Force profile photo #31857
Hi Tosin,
If you are using the Force Profile Photo plugin, please comment this line
https://github.com/buddydev/bp-force-profile-photo/blob/master/bp-force-profile-photo.php#L190You can change that to
// $has_avatar = bp_get_user_has_avatar( $user_id );// fallback.That will do it.
Regards
Brajesh - Brajesh Singh on July 22, 2020 at 5:14 am in reply to: [Resolved] Facebook Like Activity Stream and BuddyBoss #31856This reply has been marked as private.