Replies
Hello Nik,
Sorry for the inconvenience. MediaPress uses Google Docs viewer for previewing documents. Please try the following link by putting your ppt URL
https://docs.google.com/viewer?url=http://example.com/wp-content/uploads/2021/04/xyz.pptx
And let me know if Google shows the preview for your ppt or not.
Regards
RaviHello Carsten,
Thank you for posting. Please try the following code to hide add friend button in the member’s directory
add_filter( 'bp_get_add_friend_button', function ( $button ) { if ( bp_is_members_directory() ) { $button = array(); } return $button; } );
Please do let me know if it works or not.
Regards
Ravi- Ravi on April 13, 2021 at 5:35 am in reply to: [Resolved] Return in bp_members_suggestions_query_args only bp featured members #37704
Hello,
Thank you for the acknowledgment. Please try the following code:
function buddydev_filter_buddypress_auto_complete_ids( $args ) { if ( ! function_exists( 'bp_featured_members' ) ) { return $args; } if ( is_user_logged_in() ) { $args['excluded'] = get_current_user_id(); } $args['meta_key'] = '_is_featured'; return $args; } add_filter( 'bp_members_suggestions_query_args', 'buddydev_filter_buddypress_auto_complete_ids' );
Do let me know if it works or not.
Regards
Ravi - Ravi on April 12, 2021 at 4:50 pm in reply to: [Resolved] Return in bp_members_suggestions_query_args only bp featured members #37670
Hello,
Thank you for posting. Try the following code and let me know if it works or not.
/** * Modify member suggestion query args * * @param array $args Suggestion query args. * * @return mixed */ function buddydev_filter_buddypress_auto_complete_ids( $args ) { if ( ! function_exists( 'bp_featured_members' ) ) { return $args; } $args['meta_key'] = '_is_featured'; return $args; } add_filter( 'bp_members_suggestions_query_args', 'buddydev_filter_buddypress_auto_complete_ids' );
Regards
Ravi - Ravi on April 12, 2021 at 9:48 am in reply to: Auto Friendship Pro not add follow on create new user #37648
Hello Peter,
Sorry for the inconvenience. By we make friendship on activate account action since you are manually creating a user that action didn’t fire. Please try the following code in your bp-custom.php file:
add_filter( 'bp_auto_friendship_pro_enable_on_user_register', '__return_true' );
Know more: https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/
Please do let me know if it works or not.
Regards
Ravi - Ravi on April 10, 2021 at 8:34 am in reply to: BuddyBlog – Activity Stream excerpt limit – How to reduce the amount of words #37565
Hello John,
Thank you for posting. Filter ‘excerpt_length’ used by WordPress on the post archive page. If you want to restrict activity excerpt length please use the following filter:
bp_activity_excerpt_length
Please do let me know if it works or not.
Regards
Ravi - Ravi on April 9, 2021 at 4:37 pm in reply to: [Resolved] How to translate buddypress member type pro lables? #37547
Hello Corey,
Thank you for the acknowledgment.
Regards
Ravi - Ravi on April 9, 2021 at 6:25 am in reply to: [Resolved] How to translate buddypress member type pro lables? #37536
Hello Corey,
Thank you for asking. It seems you are using the WPML plugin for translation and WPML is a paid plugin and we don’t have access to it.
1. Do you have a staging site where we can check the issue?
2. or, Please provide a copy of the plugin and we will assist.Regards
Ravi - Ravi on April 9, 2021 at 6:18 am in reply to: xprofiles and bp profile search returning all results on no match #37535
Hello Richard,
Thank you for the acknowledgment. It is good to know that problem is resolved on your own.
Regards
Ravi Hello Anders,
Thank you for asking. Please use the following code in your ‘bp-custom.php’ or ‘functions.php’ file of the active theme.
add_filter( 'bp_get_send_public_message_button', '__return_empty_array' );
Please do let me know if it works or not.
Regards
Ravi