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

Thread Starter

Discussion in 'XenForo Questions and Support' started by pjfry, Mar 10, 2011.

  1. pjfry

    pjfry Active Member

    Hi everybody,

    I have a question. Is it possible to mark the Thread starter's posts in a thread? I have searched for a while now but could not find an answer to this question.

    I tried something in the post template, I thought some condition should work, like:

    <xen: is_thread_starter>Thread Starter</xen>

    But I dont't know if there is such a "variable"?

    So if anybody has an idea or a solution for this, please tell it!

    Thank a lot

    Benny
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This condition will work in the post and message templates:

    Code:
    <xen:if is="{$post.user_id} == {$thread.user_id}">
    	SHOW IF POST AUTHOR IS THREAD AUTHOR
    </xen:if>
    
     
    Allan and pjfry like this.
  3. pjfry

    pjfry Active Member

    Ahhh great ...works fine ....

    Thanks!

    Benny
     
  4. BamaStangGuy

    BamaStangGuy Well-Known Member

    What if I want to hide things (such as ads) from threads created by a certain user?

    For example:

    User 12 creates a thread. I want to check if the thread starter is user 12 and hide advertisements if so.
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Code:
    <xen:if is="{$thread.user_id} != 12">
    	SHOW IF THREAD AUTHOR IS NOT USER_ID 12
    </xen:if>
    
     
    BamaStangGuy likes this.

Share This Page