Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
_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[/quote]" />

Group Membership Crashing The Site
by kalamata on 2007/12/7 13:22:36

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

Who's Online

171 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits