Conditional statement not working

fredrikse

Active member
Hi,

I'm trying to get at conditional statement to work. But it's not working at the moment. Here is the code:

PHP:
<xen:if is="{xen:helper ismemberof, $visitor, 11}"><li><a
                        class="{xen:if "{$selectedKey} == 'alerts/watchThreads'", 'secondaryContent', 'primaryContent'}"
                        href="{xen:link watched/threads}">{xen:phrase watched_threads}</a></li></xen:if>

This piece of code controls the option "Watched threads" in the user profile settings page. Now I'm trying to block this feature depending on wether a user is a member of a secondary user group (groupID = 11). But this code is apparently still visible.

What could be wrong?

I'm using TMS.
 
The condition appears correct. That condition will display the code if the user is a member of group 11. If they are not in group 11 then it will not display the code.
 
Top Bottom