Nice, never thought of doing it that way. However you may want to show the mod and admin the edit avatar link to incase someone did steap two of my mod that removes the avatar bits from the edit options page. In that case i belive this code would work tho i havent tested it
//ffdcsites intergration
if ($bbuserinfo[usergroupid]==6) { //Admins
$usercplogin = "<a href=\"admin/index.php\">Admin CP</a> - <a href=\"member.php?s=$session[sessionhash]&action=editavatar\">Edit Avatar</a><br>";
} elseif (($bbuserinfo[usergroupid]==5) or ($bbuserinfo[usergroupid]==7)) { //Mods
$usercplogin = "<a href=\"mod/index.php\">Mod CP</a> - <a href=\"member.php?s=$session[sessionhash]&action=editavatar\">Edit Avatar</a><br>";
} else { //Everyone else
$usercplogin = "<a href=\"member.php?s=$session[sessionhash]&action=editavatar\">Edit Avatar</a>";
}
//End intergration
good work