Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spachat on codeigniter #3

Open
sdaverede opened this issue Jul 9, 2016 · 1 comment
Open

Spachat on codeigniter #3

sdaverede opened this issue Jul 9, 2016 · 1 comment

Comments

@sdaverede
Copy link

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)

@joni2back
Copy link
Owner

Hi @sdaverede , first of all, the idea of spachat project is to have just 1 file to do everything.
If you want to include in an existant project or framework, you will need to migrate each class to new php files, then the same with the html template.. js and css. Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants