1
kalamata
Group Membership Crashing The Site
  • 2007/12/7 13:22

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I added a new group to my site, say test, with an id of 5. I also added a function called xoops_isingrouptest in my kernel/user.php file as follows:
if (in_array("5",$this->_groups)){
return true;
}
else {
return false;
}

I, then, added to header.php the assignment of that variable to the Smarty template as xoopstest->$xoopsUser->xoops_isingrouptest().

I can see that the user belongs to the group by running a print_r on the groups array, however, everytime I add one to the group and try to login as that user, all I get is a blank page (no PHP or Smarty erros).

Any hints as to what I might be doing wrong here?

I look forward to hearing from you soon.

Thanks in advance.

George

Login

Who's Online

304 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 304


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