XF 2.1 Hide specific threads contents from Unregistered/Guest?

ALMUSA

Well-known member
I have a couple of threads I want to hide their contents form guests. Upon clicking on titles of those threads, guests will get this "you have to login or register to view this thread content..."

HTML:
<xf:if is="{$thread.thread_id} == x">

</xf:if>

<xf:if is="$post.position % $xf.options.messagesPerPage == 0">
    ...
</xf:if>

Are these the right conditional statements? How can I compile those to achieve what I want? If not what would be the right approach to do this?

Thank in advance
 

Mr Lucky

Well-known member
Not exactly the answer, which I’m sure someone cleverer than me will provide, but I’d take the simple approach and just move them with redirects to a forum with no permission for guests to view thread content
 
Last edited:

ALMUSA

Well-known member
Not exactly the answer, which I’m sure someone cleverer than me will provide, but I’d take the simple approach and just move them with redirects to a forum with no permission for guests to view thread content

Not a bad idea but I will take it as an alternative. Maybe someone here is willing to help.
 
Top