Replies
- Brajesh Singh on March 24, 2018 at 8:20 pm in reply to: how to add shortcode to top of activity feed #14091
Hi Peter,
I am not sure how you want it now and it will help if you can write exactly the way you want the shortcode.The earlier was to make it like ‘user-name-story’ e.g. peterfae-story.
- Brajesh Singh on March 24, 2018 at 8:18 pm in reply to: how do I pre-date (set earlier in time than the current) an entry in buddypress? #14090
Hi Peter,
What you need is save the date with the update. It is feasible but at the moment, there is no available UI that allows it.The way I see it is you will add a date/time picker on the activity update screen and then save the date with the activity instead of the current date/time.
You will need to implement it as a custom solution as there is no such UI available.
Best Regards
Brajesh - Brajesh Singh on March 24, 2018 at 12:43 pm in reply to: [Resolved] BuddyPress Member Type Pro – Hide Profile Tabs based on member type #14087This reply has been marked as private.
- Brajesh Singh on March 24, 2018 at 12:38 pm in reply to: images not uploading. on activity stream #14086
Last question answered here
https://buddydev.com/support/forums/topic/how-do-i-make-images-much-larger-on-the-activity-feed/I am not sure why the upload misbehaved but it is strange.
- Brajesh Singh on March 24, 2018 at 12:37 pm in reply to: how to add shortcode to top of activity feed #14085
Hi Peter,
This should do the jobecho do_shortcode( '[rev_slider alias="' . bp_get_displayed_user_username() . '-story"]' );Regards
Brajesh - Brajesh Singh on March 24, 2018 at 12:35 pm in reply to: how to set the Activity feed to ascending? #14084
Hi Peter,
Here is the updated code to show the updates by default on user profiles./** * List activities in ascending order. * * @param array $args activity args. * * @return array */ function buddydev_list_activities_ascending( $args ) { if ( bp_is_user_activity() ) { $args['sort'] = 'ASC'; if ( empty( $args['action'] ) ) { $args['action'] = 'activity_update'; } } return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_list_activities_ascending' );Best regards
Brajesh - Brajesh Singh on March 24, 2018 at 11:36 am in reply to: [Resolved] how do I show full posts on the profile feed without 'read more'? #14082
Hi Peter,
I am marking it as resolved as it dealt with the original issue.For your last question, let us continue discussion at
https://buddydev.com/support/forums/topic/how-to-add-shortcode-to-top-of-activity-feed/Thank you
Brajesh Hi Madhavi,
I am sorry but I am unable to assist as I could not recognise the theme from the screenshot.Since t seems to be a custom theme, I will suggest you to use chrome developer tool to identify the element and then add proper css.
Best Regards
Brajesh- Brajesh Singh on March 24, 2018 at 11:31 am in reply to: [Resolved] how do i make images much larger on the activity feed? #14080
Hi Peter,
Hope you are doing well.
In case of MediaPress, we currently create 2 size of images– thumbnail
– mid
-largeand then there is the original fiull image
If you want to change the dimension for each of these sizes, you can do that from Dashboard->MediaPress->settings->General
The changes will apply to newer uploaded images only(which are uploaded after the settings change).
Now, in case of activity, we use the thumbnail size. The simplest way to change it will be to copy
wp-content/plugins/mediapress/templates/mediapress/default/buddypress/activity/views/grid-photo.php to
wp-content/themes/[Your-current-child-theme or theme]/mediapress/default/buddypress/activity/views/grid-photo.php
and then modifying this
<img src="<?php mpp_media_src( 'thumbnail' ); ?>" class='mpp-attached-media-item' title="<?php echo esc_attr( mpp_get_media_title() ); ?>"/>to
<img src="<?php mpp_media_src( 'mid' ); ?>" class='mpp-attached-media-item' title="<?php echo esc_attr( mpp_get_media_title() ); ?>"/>For example, we changed the size to mid.
Hope that helps.
Regards
Brajesh - Brajesh Singh on March 24, 2018 at 11:25 am in reply to: Can not upload images with Mediapress at BP activity page #14079This reply has been marked as private.