david_ma (@david_ma)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • david_ma
    Participant

    @david_ma

    How about remove the authors real name and email linked avatar? My users want to use their username only, and a custom avatar.

    This worked well for adding the username, so if i can just remove the full name/image, that out to do it.

    /**
    * Add @mentionname after bbpress forum author details
    */
    
    add_action( 'bbp_theme_after_reply_author_details', 'mentionname_to_bbpress' );
    function mentionname_to_bbpress () {
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    }
    }

    david_ma
    Participant

    @david_ma

    Cancel this- fixed the original database and re-imported.

Viewing 2 replies - 1 through 2 (of 2 total)