Replies
- Brajesh Singh on April 13, 2018 at 1:18 pm in reply to: [Resolved] Editable Activity not work when write activity & upload image #14451
I will need to check before posting. last time I checked Rt media was not using any separation between the text and media items. So, users were seeing the html when we enabled it(yes, There is a filter to enable it for any type).
I will first check with RtMedia this weekend and then will post the code.
Regards
Brajesh - Brajesh Singh on April 13, 2018 at 1:16 pm in reply to: We don't have enough details to suggest a friend yet #14450
1. yes, Friends of Friends is the criteria.
2. There is no snippet for now. Will consider it as a feature request and we will include it in our update for Budydpress 3.0(or before if we update it earlier).
Regards
Brajesh - Brajesh Singh on April 13, 2018 at 1:08 pm in reply to: [Resolved] Limited friends is not right. #14448
Glad you found it.
- Brajesh Singh on April 13, 2018 at 1:07 pm in reply to: [Resolved] Hide current logged in user and admin #14447
Hi Julia,
You can use the following code to achieve same./** * Exclude logged and admin users from BuddyPress users list. * * @param array $args member loop args. * * @return array */ function buddydev_exclude_logged_and_admin_users( $args ) { //do not exclude in admin if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { return $args; } $excluded = isset( $args['exclude'] ) ? $args['exclude'] : array(); if ( ! is_array( $excluded ) ) { $excluded = explode( ',', $excluded ); } $role = 'administrator';//change to the role to be excluded $user_ids = get_users( array( 'role' => $role, 'fields' => 'ID' ) ); $excluded = array_merge( $excluded, $user_ids ); if ( is_user_logged_in() ) { array_push( $excluded, get_current_user_id() ); } $args['exclude'] = $excluded; return $args; } add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_logged_and_admin_users' );Regards
Brajesh Hi Jill,
Thank you.This will need specific css. Please link me to a profile on your site and I can check the dom and provide css.
Thank you
Brajesh- Brajesh Singh on April 12, 2018 at 8:25 pm in reply to: [Resolved] Editable Activity not work when write activity & upload image #14431
Hi Julia,
We have tried doing it in part. There is a limitation of our inline editor. We don’t support richtext and that’s why editing media(be it rtMedia or MediaPress ) is not supported as they show links and html.This plugin is not in our current priority but we do hope that we will be able to rewrite it this year and add support for all content types.
Thank you
Brajesh - Brajesh Singh on April 12, 2018 at 8:22 pm in reply to: Buddypress Force follow 5 members after registration #14430
Hi Tosin,
I am glad it worked. @ravisharma deserves the credit for the assistance. Thank you Ravi.This code can certainly be extrapolated for friendship but a Friendship is a bidirectional connection. What should we count? The friends and the friendship request sent by the logged in member?
Regards
Brajesh - Brajesh Singh on April 12, 2018 at 8:16 pm in reply to: Display sitewide activity for followers only #14429
Hi Tosin,
Please feel free to restore your old template file.The problem lied with my code. I mistook for members directory. Have updated the code to
/** * Filter sitewide activity to list following user's activity. * * @param array $args args. * * @return array */ function buddydev_custom_list_activities_filter( $args ) { if ( ! is_user_logged_in() || ! bp_is_activity_directory() ) { return $args; } // for logged in user, change scope to following. $args['scope'] = 'follow'; return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_custom_list_activities_filter' );Also, this code should go to your theme’s functions.php or the bp-custom.php in plugins directory and not in template file.
PS:- You can also just conditionally hide the All members tab by using a condition like. That will be a nice enhancement in addition to the above code.
<?php if( ! is_user_logged_in() ) :?> ......link for showing the all members tab <?php endif;?>Regards
Brajesh - Brajesh Singh on April 12, 2018 at 8:10 pm in reply to: BuddyPress Moderation – Report Users/Groups #14428
Thank you Tiziano.
It’s coming up as expected and will be available by the end of next week.
Best regards
Brajesh - Brajesh Singh on April 12, 2018 at 8:09 pm in reply to: How to make someone become featured members? #14427
Hi,
At the moment, You can do it from the members directory too. Yes, we will add a context link in the admin in the future for the same.Regards
Brajesh