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: 25488
    Brajesh Singh on in reply to: Conditional Fields plugin won't activate #3674

    Hi Paul,
    I am sorry for the inconvenience.
    It seems a very strange behavior. Please give me 5 minutes to verify and I will get back to you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25488

    Hi Chris,
    Welcome to BuddyDev.

    Please put the following code in your bp-custom.php

    
    function buddydev_set_bp_email_from( $from, $email_address, $name ) {
    	
    	$from = new BP_Email_Recipient( '[email protected]', $name );
    	
    	return $from;
    }
    
    add_filter( 'bp_email_set_from', 'buddydev_set_bp_email_from', 10, 3 );
    
    

    Please do let me know if it works for you or not?

    Thank you
    Brajesh

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

    Hi Alayna,
    They are using bbPres ajax reply plugin.

    Here is the link to the plugin
    https://github.com/aliso/bbpress-ajax-replies

    Please do note that it will work if you have threaded comments enabled.

    Hope that helps.
    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25488
    Brajesh Singh on in reply to: Edit Blog Post layout #3665

    Hi Brendan,
    There are many I have seen in the past. I don’t have any particular choice. It will be nice to know your preference and provide a way to have it.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25488

    Hi Ada,
    Thank you. I have made a few more changes in the above function. This should finally do our job. Please check if it works or not?

    
    
    function bcg_custom_forms_args( $args ) {
    
    	$tax = $args['tax'];
    
    	unset( $tax['category'] );//we don't need a box for category
    
    	foreach( $tax as $taxonomy => $details ) {
    		$tax[$taxonomy]['include'] = get_terms( $taxonomy, array('fields' => 'ids', 'get' => 'all') );
    	}
    
    	$args['tax'] = $tax;
    
    	$cusom_fields = isset( $args['custom_fields'] ) ? $args['custom_fields']: array() ;
    
    	$group = groups_get_current_group();
    
    	if( empty( $group ) || empty( $group->id ) ) {
    		return $args;
    	}
    
    	$cats = bcg_get_categories( $group->id );
    	//if there is no category set
    	if( empty( $cats ) ) {
    		//create if not exists
    		$cats = bcg_custom_create_group_category( $group );
    	}
    
    	if ( empty( $cats ) ) {
    		return $args;
    	}
    
    	$cusom_fields['_bcg_selected_category'] = array(
    		'type'      => 'hidden',
    		'default'   => $cats[0],
    		'label'     => ''
    	);
    
    	$args['custom_fields'] = $cusom_fields;
    	$args['post_status'] = 'publish';
    
    	return $args;
    }
    add_filter( 'bcg_form_args', 'bcg_custom_forms_args' );
    
    

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25488

    Thank you. will update with the code in next 1-2 hours.

  • Keymaster
    (BuddyDev Team)
    Posts: 25488
    Brajesh Singh on in reply to: Media Upload to a Group from User Activity Stream #3655

    Hi Leo,
    It is not impossible one. It is related to physically moving files to make sure the quotas for users/groups reflect correctly. I am a little bit busy with some other important changes, that’s why it is delayed. It will be available in next 2 weeks for sure.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25488
    Brajesh Singh on in reply to: Change Who's Online to Friend only #3654
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25488

    Hi James,
    Thank you for the kind words. I am glad we were able to help.
    All the best with your project.

    Regards
    Brajesh