It's already there, the $userinfo variable contains all of the data for the user you're currently viewing the memberinfo profile for. So access the userid of the person you want like so: $userinfo['usergroupid']
This is NOT the same person as $vbulletin->userinfo['usergroupid'] (well, I suppose that it can be the same person if someone is viewing their own profile).
|