BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24774

    Hi Andy,
    Sorry about the delay. Been a little beet inactive on weekend.

    You are right about the message. I am also integrating the new cover image to our upcoming theme and have faced similar issue. There is a way to do it by unhooking the core ajax upload handler

    
    remove_action( 'wp_ajax_bp_cover_image_upload', 'bp_attachments_cover_image_ajax_upload' );
    

    and adding our custom handler for the action that generates the error. But I am not sure if that will be the best thing to do(and another issue is future compatibility).

    If you are interested in this approach, I can assist with the code.

  • Keymaster
    (BuddyDev Team)
    Posts: 24774
    Brajesh Singh on in reply to: BP Gallery shortcakes ? #1741

    Hi, Sorry about the delay. Checking now, Looking at it will get back to you in 30 mins.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24774
    Brajesh Singh on in reply to: Trying to improve the Group home page #1738

    Hi George,

    1. It looks for the the current page( custom post type) associated with group. If it finds an ID, then it tries to display the content.

    ‘bpge’ is a meta key and has nothing to do with the page slug. BP Extras uses it to store the associated page id. Please try debugging it by doing some print_r on the ID/post etc.

  • Keymaster
    (BuddyDev Team)
    Posts: 24774

    Hi Jan,
    I am sorry to keep you waiting. I have this plugin working but it needs a little more refraction. Please give me 1-2 more days. I got stuck with a theme, so could not spend much time on it. Will finish and push the changes.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24774
    Brajesh Singh on in reply to: Trying to improve the Group home page #1733

    Hi George,
    here is the snippet you can use in your front page

    
    $page_id = groups_get_groupmeta( bp_get_current_group_id(), 'bpge' );
    
    if( $page_id ) {
    	
    	$post = get_post( $page_id );
    	
    	//echo get_the_title( $post ); //uncomment for title
    	
    	echo apply_filters( "the_content", $post->post_content );
    }
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24774
    Brajesh Singh on in reply to: Missing functionality #1730

    Hi Chris,
    Welcome to BuddyDev forums.

    Thank you for asking this. This is a functionality that we will certainly add. It is easy to implement. The only issue is we are committed to a theme at the moment and we plan to start implementing new features to MediaPress after 15th December.

    If that works for you, that will be great.

  • Keymaster
    (BuddyDev Team)
    Posts: 24774

    Hi Andy,
    Thank you.
    I had a look at the code and it seems that BuddyPress does have the warning available. I am not sure why it is not being shown( I could not test it).

    As per the code I saw, When small dimension image is uploaded, there should be a warning there.

  • Keymaster
    (BuddyDev Team)
    Posts: 24774
    Brajesh Singh on in reply to: BP Gallery Shortcode #1727

    Hi George,
    That is very strange. have you made any modifications in plugin code? Also, is the widget working?

  • Keymaster
    (BuddyDev Team)
    Posts: 24774
    Brajesh Singh on in reply to: Trying to improve the Group home page #1726

    Hi George,
    You can access the page id as following

    
    
    $page_id = groups_get_groupmeta( bp_get_current_group_id(), 'bpge' );
    
    

    Then simply a get_post() on that and echoing the $post->post_content will be enough.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24774
    Brajesh Singh on in reply to: BP Gallery Shortcode #1722

    Hi George,
    It may be d=ue to no user media. Please try changing this

    
    owner_type="user"
    

    to

    
    
    owner_type="groups"
    
    

    and see if that fetches some media or not?