1
In my theme I added a little hack to show an alert if there's a new PM. I copied the code form the usersblock and added it in my theme. All works fine: When a new message arrives, the messagecounter shows along with a flashing envelope (animated gif).
The problem is though, that after reading the messages (or deleting them) the counter isn't updated and the envelope keeps flashing :(
I would like this to be updated, after I red the PMs. How can I solve this?
This is the code I put in my theme:
<{if $pmcount}>
<li><a href="<{xoAppUrl /viewpmsg.php}>" title="My Inbox (<{$pmcount}>)">My Inbox (<{$pmcount}>) <img src="<{xoImgUrl images/mail_alert.gif}>" alt="My Inbox (<{$pmcount}>)" align="top" title="My Inbox (<{$pmcount}>)" />a>li>
<{else}>
<li><a href="<{xoAppUrl /viewpmsg.php}>" title="My Inbox (<{$pmcount}>)">My Inboxa>li>
<{/if}>