You need to edit postbit/postbid_legacy and memberinfo. Look for this code:
PHP Code:
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
Then I would just add a second conditional like this:
PHP Code:
<if condition="$show['avatar']">
<if condition="bbuserinfo['usergroupid']==8>
DO SOMETHING HERE
<else />
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
</if>