Skip to content
torleif edited this page Mar 23, 2016 · 1 revision

Front end implementation of live chat module

Because you're likely going to need fine tuning of the behavior of the chat module, a good chunk of the behavior sits on your code base. Here's a nice starting point: a web page that will select a random user who's activated themselves as being available for chat in the CMS.

You can download the CSS, JavaScript, and PHP here: https://gist.github.com/torleif/d93fa7b6f938d25dcfb2

Note we ran into issues with our CDN with this module. I recommend modifying the javascript to include a random number when polling the server

First the user will enter their name livechat1 Then the site will select a person who is available for chat randomly livechat2 Then the two users can chat livechat3

Clone this wiki locally