a "gmail" style chat plugin for spip

Hi!

I was working in adapt this work as a spip plugin

http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat

here the result at the moment

http://zone.spip.org/trac/spip-zone/browser/plugins/dev/chatin

if you check the revision history you'll note note that it was an old
idea I had.

it's works partially: it fails registering the username as a chat user
if it has "strange" chars like í or ñ.

moreover, I couldn't understand (in the time I had) how create the SQL
table automatically on install.

I did my attempt:

<install>chatin_installer.php</install>

and there the function
chatin_upgrade() execute a simple sql query to create the table that
the script needs.

obviously, doesn't work.

Could you give me a hand?

note that to test it at the moment you must run the sql in db.txt .
Then you install it and activate the plugin, a speech ballon will
appear beside the each name of the "List of connected editors". click
to chat.

thanks in advance.

I have seen a bunch of chinese testing your app.
Say nihao to them :wink:

Martín Gaitán schrieb:

Hi!

I was working in adapt this work as a spip plugin

Gmail/Facebook Style jQuery Chat | anant garg

here the result at the moment

Connexion · GitLab

if you check the revision history you'll note note that it was an old
idea I had.

it's works partially: it fails registering the username as a chat user
if it has "strange" chars like í or ñ.

moreover, I couldn't understand (in the time I had) how create the SQL
table automatically on install.

I did my attempt:

<install>chatin_installer.php</install>

and there the function
chatin_upgrade() execute a simple sql query to create the table that
the script needs.

obviously, doesn't work.

Could you give me a hand?

note that to test it at the moment you must run the sql in db.txt .
Then you install it and activate the plugin, a speech ballon will
appear beside the each name of the "List of connected editors". click
to chat.

thanks in advance.
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hello Martín Gaitán,

this looks great for an environment where you don't have to worry about abuses. I tried it out and found that message transmission/display is a bit erratic :

When you open an new chat window by clicking on "Chat with user" the messages sometimes appear in some of this user's windows, in others they don't. I did not try to find out details of this phenomenon which might just be a (my) user error. Some lines pof description would help:

e.g. "Hello User 2! When you click on 'Chat with user 1' you will see all your messages show up in another window you opened as user 1"

Is it possible to restrict the use of the chat to authenticated SPIP-users?

Thank you for your contribution,
klaus++

Martín Gaitán schrieb:

Hi!

I was working in adapt this work as a spip plugin

Gmail/Facebook Style jQuery Chat | anant garg

here the result at the moment

Connexion · GitLab

if you check the revision history you'll note note that it was an old
idea I had.

it's works partially: it fails registering the username as a chat user
if it has "strange" chars like í or ñ.

moreover, I couldn't understand (in the time I had) how create the SQL
table automatically on install.

I did my attempt:

<install>chatin_installer.php</install>

and there the function
chatin_upgrade() execute a simple sql query to create the table that
the script needs.

obviously, doesn't work.

Could you give me a hand?

note that to test it at the moment you must run the sql in db.txt .
Then you install it and activate the plugin, a speech ballon will
appear beside the each name of the "List of connected editors". click
to chat.

thanks in advance.
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en