Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • Avatar 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 ‘

    ‘ . get_option( ‘rfp_karma_label’ ) . rfp_poster_karma( $relative_karma ) . ‘

    ‘;

    add_action( ‘bp_before_member_header_meta’, ‘rfp_show_poster_karma’ );

    ?>`

You must be logged in to reply to this topic.