Posts: 6
Threads: 3
Joined: Aug 2011
Reputation:
0
Hello all,
anyone here knows how to create a message system that allows different users to interact to each other. I want it to be simple.
Thanks
Posts: 1,006
Threads: 111
Joined: Jul 2010
Reputation:
1
Hello!
Would you like this interaction to occur in realtime, like a chat? Or delayed, like a mail system?
Posts: 6
Threads: 3
Joined: Aug 2011
Reputation:
0
If possible, both. I want my application to more interactive so different users can contact each other, learn more about each other.
Posts: 1,006
Threads: 111
Joined: Jul 2010
Reputation:
1
Ah, alright. Well this can be done in a number of ways.
For the messaging system, you can simply create a new Table on a MySQL server that keeps track of Messages. Have fields such as From, To, etc...
When a user sends a message, set the from value to their username, and when a user logs in, if the to value is their username, they have a new message.
That is the basic premise behind it. Of course, it is alot more difficult to be put into code. Although, it does simply revolve around a series of MySQL Queries.
I will see if I can create a YouTube video giving away the details, or maybe even create a whole control off of this topic, as I think it would be widely popular.. I'll see what I can do.
As for the chat, the basic premise is pretty much the same, but it needs to be set on a timer! I have a 2 part video on my YouTube channel that gives a quick sample of how this can be done.. But if you are not confident with code, I advise you not to watch the video because it requires the code to be altered for the chat to actually work.
Once I get time (I am currently moving) I will write a bit of code that will allow you to message other users. If Xolara chimes in, I know he has a working code on hand, but I don't know how busy he is.
Sorry for the lack of code, but I am currently really busy! I hope this has helped just a bit!
Posts: 245
Threads: 31
Joined: Sep 2010
Reputation:
0
Hey as brandon said i do have a chat code that works with sockets bit i am but it requires a client and a server
But at the moment im just checkin in on my iphone so i will post an example project with both server and client when i get home
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailto
atrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer