Gast Posted April 13, 2006 Share Posted April 13, 2006 For a web project I am working on, I need to have a messaging system, pretty much like any PM system on a forum. I dont want a forum however...I can manage the sending and storing of messages in the database. How would I get te system to show new messages, such as in bold or highlighted, or with a small image when they havent read it? Would it be as simple as having a field in the database tat is set to 0 to start with (as in not read) and they view it, set it to 1 (as in read)? Would there need to be anything done with sessions?TIANiall Link to comment https://forums.phpfreaks.com/topic/7291-private-message-system/ Share on other sites More sharing options...
wisewood Posted April 13, 2006 Share Posted April 13, 2006 I created something the same just last week. This is pretty much what i did.My table has a field which is updated with 1 whenever a message is read... then in the inbox i have something like this;if($read<1) {$image="<img src=images/unread.jpg>"} else {$image="<img src=images/read.jpg>"}For mine, unread is an illuminated lighbulb, and read is not illuminiated. I didnt do anything with sessions Link to comment https://forums.phpfreaks.com/topic/7291-private-message-system/#findComment-26520 Share on other sites More sharing options...
Gast Posted April 13, 2006 Author Share Posted April 13, 2006 [!--quoteo(post=364338:date=Apr 13 2006, 11:12 AM:name=wisewood)--][div class=\'quotetop\']QUOTE(wisewood @ Apr 13 2006, 11:12 AM) [snapback]364338[/snapback][/div][div class=\'quotemain\'][!--quotec--]I created something the same just last week. This is pretty much what i did.My table has a field which is updated with 1 whenever a message is read... then in the inbox i have something like this;if($read<1) {$image="<img src=images/unread.jpg>"} else {$image="<img src=images/read.jpg>"}For mine, unread is an illuminated lighbulb, and read is not illuminiated. I didnt do anything with sessions[/quote]Cool, thanks. :) Link to comment https://forums.phpfreaks.com/topic/7291-private-message-system/#findComment-26531 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.