XF 1.5 Remove quote option for post's owner

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
 

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.
 

Betclever

Active member
You would have to edit the template and use a conditional statement to check that the viewing user is the post author.
I read your post for the conditional statements but I don't see anything related to the quote options...
 

Tracy Perry

Well-known member
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.
 
Top