Replies
- Brajesh Singh on January 13, 2025 at 7:33 am in reply to: Anonymous plugin – Activity as friend #54625This reply has been marked as private.
- Brajesh Singh on January 13, 2025 at 7:31 am in reply to: Anonymous plugin – Activity as friend #54624
Hi Katrine,
Thank you for the reply.You had purchased one month access to plugin download and support, that’s why
I will share a copy of the update in next private reply.
Please add this code to enable privacy on the directory page.
/** * Hide anonymous activity if it is not all activity screen. */ add_filter( 'bp_anonymous_activity_hide_anonymous', function ( $hide, $template_args ) { if ( ! empty( $template_args['object'] ) || bp_is_user() ) { return $hide;// we don't care. } // we are on directory. $scope = isset( $template_args['scope'] ) ? $template_args['scope'] : 'all'; if ( ! empty( $scope ) && 'all' !== $scope ) { // it will hide on my group etc too. $hide = true; } return $hide; }, 10, 2 );
Thank you
Brajesh - Brajesh Singh on January 11, 2025 at 6:55 am in reply to: bug BuddyPress Profile Data Moderator #54559
Hi Jerome,
The code will work if you put it in functions.php in your active theme/or child theme. Make sure you are not checking as site administrator as it won’t stop site admins form viewing the data.Also, can you confirm that the plugin is hiding the data from their actual Profile view(Under the header, profile tab) without this code too?
Regards
Brajesh - Brajesh Singh on January 11, 2025 at 5:44 am in reply to: bug BuddyPress Profile Data Moderator #54557
Hi Jerome,
Thank you for your patience.I had a look at the theme’s code.
There is a function hardcoded in the theme header that prints this data(You select these fields in the Theme Settings page(BuddyPress members & Profile) section.
There is no good way to fix this issue in the header.
There is a solution to use the following code
add_filter( 'xprofile_get_field_data', function ( $values, $field_id, $user_id ) { if ( ! function_exists( 'bp_profile_data_control_is_field_visible' ) ) { return $values; } if ( bp_profile_data_control_is_field_visible( $user_id, get_current_user_id(), $field_id ) ) { return $values; } return ''; }, 10, 3 );
In child theme’s functions.php but it is not very efficient as it will apply to all the fields being fetched(including Display name), currently we were only applying to profile loop.
Regards
Brajesh - Brajesh Singh on January 11, 2025 at 4:52 am in reply to: BuddyPress Activity Autoloader and Activity Link Preview For BuddyPress conflict #54556
Hi,
Thank you for using the plugin.You will need to reach out to the other developer to understand the issue/have a solution.
This plugin does not do anything special. It simply detect scroll and simulates click on “Load More” button. Here is the js code.
https://github.com/sbrajesh/bp-activity-autoloader/blob/master/_inc/activity-loader.jsI am sorry, I don’t have any idea why that would not work with some plugin.
Regards
Brajesh Hi,
There is a filter bp_force_profile_completion_skip_check that you can use to skip check on any screen. You will need to reach out to the membership plugin for what test you need to do for it. If you return true with this filter on a page, It will not redirect from that page.
Regards
Brajesh- Brajesh Singh on January 11, 2025 at 4:48 am in reply to: BuddyDev Friends Suggestions Pro “like/not like” #54553
Sorry, I posted reply of another topic here by mistake. I will be following up soon.
- This reply was modified 6 days, 21 hours ago by Brajesh Singh.
- Brajesh Singh on January 11, 2025 at 4:47 am in reply to: Issue with Missing Input Fields in BuddyBlog Pro Profile Tab #54552
Hi Philipp,
Thank you for using the plugin.I am sorry for the inconvenience. The most probable reason for this is Post form not being associated with post type.
Please visit Dashboard->BuddyBlog->Settings and click on “Post” (Or your post type) tab. Please search for “Post Form” and select the form you have created earlier and save the settings.
That will fix it. Please let me know if it works for you or not?
Regards
Brajesh - Brajesh Singh on January 9, 2025 at 8:07 pm in reply to: [Resolved] Lost page 404 when user change their username #54541
Hi Stephanie,
Hope you are doing well.I am sorry for the delayed reply.
No worries about the forum selection.It is most probably related to User Name changer plugin and the new BuddyPress URI parser changes. Please allow me to look into it and release a solution in 24-48 hours.
Thank you
Brajesh - Brajesh Singh on January 9, 2025 at 8:04 pm in reply to: [Resolved] Exclude from sitewude activity stream per user id #54540
You are welcome.