iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old September 29th, 2008, 09:10 AM   #1
New Member
 

Join Date: Jul 2008
Location: Lancashire, UK
Age: 27
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 thepap is on a distinguished road
Private Messaging

I am currently looking into the possibility of building a basic messaging system into my new website but im a little unsure of how to do it.

At the moment I have one table in my DB with the following items:

MessageID (primary key)
MemberID (foreign key linking to Members table)
From (member username using a lookup on MemberID)
To (recipient MemberID but displaying username using a lookup query)
Subject
Message
SentDate (auto date timestamp)
MessageRead

Ok so the way I plan to do it is when the user looks at the persons profile they will get a link that says Message Member (or something along those lines). This will take them to an insert form they can fill in and submit.

The From field will get the MemberID from the session and the To field will get its value from a GET function on the URL.

The person their sending it to will have an inbox which will pick up any messages (read or unread). When they open the message it will automatically update the MessageRead field and change the status of the message.

Each user will also have a Sent folder displaying all messages they have sent to other users.

I think this can all be done from the one table but can anyone suggest any better ways of doing it or point out anything I may have missed?

Thanks, Dave
thepap is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old September 29th, 2008, 09:16 PM   #2
Most Reputable Member
 

Join Date: Feb 2008
Location: In My Own Little World
Age: 15
Posts: 1,346
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
Rep Altering Power: 0 CloudedVision is on a distinguished road
Re: Private Messaging

I would add a folder_id value in there, along with a new table for pm folders. That would allow you to have a sent folder AND be able to let people make there own folders
__________________
Theron Luhn
CloudedVision is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old October 1st, 2008, 06:50 AM   #3
New Member
 

Join Date: Jul 2008
Location: Lancashire, UK
Age: 27
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 thepap is on a distinguished road
Re: Private Messaging

Thanks, I'll look at adding that in
thepap is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
not yet a job opportunity...database messaging facility Gerry PHP 3 October 17th, 2007 06:03 PM
Private messaging LorEye WebForumz Suggestions 5 July 12th, 2006 09:22 PM
php forum - private messaging benbacardi PHP 0 July 15th, 2005 04:18 AM
Private Messages spinal007 WebForumz Suggestions 4 September 26th, 2004 01:02 PM


Search Engine Optimization by vBSEO 3.2.0 RC8