Looking at his code, it does check.
For the "check if the field isn't empty, show link if it isn't, else don't show it" check, instead of adding:
PHP Code:
if($bbuserinfo['usergroupid'] == 6) {
$removeavalink = "<a href=\"member.php?action=removeava&userid=$post[userid]\">remove Avatar</a>";
} else {
$removeavalink = "";
}
Add:
PHP Code:
if($post['field7'] != 0 AND $bbuserinfo['usergroupid'] == 6) {
$removeavalink = "<a href=\"member.php?action=removeava&userid=$post[userid]\">remove Avatar</a>";
} else {
$removeavalink = "";
}