2
You can just copy it out of the User Menu block
<{if $block.new_messages > 0}>
<a class="highlight" href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}> (<span style="color:#ff0000; font-weight: bold;"><{$block.new_messages}>span>)a>
<{else}>
<a href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}>a>
<{/if}>
but the $block variable won't work. Using the new smarty variables in 2.0.14+
<{if !$xoops_isuser}>
<a href="<{xoAppUrl /user.php}>" class="user" title="Login for <{$xoops_sitename}>">Logina>
<a href="<{xoAppUrl /register.php}>" class="register" title="Get a personal login for <{$xoops_sitename}>">Registera>
<{else}>
<{xoInboxCount assign=pmcount}>
<a href="<{xoAppUrl /viewpmsg.php}>" title="Show your inbox content" >Inbox<{if $pmcount}> (<{$pmcount}>)<{/if}>a>
<a href="<{xoAppUrl /user.php}>" title="View your profile" >My profilea>
<{if $xoops_isadmin}>
<a href="<{xoAppUrl /admin.php}>" title="Display site administration">Admina>
<{/if}>
<a href="<{xoAppUrl /user.php op=logout}>" title="Click to logout">Logouta>
<{/if}>
Take a look at some of the new themes - morphogenesis and zeta reticuli use this