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;