Replies
- 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.
- Brajesh Singh on March 22, 2018 at 4:52 pm in reply to: Possibility to use "Members With Uploaded Avatars Widget" as a shortcode #14030
Hi Kuni,
Welcome back to the forums.You may want to look into
https://wordpress.org/plugins/widget-shortcode/
or similar plugins that allow embedding widgets in post.The shortcode is not available out of the box with the avatar plugin.
Regards
Brajesh Hi Daniel,
Thank you for posting.I had asked @ravisharma to look into it after your email message. He will be posting back here and assisting you with it.
The 1,2 are bug and will be fixed in plugin. For the others, He should be posting the code.
Regards
Brajesh- Brajesh Singh on March 22, 2018 at 4:48 pm in reply to: [Resolved] How to remove buddypress user from all groups #14028
Hi Mwale,
It will be a bad idea to remove user by checking on each page request. That’s why I have selected the deactivated action.The deactivated action fires when a user’s subscription expired. That way, It will only work for future expiring membership not the already expired.
I will suggest checking by expiring a user membership.
Regards
Brajesh Thank you Shelley. Glad it is finally resolved.
- Brajesh Singh on March 22, 2018 at 3:23 pm in reply to: [Resolved] MediaPress Moderation not hiding images in feed #14025
Hi Richard,
Please upgrade the Media Moderator plugin. We released an updated simultaneously for MediaPress and the Moderator.The new version of MediaPress has a different strategy for querying and that’s why the old moderator plugin won’t work.
https://buddydev.com/plugins/media-moderator-for-mediapress/
Best Regards
Brajesh