This is for YSE but should work for TBDev if you make small modifications:
Code:
<a href='userdetails.php?id=".$arr->userid."' onClick=\"parent.document.shoutform.shout.focus();parent.document.shoutform.shout.value='[".$arr->username."] '+parent.document.shoutform.shout.value;return false;\"><span style='font-weight:bold;'>".get_user_class_color_bold($arr->class, $arr->username)."</span></a>