User to User Chat - Public Script [Unfinished]

I noticed the marketplace is Littered with ways to message your users, but None for Completely Customize-able user to chat. Well I aimed to create a system to do just that and have it be easy to implement, and today I finally got a Proof of Concept up and working.
Currently the system uses 2 pages and 2 databases; A User database to hold User Info and Misc data, and one with the actual Messages.


It still has many issues; like Thinking you have a new message when the other user has not opened the message, Messages occasionally being out of order, and the entire thing being currently in Front End (Yikes!)

My End goal is to have it all be on a single page or even put in a container you can have across every page.


I have also included a Non Replyable flag for the use of Announcements (System Message in my case)

And fields for Notifications/Total Messages

Upon completion i will probably make a video on how to set it up, and keep setup to an absolute minimum with room for expansion for people wanting to add their own features, because right now it’s a bit…


…much.

Just something for some people to maybe look forward to. If you would like to help out by all means shoot me a message.

Hi,
Thanks for sharing. I recommend sharing your code using the code snippet feature and not a screenshot of it because the screenshot is blurry. In order to do it, you can copy & paste your code here, mark the relevant lines, and click on the Code Block button (on the right side).

Best,
Tal.

I am aware of this but the current code is VERY poorly optimized and full of bugs i am working out still. The code is also very messy and I want to comment how it all works for developers who might want to modify the code for their use. it is more of a proof of concept right now but I have it working at bombandkou.com/messages