BuddyDev

Search

Replies

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

    Hello Carsten,

    I have updated the field and allowed single member type field available to user with not member type. Please take a look.

    Regards
    Ravi

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

    Hello,

    Please use the following code. It will send email notification to all group members on new activity update,

    
    
    function buddydev_mail_on_new_group_activity( $user_ids, $args ) {
    
    	if ( empty( $user_ids ) ) {
    		return;
    	}
    
    	$user_emails = array_map( function ( $user_id ) {
    		$user = get_user_by( 'id', $user_id );
    
    		if ( ! $user ) {
    			return;
    		}
    
    		return $user->user_email;
    	}, $user_ids );
    
    	$user_emails = array_filter( $user_emails );
    
    	if ( ! $user_emails ) {
    		return;
    	}
    
    	$group                      = new BP_Groups_Group( $args['group_id'] );
    	$loggedin_user_display_name = bp_get_loggedin_user_fullname();
    
    	$activity = new BP_Activity_Activity( $args['activity_id'] );
    
    	$activity_content   = $activity->content;
    	$activity_permalink = bp_activity_get_permalink( $activity->id, $activity );
    
    	$subject = sprintf( '%1$s posted to %2$s', $loggedin_user_display_name, $group->name );
    
    	$message = <<<MAIN
    Hi,
    	
    {$loggedin_user_display_name} posted...
    	
    {$activity_content}
    
    Link: {$activity_permalink}
    MAIN;
    
    	wp_mail( $user_emails, $subject, $message );
    }
    add_action( 'bp_group_activities_notify_members', 'buddydev_mail_on_new_group_activity', 10, 2 );
    
    

    Please do let me know if it works or not.

    Regards
    Ravi

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

    Hello Carsten,

    Sorry for the inconvenience. Can you provide me your site’s temporary admin credentials so that I can check what is going on there?.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: XPROFILE CUSTOME FIELD IMAGE UPLOAD ERROR #37277

    Hello Ravinder,

    Sorry for the inconvenience. Please do let me know are you using BuddyBoss or BuddyPress. Please share the error.

    Regards
    Ravi

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

    Hello,

    Please upgrade to the latest version. I have added Widget Options support to it.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Member Types issue #37272

    Hello Carsten,

    Thank you for posting. Is there any chance you have created member types manually using some custom code. Please have a look at your bp-custom.php and current theme function file for such custom code.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BuddyPress Featured Members Error #37219

    Hello Tiffany,

    Thank you for the acknowledgment. I am glad that the issue is resolved.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: BuddyCircles :- BuddyPress User Circles #37209

    Hello Bill,

    Sorry for the delayed reply. I am looking into it and will update you soon.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: BuddyPress Live Notification – Change Position #37067

    Hello Ethan,

    Sorry for the delayed reply. Do you want to change the position bottom-left to somewhere else. Please do let me know.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BuddyPress Featured Members Error #37054

    Hello Tiffany,

    Sorry for the delayed reply and thank you for the details. I have tested this and it working fine for me. Please share the complete error or plugin file line no on which error is occurring.

    Regards
    Ravi