if ($userinfo[showemail] and $displayemails) {
if ($bbuserinfo['usergroupid']==6 or($userinfo[showemail] and $displayemails)) {