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

XF 1.3 Conditional to test if message belongs to browsing user

Discussion in 'XenForo Questions and Support' started by Rob, Mar 20, 2014.

  1. Rob

    Rob Well-Known Member


    I'm just wondering if there is a conditional I can use in the message_user_info template to test if the message belongs to the user currently browsing. I'm sure it is possible but other than $user I am unclear what other variable to hook into.

    Thanks for your help
  2. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:if is="{$visitor.user_id} == {$message.user_id}">
  3. Rob

    Rob Well-Known Member

    You know what Brogan... i tried very similar and it didnt work. I just assumed $visitor was not available to that template.
    Thank you very much.

Share This Page