And already used the "if user" command.
If no user it wil simple say "login - Register"
But still thank for the tip.
Quote:
shank wrote:
<offtopic>
Looks like that thing is getting more use than I thought it was.
I made a new one that will show a pop up on new messages if your interested.
one thing though...
Quote:
V6-Maniac wrote:
and in your theme.html this code wherever you want the alert to show.<{insert name="pms"}>
<a href="<{$xoops_url}>/viewpmsg.php">
<{if $msgcount > 0}>
<{if $msgcount > 1}>You Have <{$msgcount}> New Messages
<{else}>You have <{$msgcount}> New Message
<{/if}>
<{else}>Private Messages
<{/if}></a>
this should be wraped in if $xoops_isuser like so:<{if $xoops_isuser}><{insert name="pms"}>
<a href="<{$xoops_url}>/viewpmsg.php">
<{if $msgcount > 0}>
<{if $msgcount > 1}>You Have <{$msgcount}> New Messages
<{else}>You have <{$msgcount}> New Message
<{/if}>
<{else}>Private Messages
<{/if}></a><{/if}>
or you'll probably get errors
</offtopic>