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

    Hi Dianne,
    Thank you for the reply.

    The code is independent of the plugin. You will not find anything related to group in the current BuddyPress Auto Friendship pro.

    Please add the code to your bp-custom.php and then try joining some public group and see if the users are added as friends or not?

    PS:- Notification for user leaving the group is beyond the scope of this plugin. It might be a good idea for some other tool though.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Profile tabs and profile fields #46539

    Hi Chris,
    Thank you for the patience.

    I had a look. The issue lies with the shortcode plugin. By default, BuddyPress applies the filter ‘bp_get_the_profile_field_value’ on values and there are various formatting callbacks attached to this hook. We are using the raw value.

    If we need to have the same format as the default rendering on profile loop, we need to update shortcode. I will push an update to the plugin by Monday and post back.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Dianne,
    Thank you for upgrading your memmbership. i sincerely appreciate it.

    we do not automatically renew any subscription. so, there won’t be any new charge in future unless you renew manually.

    Here is the code to auto add friendship with group admins(organizers in case of BuddyBoss)

    
    
    /**
     * Creates friendship with group admin.
     *
     * @param int $group_id group id.
     * @param int $user_id user id joining group.
     */
    function bdcustom_create_group_friendships( $group_id, $user_id ) {
    
    	$admin_ids    = groups_get_group_admins( $group_id );
    	//$mod_user_ids = groups_get_group_mods( $group_id ); // uncomment if you want to enable for mods too.
    
    	$group_member_ids =  $admin_ids; // array_unique( array_merge( $admin_ids, $mod_user_ids ) );
    
    	foreach ( $group_member_ids as $group_member_id ) {
    
    		if ( $user_id == $group_member_id || friends_check_friendship( $user_id, $group_member_id ) ) {
    			continue;
    		}
    
    		friends_add_friend( $user_id, $group_member_id, true );
    	}
    }
    
    add_action( 'groups_join_group', function ( $group_id, $user_id ) {
    	bdcustom_create_group_friendships( $group_id, $user_id );
    } );
    
    

    Please do note that a similar but more refined approach(option for group admin, mods, all members friendship ) will be available in Auto Friendship pro in next release.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi,
    I don’t think that it will work with the shortcode.
    We will need to update the shortcode if we want to utilize this.

    Regards
    Brajesh

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

    Hi Dianne,
    Thank you for the replies.

    1. The Dynamic Group Tab Content is a free helper addon for Group tabs. We haven’t mergeed it into the plugin. We do plan to rewrite our tabs plugin in future to make it more flexible and easy to use and we will have something at that time to allow you remove this.

    2. No, we don’t have the ability to add as friend on invite but this is a very obvious one. We are adding this one as well as the auto friendship option for group admin/mods in next revision of this plugin (next week).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Buddy Blog Pro: GROUP Version?? #46532

    Hi Dianne,
    Thank you for the question.

    We have proceeded with the plugin and it is currently under alpha stage. We expect to have a beta release next week and a final release by the end of this month unless something unusual happens.

    The feature sets are exactly same as BuddyBlog. In addition, you can delegate some decision making to group admins.

    Regards
    Brajesh

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

    Hi,
    Thank you for the question.

    1. Make anyone who joins a Group to become friends automatically with the Group Organizers.
    It can be achieved by a couple of lines of code.

    2. We are working on a update for the Auto Friendship pro that will allow admins to make any 2 user friends. It will be available by 23rd of this month.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Lefteris,
    Thank you for the replies.

    I am sorry, I haven’t been able to assist you due to my current work. Please allow me to look over them and get back to you on Monday.

    regards
    Brajesh