XF 2.3 List form only for unregistered

AndreaMarucci

Well-known member
Hello, I've set my forum to show the latest unread messages to all the users but I'd like that the unregistered users can see the list of forum since the unread messages doesn't make sense. Is there a way I can do that?
 
I'd better asked Claude before even asking here. BTW the solution is to put this
Code:
<xf:if is="!$xf.visitor.user_id">
    <script>
        window.location.href = '{{ link('forums/list') }}';
    </script>
</xf:if>

inside the template
Code:
forum_new_posts
 
Back
Top Bottom