Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Hi.

    Yes you can. Have a look at this topic.

    Thread Starter dblegendz

    (@dblegendz)

    Thanks, does that include the rank featured image as well?

    Plugin Author myCred

    (@designbymerovingi)

    Hi.

    Yes you can add in the logo as well if you want:

    add_action( 'bbp_theme_after_reply_author_details', 'add_rank_in_author_details' );
    function add_rank_in_author_details()
    {
    	$reply_id = bbp_get_reply_id();
    	if ( bbp_is_reply_anonymous( $reply_id ) ) return;
    	$user_id = bbp_get_reply_author_id( $reply_id );
    	if ( mycred_exclude_user( $user_id ) ) return;
    
    	// First echo the rank
    	echo 'Rank: ' . mycred_get_users_rank( $user_id );
    
    	// Second the logo (but you can change this)
    	echo mycred_get_users_rank( $user_id, 'logo' );
    }

    You can find more information about the mycred_get_users_rank function in the myCRED Codex.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bbPress Integration’ is closed to new replies.