Replies
- Brajesh Singh on March 23, 2018 at 7:15 am in reply to: No option to save profile photo, cropping doesn't work either. #14059This reply has been marked as private.
- Brajesh Singh on March 23, 2018 at 5:28 am in reply to: how to set the Activity feed to ascending? #14054
Also, Please make sure you did not copy it from the email notification. The code in email gets entity encoded.
- Brajesh Singh on March 23, 2018 at 5:27 am in reply to: how to set the Activity feed to ascending? #14053
Hi Peter,
The code is working fine as I just confirmed again.Please enable WP_DEBUG and let me know what error you are seeing. It should be a fatal error.
- Brajesh Singh on March 23, 2018 at 5:21 am in reply to: how to set the Activity feed to ascending? #14050
Please make sure to remove the previous code. Keeping both have caused white screen as I have used same name for the functions.
- Brajesh Singh on March 23, 2018 at 4:58 am in reply to: how to add shortcode to top of activity feed #14048
Hi Peter,
You will need to somehow co-relate a slider to the user.The possible options are using the username or the id.
So, you will be naming your slider as
some-slider-1 or some-slider-adminand based on the choice you can use the following to generate the slider name dynamically.
echo do_shortcode( '[rev_slider alias="gym-classes-'. bp_displayed_user_id() .'"]' );or
echo do_shortcode( '[rev_slider alias="gym-classes-'. bp_get_displayed_user_username() .'"]' );Hope that helps.
- Brajesh Singh on March 23, 2018 at 4:54 am in reply to: how to set the Activity feed to ascending? #14047
Thank you.
You may use the following code instead
/** * 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'; } return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_list_activities_ascending' );It only shows the activities as ascending on the user profile.
Best regards
Brajesh - Brajesh Singh on March 23, 2018 at 4:30 am in reply to: how to set the Activity feed to ascending? #14044
You can list the activities as ascending using the following code
/** * List activities in ascending order. * * @param array $args activity args. * * @return array */ function buddydev_list_activities_ascending( $args ) { $args['sort'] = 'ASC'; return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_list_activities_ascending' );It is possible to list the last activity at top but that will be a bit complicated and I won’t be able to assist much with that due to lack of time.
Hope it helps.
Regards
Brajesh - Brajesh Singh on March 23, 2018 at 4:24 am in reply to: how to add shortcode to top of activity feed #14042
You can use
The folloing to show on activity directory
function slider_above_activity_directory() { if ( bp_is_activity_directory() ) { echo do_shortcode( '[rev_slider alias="gym-classes"]' ); } } add_action( 'x_after_site_begin', 'slider_above_activity_directory' );or the below code to show on user profile activity
function slider_above_user_activity() { if ( bp_is_user_activity() ) { echo do_shortcode( '[rev_slider alias="gym-classes"]' ); } } add_action( 'x_after_site_begin', 'slider_above_user_activity' );Hope that helps.
- Brajesh Singh on March 23, 2018 at 2:06 am in reply to: [Resolved] BuddyPress User Profile Tabs Creator Pro Version 1.0.7 has SERIOUS ISSUES #14038
Hi Khalid,
I have added some code in 1.0.7 to set default sub nav for existing tabs and I am guessing that has caused the issue. I tested with slugs but did not use the url to check.
I regret the inconvenience.
Will have an update available in couple of hours.
PS:- There is no need to re save any thing. Haven’t changed the internal storage structure.
Thank you
Brajesh - This reply has been marked as private.