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

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

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25333

    Hi Horton,
    Just wanted to give you another update.

    1.The bug seems to be with BuddyPress. Have been trying to debug it and it seems it lies with the way BuddyPress provides theme compatibility. Try posting the shortcode to activity and see if it works or not?

    2. I am trying to find a reason for this and will update again and open a ticket on BuddyPress track. If you want me to allow html content in the description, please do let me know, I can easily allow that. It is controlled by MediaPress.

    Thank you
    Brajesh

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

    Hi Brendan,
    Thank you for posting. Can you please point me to the plugin you are using to restrict categories. I will need to add compatibility for the specific plugin to make it work together.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25333

    Hi James,
    Welcome to BuddyDev.

    You can use the following function to get the image url like this

    
    
    $image_url = bp_attachments_get_attachment('url', array( 'item_id' => bp_displayed_user_id() ) );
    
    

    Try using it and let me know if it helps or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25333

    Hi,
    Just wanted to give you an update. I have been working on it and I am facing a few issues specially related to the use of shortcode. As soon as the theme compat templates are used, our shortcode goes empty. I am looking further and will update you again.

  • Keymaster
    (BuddyDev Team)
    Posts: 25333
    Brajesh Singh on in reply to: [Resolved] BP Simple Front End Post Form #3640

    Hi Leo,
    Thank you for confirming.
    Marking it as resolved now.

  • Keymaster
    (BuddyDev Team)
    Posts: 25333
    Brajesh Singh on in reply to: [Resolved] BP Editable Activity and BP Groups #3639

    Thank you Leo 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25333

    Hi Ada,
    when you copied the code from the referenced post, you might have used the following code from step 5.

    
    function bcg_custom_forms_args( $args ) {
    	
    	$args['tax'] = array();
    	
    	$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' );
    
    

    Please change that to this

    
    
    function bcg_custom_forms_args( $args ) {
    
    	$tax = $args['tax'];
    
    	unset( $tax['category'] );//we don't need a box for category
    	$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' );
    
    

    We were removing all the taxonomies causing the issue. Updating that section should make it work. Please give it a try. Another small modification may be required if it does not work for you. Please do let me know how it goes with you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25333

    Glad to know that 🙂 You are most welcome.