BP Forums
Message System - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+---- Thread: Message System (/showthread.php?tid=414)



Message System - b_ongzhenyu - 10-18-2011

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


Re: Message System - brandonio21 - 10-19-2011

Hello!

Would you like this interaction to occur in realtime, like a chat? Or delayed, like a mail system?


Re: Message System - b_ongzhenyu - 10-19-2011

If possible, both. I want my application to more interactive so different users can contact each other, learn more about each other.


Re: Message System - brandonio21 - 10-19-2011

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!


Re: Message System - b_ongzhenyu - 10-20-2011

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!


Re: Message System - xolara - 10-25-2011

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