BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: [Resolved] Posting in groups #46578
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Cristi,
    I am sorry, we made a mistake a used another hook name in release.

    Please keep the above line as we will be renaming back to that and you can use this instead for the time being.

    
    add_filter( 'bblpro_disable_media_listing', '__return_true' );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Tosin,
    Thank you for the suggestion.
    At the moment, we lack the resources to take on this request.

    Also, the option in your second reply means on page purchase. Pay Per post does not handle the payments, wooCommerce does and it may need some kind of Woo addon to achieve that.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Didier,
    Thank you for the patience and checking back.

    We are almost done with it. At the moment, we are working on Group admin settings(having control over types, who can post and other aspects). I am expecting a beta by the end of this week and a final release by the month end.

    Regards
    Brajesh

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

    Hi Chris,
    Thank you for the patience.

    Please update the shortcode plugin to current version from github
    https://github.com/buddydev/bp-shortcodes

    That will fix the issue.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: [Resolved] Branded login 403 forbidden error #46561

    Hi Tosin,
    Thank you. It is good to know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

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

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

    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