Betclever Well-known member Jun 29, 2015 #1 Hello all, Is it any add-on to hide content for guests and show a message like "Please register to view this post"? Thanks.
Hello all, Is it any add-on to hide content for guests and show a message like "Please register to view this post"? Thanks.
Amaury Well-known member Jun 29, 2015 #2 Try using this conditional. It's what we used to hide the content within code tags to guests: Code: <xen:if is="{$visitor.user_id}">Content to hide here</xen:if> Upvote 0 Downvote
Try using this conditional. It's what we used to hide the content within code tags to guests: Code: <xen:if is="{$visitor.user_id}">Content to hide here</xen:if>
Betclever Well-known member Jun 29, 2015 #3 Amaury said: Try using this conditional. It's what we used to hide the content within code tags to guests: Code: <xen:if is="{$visitor.user_id}">Content to hide here</xen:if> Click to expand... Where must I paste this code please? Upvote 0 Downvote
Amaury said: Try using this conditional. It's what we used to hide the content within code tags to guests: Code: <xen:if is="{$visitor.user_id}">Content to hide here</xen:if> Click to expand... Where must I paste this code please?
Amaury Well-known member Jun 29, 2015 #4 In the relevant template. In this case, it's likely the post template. Upvote 0 Downvote
Betclever Well-known member Jun 29, 2015 #5 Amaury said: In the relevant template. In this case, it's likely the post template. Click to expand... I put your code in the template "post" but it doesn't work. Are you sure I have to put your code under the template "post"? Upvote 0 Downvote
Amaury said: In the relevant template. In this case, it's likely the post template. Click to expand... I put your code in the template "post" but it doesn't work. Are you sure I have to put your code under the template "post"?
Mike Cowles Member Sep 21, 2016 #7 This resolves it in two seconds: https://xenforo.com/help/user-groups/ Upvote 0 Downvote