Replies
- Ravi on June 10, 2022 at 4:10 pm in reply to: BuddyPress Auto Friendship Pro + BuddyPress Featured Members Feature Suggestion #45289
Thank you for the acknowledgement.
Regards
Ravi - Ravi on June 10, 2022 at 10:27 am in reply to: BuddyPress Auto Friendship Pro + BuddyPress Featured Members Feature Suggestion #45284
Hello Tosin,
Please use the function ‘bp_follow_start_following’ instead of ‘friends_add_friend’. Please give it a try.
Regards
Ravi - Ravi on June 10, 2022 at 10:01 am in reply to: BuddyPress Auto Friendship Pro + BuddyPress Featured Members Feature Suggestion #45282
Hello Tosin,
Please use the following code. It will add all featured members as a friend on new user activation.
add_action( 'bp_core_activated_user', function ( $user_id ) { if ( ! function_exists( 'friends_add_friend' ) ) { return; } $featured_user_ids = get_users( array( 'meta_key' => '_is_featured', 'fields' => 'ID', 'number' => - 1, ) ); if ( empty( $featured_user_ids ) ) { return; } foreach ( $featured_user_ids as $featured_user_id ) { friends_add_friend( $featured_user_id, $user_id, true ); } } );
Please check.
Regards
Ravi - Ravi on June 10, 2022 at 9:09 am in reply to: [Resolved] BuddyPress Member Types in bbPress Forums #45281
Hello Darbii,
Sorry for the delayed reply. Please use the following code in your ‘bp-custom.php’ file or active theme ‘functions.php’ file.
add_filter( 'bbp_get_reply_author_role', function ( $author_role, $r, $args ) { if ( ! function_exists( 'bp_get_member_type' ) ) { return $author_role; } $reply_id = bbp_get_reply_id( $r['reply_id'] ); $member_type = bp_get_member_type( bbp_get_reply_author_id( $reply_id ) ); $member_type = $member_type ? bp_get_member_type_object( $member_type )->labels['singular_name'] : ''; // Backwards compatibility with old 'class' argument. if ( ! empty( $r['class'] ) ) { $author_role = sprintf( '%1$s<div class="%2$s">%3$s</div>%4$s', $r['before'], esc_attr( $r['class'] ), esc_html( $member_type ), $r['after'] ); } else { $author_role = $r['before'] . $member_type . $r['after']; } return $author_role; }, 10, 3 );
It will show Member type on the single topic page. Please check
Regards
Ravi - Ravi on June 6, 2022 at 2:18 pm in reply to: [Resolved] buddycircles default circle with private access #45195
Hello Hussein,
Thank you for the acknowledgement. I am glad that I could help.
Regards
Ravi - Ravi on June 6, 2022 at 2:16 pm in reply to: [Resolved] Create Gallery – Extend entry in activity #45194
Hello Maurice,
Thank you for posting. Please try the following code:
add_filter( 'mpp_do_not_record_create_gallery_activity', '__return_true' ); add_action( 'mpp_gallery_created', function ( $gallery_id ) { $gallery = mpp_get_gallery( $gallery_id ); $user_link = mpp_get_user_link( $gallery->user_id ); $link = mpp_get_gallery_permalink( $gallery ); $action = sprintf( __( '%s created a %s <a href="%s">gallery</a>', 'mediapress' ), $user_link, strtolower( mpp_get_type_singular_name( $gallery->type ) ), $link ); $content = ''; $content .= sprintf( '<a href="%s"><img src="%s" /></a>', esc_url( $link ), esc_url( mpp_get_default_gallery_cover_image_src( $gallery, 'thumbnail' ) ) ); $content .= sprintf( '<a href="%s">%s</a>', esc_url( $link ), mpp_get_gallery_title( $gallery ) ); // record gallery creation as activity, there will be issue with wall gallery though. mpp_gallery_record_activity( array( 'gallery_id' => $gallery_id, 'type' => 'create_gallery', 'content' => $content, 'action' => $action, ) ); }, 15 );
Gallery cover is not available at the time of creation so showing the default cover image.
Regards
Ravi - Ravi on June 6, 2022 at 11:18 am in reply to: [Resolved] buddycircles default circle with private access #45188
Hello Hussein,
Please upgrade your plugin. I have introduced a new setting for default circles privacy. Please have a look here:
https://www.awesomescreenshot.com/image/28294465?key=986d607df689d544d456b58f98434a46
Please give it a try.
Regards
Ravi - Ravi on June 3, 2022 at 7:01 am in reply to: [Resolved] buddycircles default circle with private access #45180
Hello Hussein,
Thank you for reporting the issue. I have checked the code and found that Default circles are created with public privacy by default. So need to check how we can implement this in a better way. Please wait till Monday we will hopefully come up with an update regarding this issue.
Regards
Ravi Hello,
Please try the following CSS. You theme hiding the pagination.
#buddypress .u-testimonials #pag-top { display: block; }
Please check
Regards
RaviHello,
Sorry for the inconvenience. I will check it and will acknowledge you at day end.
Regards
Ravi