10-19-2011, 04:06 PM
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!
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!