1
Hi,
I'm trying to determine a users groups in my theme so that specific elements can be visible or not based on group permission.
The problem I have, is whenever I try and access $xoopsUser the result is a blank page.
Here is what I'm attempting:
<{if $xoops_isuser}>
<{php}>
$Groups = $xoopsUser->getGroups();
<{/php}>
<{/if}>
Theoreticly, this should produce an array ($Groups) as long as the user is logged in, but in reality it's breaking my theme. (white page) If I remove $Groups = $xoopsUser->getGroups(); and put anything else in there, such as static text, it works exactly as I expect... the text is display as long as I'm logged in.
Is there a trick I need to use to have access to $xoopsUser, or an alternative 'theme approved' method of determining specific group access?