Is this something that's possible? I'd like to have a duplicate "ignore user" alongside the "report" button below posts. Not sure how to do it or if it's possible?
<xen:if is="{$canIgnore}">
<a href="{xen:link members/ignore, $visitor}" class="FollowLink">{xen:phrase ignore}</a>
</xen:if>
<xen:follow user="$user" title="" tag="li" />
<xen:if is="{xen:helper isIgnored, $user.user_id}">
<li><a href="{xen:link members/unignore, $user}" class="FollowLink">{xen:phrase unignore}</a></li>
<xen:elseif is="{$canIgnore}" />
<li><a href="{xen:link members/ignore, $user}" class="FollowLink">{xen:phrase ignore}</a></li>
</xen:if>
<xen:if is="{$visitor.user_id} AND {$post.user_id} != {$visitor.user_id}">
<xen:if is="{xen:helper isIgnored, $post.user_id}"><a href="{xen:link members/unignore, $post.user_id}">{xen:phrase unignore}</a>
<xen:elseif is="{$canIgnore}" /><a href="{xen:link members/ignore, $post.user_id}">{xen:phrase ignore}</a></xen:if>
</xen:if>
EDIT: It won't work, because you're checking the canIgnore variable which isn't available in the post template.
Ah. That explains that then. Damn, without that being available that pretty much puts an end to my mission doesn't it?
And yes to be clear it is the "post" template I'm editing as I wanted it next to "report".
You could remove that check, and display it to all users, or ask someone make an add-on to do all of this for you
Liam
We use essential cookies to make this site work, and optional cookies to enhance your experience.