1
deka87
2.2 compatible bit of php code upgrade to 2.3
  • 2009/10/2 8:56

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


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($uidtrue);
$usergroups = array();
$groups =& $member_handler->getGroupsByUser($uidtrue);
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!

Login

Who's Online

273 user(s) are online (194 user(s) are browsing Support Forums)


Members: 0


Guests: 273


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits