gurler
05-29-2011, 08:08 AM
Hello everyone.
I searched on Google and Vb.org but i can`t find anything about check if user has an album.
Can you help to do that ?
I found that on memberinfo_block_albums template:
<vb:if condition="$block_data['albumbits']">
<a class="textcontrol" href="album.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}">{vb:rawphrase more}</a>
<vb:else />
<a class="textcontrol" href="album.php?{vb:raw session.sessionurl}do=addalbum">{vb:rawphrase add_album}</a>
</vb:if>
But this code is display that "You have not created any album. Click here to create"
I want to display this to everyone " This user has no album"
I can`t do it.
I need like this code:
<vb:if condition="$user_has_album">
I can show here the albums.(I know the code its OK.)
<vb:else />
This user has no albums.
</vb:if>
Thanks a lot.
I searched on Google and Vb.org but i can`t find anything about check if user has an album.
Can you help to do that ?
I found that on memberinfo_block_albums template:
<vb:if condition="$block_data['albumbits']">
<a class="textcontrol" href="album.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}">{vb:rawphrase more}</a>
<vb:else />
<a class="textcontrol" href="album.php?{vb:raw session.sessionurl}do=addalbum">{vb:rawphrase add_album}</a>
</vb:if>
But this code is display that "You have not created any album. Click here to create"
I want to display this to everyone " This user has no album"
I can`t do it.
I need like this code:
<vb:if condition="$user_has_album">
I can show here the albums.(I know the code its OK.)
<vb:else />
This user has no albums.
</vb:if>
Thanks a lot.