AndreaMarucci
Well-known member
Hello, I've seen this Brogan's post
1. How can I show content just to logged in members and hide it from guests?
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
</xen:if>
I've this template here
and I want it to be displayed only to registered members so I've modified it accordingly
but this hide the block to everyone.
Basically I'd like to display this block only to the members that are in a specific user group (id=12) so I've used this
4. How can I show content to a specific user group?
<xen:if is="{xen:helper ismemberof, $visitor, 12}">
This content will show to members of user group x
</xen:if>
but I've got a lot of error and no display at all of the block.
I'm using XF 1.5.3
Thanks for your help...
1. How can I show content just to logged in members and hide it from guests?
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
</xen:if>
I've this template here
Code:
<xen:require css="imageveu_block.css" />
<div id="kog_gallery_title">
{xen:phrase from_the_kog_gallery}
</div>
<div class="imagevue">
<xen:foreach loop="$galleryItems" key="$key" value="$galleryItem">
<a href="http://gallery.kog.it/{$galleryItem.canonical_file_path}">
<div class="img_container">
<img class="kog_cover" src="{$galleryItem.thumbnail_url}">
<div class="album_title">
{$galleryItem.album_title}
</div>
<div class="album_date">
{$galleryItem.album_date}
</div>
</div>
</a>
</xen:foreach>
</div>
and I want it to be displayed only to registered members so I've modified it accordingly
Code:
<xen:require css="imageveu_block.css" />
<xen:if is="{$visitor.user_id}">
<div id="kog_gallery_title">
{xen:phrase from_the_kog_gallery}
</div>
<div class="imagevue">
<xen:foreach loop="$galleryItems" key="$key" value="$galleryItem">
<a href="http://gallery.kog.it/{$galleryItem.canonical_file_path}">
<div class="img_container">
<img class="kog_cover" src="{$galleryItem.thumbnail_url}">
<div class="album_title">
{$galleryItem.album_title}
</div>
<div class="album_date">
{$galleryItem.album_date}
</div>
</div>
</a>
</xen:foreach>
</div>
</xen:if>
but this hide the block to everyone.
Basically I'd like to display this block only to the members that are in a specific user group (id=12) so I've used this
4. How can I show content to a specific user group?
<xen:if is="{xen:helper ismemberof, $visitor, 12}">
This content will show to members of user group x
</xen:if>
but I've got a lot of error and no display at all of the block.
I'm using XF 1.5.3
Thanks for your help...