7
MODS Simple Chat
Valéry Letroye edited this page 2021-02-18 18:40:34 +01:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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