The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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: Code:
<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>
I want to display this to everyone " This user has no album" I can`t do it. I need like this code: 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> |
|
#2
|
|||
|
|||
|
Try this:
Code:
<vb:if condition="$prepared['albuminfo']['albumcount'] < 1">
User has no albums.
</vb:if>
|
|
#3
|
|||
|
|||
|
Thank you very much. Its OK.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|