1
I wanted to have the private message in box in my user menu but without sub options. However I also wanted a display of the number of new messages.
I also wanted separate user menu listings for in box and pm.
First I made the pm module not visible. Then I added the following lines to my user menu template. It works great and only displays the new message count if there are actually unread messages.
<a href="http://my.jaylach.com/modules/pm">Messaginga>
<a href="<{xoAppUrl viewpmsg.php}>" title="<{$block.lang_inbox}>"><{$block.lang_inbox}><{if $block.new_messages > 0}> (<{$block.new_messages}> unread)<{/if}>a>