Something like:
PHP Code:
<?php
require_once('./global.php');
if ($vbulletin->userinfo['userid']==1) {
echo "User 1 - probably Administrator";
}
elseif (is_member_of($vbulletin->userinfo, '2')) { //Registered Users
echo "Group 2 - Registered Users";
}
elseif ($vbulletin->userinfo['userid']==0) { //Guests
echo "User 0 - Guest User";
}
else {
echo "Who are you?";
}
?>