6
OK, can someone help me fix this so it will work?
function stuff() {
global $xoopsDB, $xoopsUser;
if ($xoopsUser) {
$groups = $xoopsUser->getGroups();
} else {
$groups = XOOPS_GROUP_ANONYMOUS;
}
if($groups ['XOOPS_GROUP_ANONYMOUS']) {
print "User Group is, ANONYMOUS
";
} else {
print "User Group is, USER";
}
}
Like I said before, I am a complete newbie to PHP and don't know alot about it. I can't figure out how to return the User Group IDs as a variable so that I can write a statement.