Replies
- Brajesh Singh on October 4, 2018 at 2:46 pm in reply to: [Resolved] buddyBlog comments not entering buddyPress activity feed #17816
Hi Richard,
I am sorry for the inconvenience.Please Visit Dashboard-> Settings->BuddyPress->Components and let me know if “Site Tracking” is enabled? If not, please enable it and try posting a comment.
Regards
Brajesh Hi Mimi,
Welcome to BuddyDev.Here is abetter strategy. We buffer the page content and discard it.
/** * Start Buffering the members directory content. */ function buddydev_start_members_dir_buffering() { ob_start(); } add_action( 'bp_before_directory_members', 'buddydev_start_members_dir_buffering', - 1 ); /** * Discard the members directory content. */ function buddydev_end_members_dir_buffering() { // discard. ob_end_clean(); } add_action( 'bp_after_directory_members', 'buddydev_end_members_dir_buffering', 100001 );You can put it in your bp-custom.php or in your theme’s functions.php
Hope it helps
Regards
BrajeshHi CDS,
Thank you for the details. Let me try this code on a site of mine and get back to you later today.
Thank you
Brajesh- Brajesh Singh on October 4, 2018 at 1:39 pm in reply to: [Resolved] Buddypress Anonymous Activity Language Translation #17812
Hi Kerem,
Thank you.
Please remove this line
define ('WPLANG', 'my new file name');or change it to
define ('WPLANG', 'YourLocaleName');The WPLANG should be set to the locale(e.g en_US fr_FR). What is your current locale, I can suggest the proper value.
Regards
Brajesh Hi CDS,
You have done it correctly by addingadd_filter( 'bp_core_default_avatar_user', 'buddydev_set_default_use_avatar_based_on_member_type', 10, 2 );That line is required.
I am hoping that example.com is replaced with the correct url path.
Also, I will suggest that you should try changing a user’s member type and see if it has any effect on the avatar. Your code seems fine to me.
Regards
Brajesh- Brajesh Singh on October 4, 2018 at 4:31 am in reply to: Disabling Buddypress Group Deletion Non Site Admin #17804
Hi Kerem,
Thank you for posting.BuddyPress 3.0 has changed the way functions are loaded and this function is loaded conditionally now. That might be the reason.
I was unable to recreate it. Still, you can use the following code to avoid any such notice.
/** * Disable group deletion by non site admins. */ function buddydev_disable_group_delete_by_non_site_admin() { if ( ! bp_is_group() || is_super_admin() ) { return; } $parent = groups_get_current_group()->slug . '_manage'; bp_core_remove_subnav_item( $parent, 'delete-group', 'groups' ); // BuddyPress seems to have a bug, the same screen function is used for all the sub nav in group manage // so above code removes the callback, let us reattach it // if we don't , the admin redirect will not work. if ( function_exists( 'groups_screen_group_admin' ) ) { add_action( 'bp_screens', 'groups_screen_group_admin', 2 ); } } add_action( 'groups_setup_nav', 'buddydev_disable_group_delete_by_non_site_admin' );Regards
Brajesh - Brajesh Singh on October 4, 2018 at 4:17 am in reply to: [Resolved] Buddypress and Woocommerce #17801
Thank you for letting me know.
Glad that you found a solution.
Regards
Brajesh Sure. All the best.
You are welcome.
- Brajesh Singh on October 4, 2018 at 4:15 am in reply to: BuddyBlog error leaving a comment and uploading media #17798
Hi Kreatsya,
You are welcome. Glad that it is resolved.Yes, disabling minification will have performance ramifications.
Most of the minify plugins provide a way to exclude certain files. Please notify the developer of minify plugin that it is causing problem with front end usage of WordPress media uploader and they should be able to help.
Regards
Brajesh