Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Message System
#1
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
#2
Hello!

Would you like this interaction to occur in realtime, like a chat? Or delayed, like a mail system?
My Blog | My Setup | My Videos | Have a wonderful day.
#3
If possible, both. I want my application to more interactive so different users can contact each other, learn more about each other.
Help me 'like' my Facebook page! See my programs!
http://www.facebook.com/BoronSoftware
#4
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!
My Blog | My Setup | My Videos | Have a wonderful day.
#5
Oh, sorry that I am not familar with any database like MySQL. Can you just let the program save all the messages into a text file with encryted data? I found this user (DevEclipse) on YouTube that have created a message program and I do not really understand the coding. I also want the message system to be offline.
Link:
http://www.youtube.com/user/deveclipse

I would only want to focus on message system for now, when I have moved up to a higher lever, I would start with chat.

Thank you for your tutorial. Hope to see your video demonstrating on this soon!
Help me 'like' my Facebook page! See my programs!
http://www.facebook.com/BoronSoftware
#6
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="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]


Forum Jump:


Users browsing this thread: 1 Guest(s)