<{foreach item=user from=$block.users|default:null}>
    <ul class="userblock list-unstyled">

        <{if !empty($user.avatar)}>
            <li class="avatar-image">
                <img src="<{$user.avatar}>" alt="<{$user.name}>" class="img-rounded">
                <span class="badge pull-right"><{$user.rank}></span>
            </li>
        <{else}>
            <li class="avatar-image">
                <img src="<{$xoops_imageurl}>images/blank.gif" alt="<{$user.name}>" class="img-rounded">
                <span class="badge pull-right"><{$user.rank}></span>
            </li>
        <{/if}>

        <li class="user-name"><a href="<{$xoops_url}>/userinfo.php?uid=<{$user.id}>" title="<{$user.name}>"><{$user.name}></a></li>

        <li class="join-date text-right"><{$user.posts}></li>
    </ul>
<{/foreach}>
