New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Buddypress profile completion and leira-letter-avatar plugin

  • Participant
    Level: Guru
    Posts: 922
    Tosin on #41580

    Hello Ravi,

    The Buddypress profile completion plugin is no longer compatible with leira-letter-avatar plugin. The leira-letter-avatar plugin has been updated in recent times and I think the compatibility you added before is now broken.

    https://wordpress.org/support/topic/buddypress-profile-completion-plugin-support/

    Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #41583

    Hello Tosin,

    Thank you for posting here. I will check and will update you.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #41588

    Hello Tosin,

    I have tested it with Leira Letter Avatar 1.3.6 and BuddyPress Profile Completion 1.0.8 and it is working fine for me. I have just tested for a user with an avatar as required. Please let me what issue you are facing.

    Regards
    Ravi

  • Participant
    Level: Guru
    Posts: 922
    Tosin on #41593

    Hello Ravi,

    That’s strange, I have the code below in bp-custom.php but its not working while liera avatar plugin is active, the code only works when liera avatar plugin is deactivated.

     function buddydev_skip_urls_on_loggedin_user_profile_page( $skip ) {
        if ( bp_is_my_profile() ) {
            $skip = true;
        }
        return $skip;
    }
    add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_skip_urls_on_loggedin_user_profile_page' ); 
     
     
    function buddydev_skip_urls_on_members_directory( $skip ) {
        if ( bp_is_members_directory() ) {
            $skip = false;
        }
        return $skip;
    }
    add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_skip_urls_on_members_directory' );
    
    function buddydev_skip_urls_on_activity_directory( $skip ) {
        if ( bp_is_activity_directory() ) {
            $skip = true;
        }
        return $skip;
    }
    add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_skip_urls_on_activity_directory' );
    
    /**
     * Do not redirect users on non bp pages.
     *
     * @param bool $skip should we skip or redirect.
     *
     * @return bool
     */
    function buddydev_skip_redirect_on_non_bp_pages( $skip ) {
        if ( ! is_buddypress() ) {
            $skip = true;
        }
        return $skip;
    }
    add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_skip_redirect_on_non_bp_pages' ); 
    
    /**
     * Do not skip redirect on new post.
     *
     * @param bool $skip should we skip?
     *
     * @return bool
     */
    function buddydev_dont_skip_redirect_on_cta_pages( $skip ) {
    	if( is_page( array( 'publish', 'create-new-post', 'create-sponsored-post', 'create-private-post', 'advertise', 'create-new-advert', 'manage-listings' ) ) ) {
    		if( is_user_logged_in() ){
    		$skip = false;
    	}
      }
    	return $skip;
    }
    add_filter( 'bp_force_profile_completion_skip_check', 'buddydev_dont_skip_redirect_on_cta_pages', 20 ); 

    Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #41601

    Hello Tosin,

    Please try after each filter one by one with liera avatar plugin active and check which code is conflicting. I think the very first filter caused the issue.

    Regards
    Ravi

  • Participant
    Level: Guru
    Posts: 922
    Tosin on #41603

    Hmmm none of the code is conflicting it seems the issue is coming from liera avatar plugin once I deactivate i,t all the custom code works smoothly without any conflict.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #41611

    Hello Tosin,

    Thank you for the acknowledgement. If this is the case, please contact the plugin author he will assist you better on this issue.

    Regards
    Ravi

    • This reply was modified 4 years, 11 months ago by Ravi.

You must be logged in to reply to this topic.

This topic is: not resolved