{if $user.avatar != ''}
{else}
NOPIC
{/if}
{foreach from=$user_badges item=b name=foo}
{if $smarty.foreach.foo.last}{/if}
{/foreach}
{if $user.profile_title != ''}{$user.profile_title}{else}作者太懒了,没填签名呢{/if}