• 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

Betclever

Active member
#1
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
 

Brogan

XenForo moderator
Staff member
#2
You would have to edit the template and use a conditional statement to check that the viewing user is the post author.
 

Tracy Perry

Well-known member
#4
I read your post for the conditional statements but I don't see anything related to the quote options...
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.