Reply To: How to add a @username
to do the second you need to put the following in your functions file:
//take away the role display
function hide_role ($args) {
$args['show_role'] = false ;
Return $args ;
}
add_filter ('bbp_before_get_reply_author_link_parse_args', 'hide_role') ;
this removes the existing text,
then you’d need to add some image depending on role, so something like
add_action( 'bbp_theme_after_reply_author_details', 'add_image' );
function add_image () {
$role = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) );
if ($role == 'keymaster') {
echo "<img src='/snippet_theme/img/error.gif' title='Error' alt='Error' />";
}
if ($role == 'participant') {
etc.
}
This is not tested – sorry but limited time !!