Messaging system?

For discussions about game development that does not fit in any of the other topics.
Post Reply
HDWWEClips
Posts: 8
Joined: Sat Apr 24, 2010 7:25 pm

Messaging system?

Post by HDWWEClips »

Anybody know how to create a messaging system ? with PHP and Mysql?
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Messaging system?

Post by Jackolantern »

Probably the easiest way to handle it would be to use existing scripts. There are hundreds of chat scripts freely available online, and many of them have more features than any of us would care to write-up ourselves.

Script Dungeon
Hot Scripts
Resource Index
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Messaging system?

Post by hallsofvallhalla »

what kind? like Private Messages?

Just create a table called messages with fields like sender, receiver, subject, message, date, new

have a place where a player can enter in a new message and when you do the insert just insert who it is going to , the player who sent it name and new = 1,

when the main page or message page is loaded have it query message where receiver = player and new = 1
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Messaging system?

Post by Jackolantern »

Ohhh, oops! I thought he meant a chat system, which is a piece that should really not be reinvented with all the free scripts out there. Private messaging is pretty simple to make custom.
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Messaging system?

Post by hallsofvallhalla »

not sure which one they mean mean, guess we will find out :)
Post Reply

Return to “General Development”