I have made this graph illustrating how qTeach's chat/messaging system will be implemented.
1. The messenger loads as soon as qTeach session begins. It will display (for a few seconds) a "Messenger Loading..." while it connects to the mySQL databases for the chat and userlist.
2. It prompts the end-user to enter their requested username. If it already exists, it will ask for a different one.
3. Upon entering your username, it will add the username to the
userlist mySQL database.
4. It loads the messenger user interface (
if I decide to make it as it's own utility as well as being a part of qTeach.)
5. In sync, it will pull the chat table from the mySQL chat database
and the userlist from the mySQL Username/Userlist database.
6. User interface is formed, with the appropriate information set up, end-user is now able to message.
Issues this would draw at first:
1. How will the chat area be deleted? Will there be the "back-end"/admin format too?
-This can be solved at first by requesting the chat area to be deleted by using a simply drop-down contact page. When a back-end is created, it will allow the administrator to delete the mySQL databases, therefore deleting/clearing the chat.
2. How would the page auto-refresh?
-Page will auto-refresh via jQuery libraries.