• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Condition user_group_id => bug ?

Zephyr

Well-known member
#1
HTML:
<xen:if is="{$visitor.user_group_id} == '16'">
    {xen:number $user.user_id} <!-- Display user id forusergroup 16 -->
</xen:if>
This code does not work if the group is secondary group.
Is it possible to fix it please ?
 

Zephyr

Well-known member
#4
Other questions please :)

{$xenOptions.XenCrea_ListeForumIdWargame} ==> "175,159" (in xenforo option type "string")

I use :
<xen:if is="{xen:helper ismemberof, $visitor, 16} AND in_array({$forum.node_id}, array({$xenOptions.XenCrea_ListeForumIdWargame}))">
or

in_array({$forum.parentNode_id} == 175
No equivalent for parentNode for subforum ?

Not work, bad usage ?
Thank.
 

Zephyr

Well-known member
#5
<xen:if is="{xen:helper ismemberof, $visitor, 16} AND in_array({$forum.node_id}, array({$xenOptions.XenCrea_ListeForumIdWargame}))">
Only the first number is taken into account :/
 

Jake Bunce

XenForo moderator
Staff member
#6