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

XF 1.5 Remove quote option for post's owner

Discussion in 'XenForo Questions and Support' started by Betclever, Jun 16, 2016.

  1. Betclever

    Betclever Active Member

    Hello,

    How do I remove the quote option for post's owner?

    I checked the permissions but I did not find anything about that... :/

    Thank you
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You would have to edit the template and use a conditional statement to check that the viewing user is the post author.
     
  3. Betclever

    Betclever Active Member

    I read your post for the conditional statements but I don't see anything related to the quote options...
     
  4. Tracy Perry

    Tracy Perry Well-Known Member

    And you wont'.. you will have to wrap the template for generating the posts (the quote aspect) in a conditional using the
    Code:
    <xen:if is="{$post.user_id} != {$thread.user_id}">
    This content will show if the post author is the thread author
    </xen:if>
    as explained at the top of the Conditional Statements resource that Brogan has in his signature. The example that he gives is to SHOW content - but you reverse that by replacing the == with != to make it false (which has been done in the code segment above and wrapping the quote option with it so that it's not visible.
     

Share This Page