I guess to get all the avatar info, for the first plugin it would be something like:
Code:
$hook_query_fields .= ", user.avatarrevision, avatar.avatarpath, customavatar.dateline AS avatardateline, customavatar.width AS avatarwidth, customavatar.height AS avatarheight, NOT ISNULL(customavatar.userid) AS hascustomavatar ";
$hook_query_joins .= " LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid = user.avatarid)
LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON(customavatar.userid = user.userid)";
then in the second , maybe:
Code:
if ($loggedin['userid'] == $vbulletin->userinfo['userid'])
{
$loggedin['avatarrevision'] = $vbulletin->userinfo['avatarrevision'];
$loggedin['avatarpath'] = $vbulletin->userinfo['avatarpath'];
$loggedin['avatardateline'] = $vbulletin->userinfo['avatardateline'];
$loggedin['avatarwidth'] = $vbulletin->userinfo['avatarwidth'];
$loggedin['avatarheight'] = $vbulletin->userinfo['avatarheight'];
$loggedin['hascustomavatar'] = $vbulletin->userinfo['hascustomavatar'];
}
But I haven't tried it, so I don't know if all those fields are there for the current user (but I think they should be).