1
willemd
PM module: Message alert
  • 2008/9/24 21:47

  • willemd

  • Just popping in

  • Posts: 39

  • Since: 2008/8/15


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}>)&nbsp;<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}>

Login

Who's Online

382 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 382


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits