Replies
- Brajesh Singh on November 21, 2015 at 11:39 am 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.
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.
- Brajesh Singh on November 20, 2015 at 7:43 pm in reply to: [Resolved] Cover Image cropping feature (like the avatar cropping feature) #1728
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.
Hi George,
That is very strange. have you made any modifications in plugin code? Also, is the widget working?- Brajesh Singh on November 20, 2015 at 7:37 pm 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.
Hi George,
It may be d=ue to no user media. Please try changing thisowner_type="user"
to
owner_type="groups"
and see if that fetches some media or not?
- Brajesh Singh on November 20, 2015 at 1:15 pm in reply to: [Resolved] Cover Image cropping feature (like the avatar cropping feature) #1721
Hi Andy,
Though I don’t have a plugin here is something that will hard crop the image to your dimensionsfunction 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 Hi George,
Do you have user galleries? or you are using it just for groups?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.
- Brajesh Singh on November 20, 2015 at 10:53 am 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.