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

XF 1.4 Show notice to the thread starter

Discussion in 'XenForo Questions and Support' started by zastavra, Dec 25, 2014.

  1. zastavra

    zastavra Formally Stevez

    I couldn't find anything related in this forum, so my question is, how can I show a notice only to the thread starter - creator? I guess it's a Controller and Action thing but, what values should I use?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can use a conditional statement such as: <xen:if is="{$visitor.user_id} == {$thread.user_id}">
     
    zastavra likes this.
  3. zastavra

    zastavra Formally Stevez

    Do you mean inside the notice "Message" field, like this?
    HTML:
    <xen:if is="{$visitor.user_id} == {$thread.user_id}">
    NOTICE TO THE THREAD STARTER HERE
    </xen:if>
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    If you mean the Notices feature, no, you can't use it with that.

    You would be able to use it in a template, assuming those variables are available in the particular template.
     
    zastavra likes this.
  5. zastavra

    zastavra Formally Stevez

    I see... Is there any way to use the Notices feature instead of the template modification?
     

Share This Page