Giter Club home page Giter Club logo

spachat's Introduction

SPAChat (Simple Angular Ajax Chat in PHP)

This project is a refactor of Joni2Back MySQL Ajax Chat, now as "SPAChat - Simple PHP Angular Ajax Chat".

This mini chat was developed with a simple backend MVC architecture and every piece of code in the same file.


alt tag

Uses

  • AngularJS
  • Bootstrap
  • PHP

Features

  • New message detector
    • Desktop notifications like WhatsApp web platform
    • Sound notifications
    • Title change notification
  • Online users count (with fingerprinting detection)
  • Shortcodes to send links and images
  • Admin user (with a secret nickname prefix)
    • List online clients IP (By admin command)
    • Clear the chat history (By admin command)
  • JSON API

spachat's People

Contributors

bitdeli-chef avatar joni2back avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spachat's Issues

Issue on angular.js

Hi,

I tried you chat application. I got this error. I cannot fix this issue. Can you help with this?

SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at pc (angular.js:1065)
at Zb (angular.js:8579)
at angular.js:8664
at s (angular.js:323)
at Zc (angular.js:8663)
at c (angular.js:9389)
at angular.js:13189
at l.$eval (angular.js:14401)
at l.$digest (angular.js:14217)
(anonymous) @ angular.js:11607
(anonymous) @ angular.js:8557
(anonymous) @ angular.js:13197
$eval @ angular.js:14401
$digest @ angular.js:14217
$apply @ angular.js:14506
l @ angular.js:9659
S @ angular.js:9849
D.onload @ angular.js:9790

Shortcodes don't work

With the latest version of spachat, the shortcodes don't work.
How is it possible to repair this problem ?

Spachat on codeigniter

Hi guys! Thanks for making this awesome chat!

I'm having some serious troubles with the implementation of the chat on a codeigniter environment, i've got to work the chat outside the website with no single trouble, but when it comes to insert it into my codeigniter page, i get the popular "SyntaxError: Unexpected token < in JSON at position 0"

The problem itself is that i'm not able to see any message on the list, but i can normally send messages, and recieve them on realtime on an outside-my-web script working standalone connected to the same db.

Just in case, i'm placing it like this:
<?php require_once("external/spachat.php"); ?>

(sorry in advance for my bad english)

Embed on web

Greetings.

I would like to be able to embed your application in a web, but I have not been able to fully incorporate it. The interface is displayed but does not work. I have tried in several ways, including "iframe" and "object" and I do not get it to work. Could you give me some guidance on this? I'm working with WampServer on Windows 7.

Many thanks. I think it's great that you have everything in one file. It's a very compact chat!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.