BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: bug BuddyPress Profile Data Moderator #54630

    Hi Jerome,
    I am sorry, I could not understand the last reply.

    Is it not hiding the bio even after you put the custom code? If yes, Please let me know where did you put the custom code(file and directory name).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: [Resolved] Redirect issue #54629

    Hi,
    Thank you for the reply.

    I am glad it worked.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25174

    Hi Arisu,
    Welcome to BuddyDev support forums.

    I am sorry, there is not much we can do about it. Any plugin that hides/removes/changes load more buttoin will have problem with autoloader.

    The autoloader plugin attaches with browser scroll events and when it reaches near the load more button, It simulates the click. That’s pretty simple. There is nothing we can do to make it compatible with some other plugins changing the behaviour.

    Please take a look at the code here

    https://github.com/sbrajesh/bp-activity-autoloader/blob/master/_inc/activity-loader.js

    I will suggest reaching out to RTMedia support for the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25174

    Hi Philipp,
    Thank you for the reply.

    I am sorry, I could not make much sense of the image as it is not clear enough but I do see that you already have fields in the form. The only possible reason seems to be mismatch of form/settings.

    Can you please visit Dashboard->BuddyBlofg->Setitngs (Your Post type) and under Create section make sure the form is selected. Please share a screenshot showing if it is not not.

    If you have a staging site, I will be happy to configure it in 2-5 minutes of access.Please let me know if there is one available.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: Help Needed with Profile Completion Plugin #54626

    Hi,
    I am sorry for the trouble.

    The problem is we can not help you unless you provide us the code to check condition for the page to skip. MemberPress is a paid plugin(Ours is free and they have access but we don’t have access to theirs).

    At least get that part from the MemberPress support. I will be happy to assist with code once you can provide us the code to check which page should be skipped.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: Anonymous plugin – Activity as friend #54625
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25174

    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.js

    I am sorry, I don’t have any idea why that would not work with some plugin.

    Regards
    Brajesh