This topic has 8 replies, 3 voices, and was last updated 7 years by framesandfineart.

  • Author
  • #210600
     framesandfineart
    Participant

    Hello I added the following code to the child theme functions and i would geuss that 80% of the compatability numbers mactch the circle graph when you click the profile and some that don’t. Just wondering what would cause the differences. Any help would be appreciated

    Thanks…

    add_action(‘bp_directory_members_item’, ‘kleo_bp_compatibility_match1’);

    if ( ! function_exists( ‘kleo_bp_compatibility_match1’ ) ):

    function kleo_bp_compatibility_match1() {

    global $bp;

    $user_logged_in = $bp->loggedin_user->id;

    if ( is_user_logged_in() && ! bp_is_my_profile() ):

    $user_displayed_id =  bp_get_member_user_id();

    $hmk_match = compatibility_score( $bp->loggedin_user->id, $user_displayed_id );

    if($user_displayed_id <> $user_logged_in):

    echo ‘<strong>’.round($hmk_match,2).’% Match</strong>’;endif;

    endif;

    }

    endif;

     

    #210659
     Laura
    Moderator
    Not marked as solution
    #210671
     Radu
    Moderator
    Not marked as solution
    #210713
     framesandfineart
    Participant
    Not marked as solution
    #210714
     framesandfineart
    Participant
    Not marked as solution
    #210768
     Radu
    Moderator
    Not marked as solution
    #210786
     framesandfineart
    Participant
    Not marked as solution
    #210963
     Radu
    Moderator
    Not marked as solution
    #210966
     framesandfineart
    Participant
    Not marked as solution
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?