Connecting Tech Pros Worldwide Forums | Help | Site Map

message system mark and count unread message

Member
 
Join Date: Aug 2007
Posts: 62
#1: Aug 19 '07
I want to know how to count messge unread in inbox,And how can the message that was not read will be the read color and after read it will be the normal color as read messages?
How it work and what should I do ?
Can somebody here help me ?
Alex

pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#2: Aug 19 '07

re: message system mark and count unread message


Heya, Alex.

What is the context? Are you building a webmail client? Is this a messaging system for a forum site? Are you using a pre-built package/app, or did you write your own?
Member
 
Join Date: Aug 2007
Posts: 62
#3: Aug 22 '07

re: message system mark and count unread message


Yes I got the script from a site....everything work find ...
I have database mysql ....
only one thing i dont know how to do is ...
how unread msg work ?
after a client sent private msg to another one...how can it count the inbox messgae and after that person read msg how can it uncount and set to be read msg.....and the colour is changed like normal praivate msg ?
i dont know how to do this.
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#4: Aug 22 '07

re: message system mark and count unread message


Heya, paitoon.

The way I generally do it is record the timestamp when a User 'reads' the message. That way, to determine which messages are unread, I simply search for entries where the read date is null.
Reply