MODS Simple Chat - vletroye/SynoPackages GitHub Wiki

Description

This is a MODS Packaging of the Most Simple Ajax Chat Ever developed by Chris Hager

Sources

Find the source code here

Notice

  1. Synology as now published its own chat application. This one is available via Synology's Package Center.

Making of

This package is simply publishing the scripts of Chris Hager using the technic described here (how to run a php page and display it in a DMS' iFrame without any dependency on the Package Init_3rdparty)

Features

  • Super simple
  • Efficient spam filter (thanks to some live ‘hackers’ at launch)
  • Only 2 files needed (index.html, w.php)
  • No libraries at all (using pure XMLHttpRequest)
  • CSS styles & usernames

How it works

  • index.html reads the content & sends your message to w.php
  • w.php writes the content and prunes it to $maxlines lines
  • Content stored as text in chat.txt
  • 2 http_requests: 1 for checking content, 1 for sending your message

Illustration