BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

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

    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: 25218
    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: 25218
    Brajesh Singh on in reply to: [Resolved] BP Editable Activity and BP Groups #3639

    Thank you Leo 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

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

    Glad to know that 🙂 You are most welcome.

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

    Hi Leo,
    Please upgrade to 1.1.3 and It will work.
    Hope that helps.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: Change Who's Online to Friend only #3631

    Hi Dandy,
    Most probably you changed the text in the original widget earlier. This line

    There are no users currently online
    

    should match the exact line which is there in the widgets file.

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

    Hi Leo,
    Thank you for reporting the issue. I am looking at it. will have a solution soon.

    Thank you
    Brajesh

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

    Hi Brendan,
    Thank you for confirming.

    Please modify the form.php as you wish to make it look better.