19
Hmm, I still can't get it to work. Though, looking at userinfo.php and seeing this line:
$groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
makes me think this should be something like it. Are we perhaps getting confused by different implementations in different versions of XOOPS here? I run 2.3.2b myself.
In addition, I get some really weird results when experimenting with this. When I use the code above and print the results onscreen, it seems the system classifies me as an anonymous user, even though I'm an admin. Also, if I look at the Who's online block, the system has registered two users online (1 user, 1 anonymous), even though I only have one connection to the server (and this is fresh after reboot of both server and client, so no other connections have been made). Weird...or perhaps (more likely) I'm just a n00b...