XF 2.1 how to disable reaction summary link for guests

dethfire

Well-known member
this link is very unnecessary for guests. how to disable it? I still want the usernames, just not the link to the reactions popup. the reactions_summary template doesn't give any clues on how to do this
 
I do not know if I understand you right try
Edit template: PAGE_CONTAINER
between head tag
<xf:if is="!$xf.visitor.user_id">
<style>
.message .reactionsBar {display: none;}
</style>
</xf:if>
 
Sorry I was not clear. In each post, there is the reaction summary list. It is a link that opens up a reaction summary popup which lists out all the users. I just want it unlinked, not hidden. thanks!
 
I believe this would do the trick, open template: reaction_list_row

Replace:
Code:
<a class="reactionsBar-link" href="{{ link($link, $content, $linkParams) }}" data-xf-click="overlay" data-cache="false">{$reactions}</a>

With:
Code:
<xf:if is="$xf.visitor.user_id">
    <a class="reactionsBar-link" href="{{ link($link, $content, $linkParams) }}" data-xf-click="overlay" data-cache="false">{$reactions}</a>
<xf:else />
    {$reactions}
</xf:if>
 
Top Bottom