1. 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 ?

Discussion in 'XenForo Development Discussions' started by Zephyr, Oct 5, 2012.

  1. Zephyr

    Zephyr Well-Known Member

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

    Russ Well-Known Member

    Jake Bunce and Chris D like this.
  3. Zephyr

    Zephyr Well-Known Member

  4. Zephyr

    Zephyr Well-Known Member

    Other questions please :)

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

    I use :

    No equivalent for parentNode for subforum ?

    Not work, bad usage ?
  5. Zephyr

    Zephyr Well-Known Member

    Only the first number is taken into account :/
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That's a string variable. It's not evaluated as if it were source. The option needs to be an array.

    This might help:


Share This Page