Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to show the forum poster's karma next to name in forums

  • Profile photo of Virtuali
    Virtuali
    Participant

    @gunju2221

    Just put this code in /topic.php next to the poster’s name

    <?php if ( !function_exists( 'rfp_show_poster_karma ' ) );
    global $bp;
    
    $karma = get_usermeta( $bp->displayed_user->id, 'rfp_post_karma' );
    $relative_karma = rfp_calculate_relative_karma( $karma, $bp->displayed_user->id );
    
    echo '<div class="rfp-member-profile-karma">' . get_option( 'rfp_karma_label' ) . rfp_poster_karma( $relative_karma ) . '</div>';
    
    add_action( 'bp_before_member_header_meta', 'rfp_show_poster_karma' );
    
    ?>
  • The topic ‘How to show the forum poster's karma next to name in forums’ is closed to new replies.
Skip to toolbar