1
hi, i had this code working on my website when i had 2.2.4
//priviledges hack
$member_handler =& xoops_gethandler('member');
$uid = is_object($xoopsUser) ? $xoopsUser->getVar('uid') : 0;
$groups =& $member_handler->getGroupsByUser($uid, true);
$usergroups = array();
$groups =& $member_handler->getGroupsByUser($uid, true);
foreach ($groups as $group) {
$usergroups[] = $group->getVar('name');
}
if (in_array('Members', $usergroups)) {
$xoopsTpl->assign('hasPrivileges', true);
}
//end of hack
do you know guys what do i need to change in it to get it working on my XOOPS 2.3.3b? thanks in advance!