BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    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: 25057
    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: 25057
    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?

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi Andy,
    Though I don’t have a plugin here is something that will hard crop the image to your dimensions

    
    
    function buddydev_enable_crop_for_cover_image( $args ) {
    	$args['crop'] = true;
    	
    	return $args;
    }
    add_filter( 'bp_after_attachment_cover_image_edit_image_parse_args', 'buddydev_enable_crop_for_cover_image' );
    
    function cm_xprofile_cover_image( $settings = array() ) {
    $settings['width'] = 1200;
    $settings['height'] = 400;
    
    return $settings;
    }
    add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'cm_xprofile_cover_image', 10, 1 );
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'cm_xprofile_cover_image', 10, 1 );
    
    

    Please give it a try and let me know if that crops or not? I am certainly thinking to do something similar in next few months if no one comes up with.

    PS: For posting code please use backticks here( `)

    Thank you
    Brajesh

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

    Hi George,
    Do you have user galleries? or you are using it just for groups?

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

    Hi George,
    There are some bad quotes in that shortcode( ” )

    
    
    [bp-gallery show="media" owner_type="user" orderby="date" type="photo" max="10" ]
    
    

    Try the above. If that does not work, please try clearing cache and check again.

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: [Resolved] Custom post fields in buddyblog #1714

    Hi Martin,
    Thank you. Do you mean the data is not visible on Single post view?

    Please copy plugin/buddyblog/template/buddyblog to your theme and modify buddyblog/single.php.

    There you can add these fields like

    
    
    Synopsys: <?php echo get_post_meta( get_the_ID(), 'synopsys', true );?>
    
    

    and so on.

    Hope that helps.

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

    That is the problem. None of the existing solution will allow you to do a visual editing from front end. The existing Visual editors are not integrated.

    So, the better approach is like adding a page from Dashboard but that takes away the rights from Group admins.

    If you go with Group extras, yes, It will be possible to fetch that page content on front page.

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

    Hi George,
    I am not sure what you tried.

    Can you please explain, did you made some modifications to code too?

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi Leo,
    Thank you. I am glad it is fixed.
    I am looking forward to hear your feedback. we have still a lot of things to add and every experience counts 🙂

    I am marking this topic as resolved now. Please do open new topic if you need any further assistance.

    Thank you
    Brajesh