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

User ID Conditional In message_user_info

Discussion in 'XenForo Questions and Support' started by James, Jan 26, 2011.

  1. James

    James Well-Known Member

    I'm trying to run a conditional on the message_user_info template that performs something based on a user id.

    I've dumped ({xen:helper dump, $user}) the user variable and $user.userid is a variable used in that template (["user_id"] => int(407)), but when trying to run the conditional nothing happens.
    I've tried two conditional formats, no syntax errors occur but it still doesn't output the result of the conditional.

    {xen:if '{$user.userid} == 407', "True"}
    <xen:if is="{$user.userid} == 407">Also true</xen:if>
    faeronsayn likes this.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use this:

  3. James

    James Well-Known Member

    Woops... how did I make such a silly mistake. I read the variable as user_id too... damnit.

    Thanks Jake!

Share This Page