Project

General

Profile

Feature #3565

Global platform chat

Added by Julio Montoya over 8 years ago. Updated over 7 years ago.

Status:
Feature implemented
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
07/06/2011
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Create a global chat so users that are currently online could chat with each other ..

This implies adding a new PHP chat plugin/third party


Files

chat.png (88.8 KB) chat.png Julio Montoya, 10/01/2012 15:14

Related issues

Related to Chamilo LMS - Feature #1362: Implement a new Chat toolFeature implemented26/05/2010

Actions

Associated revisions

Revision ce3329af (diff)
Added by Julio Montoya over 7 years ago

Adding new chat js library (with no changes) see #3565

Revision d2b9f2d8 (diff)
Added by Julio Montoya over 7 years ago

Adding first draft for the user to user chat see #3565 (doesn't work yet)

Revision effe444c (diff)
Added by Julio Montoya over 7 years ago

Adding global chat code. Now is working, new table need to be created and some code need revision see #3565

Revision 3b5e2689 (diff)
Added by Julio Montoya over 7 years ago

Minor - Fixing y-scroll in course homepage see #3565

Revision 87bea5e5 (diff)
Added by Julio Montoya over 7 years ago

Adding admin setting to the global chat see #3565

Revision ce861078 (diff)
Added by Julio Montoya over 7 years ago

Some fixes in the chat so we can load the latest conversation in the screen see #3565

Revision 20e75257 (diff)
Added by Julio Montoya over 7 years ago

Fixing global chat bug when refreshing the window see #3565

Revision 4f6c05dc (diff)
Added by Julio Montoya over 7 years ago

Adding blink style for incoming messages + a fix see #3565

History

#1

Updated by Yannick Warnier over 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Julio Montoya
  • Priority changed from Low to High
  • Target version set to 1.9 Stable

Here is a GPL chat that would allow us to use a GMail/Facebook like chat with little implementation cost: http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/ (it seems to date from the early 2009 so maybe there is another one more stable by now somewhere else, but this is a good candidate).

The double licensing issue is cleared up in the comments, where the author says it is GPL for use in GPL projects.

Because of the current move towards social learning and live communication made possible in other platforms (fb/g+/twitter), it is now essential to have one in Chamilo too.

The requirements for a new chat tool are:

  • store all the conversation in a specific (optimized with fixed-length fields) table as it occurs
  • store the history of each conversation as a message in the message table of the two users who chatted
  • add a "chat with him/her" icon as a "mouse-over" style for all user references (this means we will have to use a common class for all references of users lists we can find - this can be useful later on as well) like <span class="pf-usr"> (minified for "platform-user")
  • make an admin option (changeable by URL) to enable/disable the "One to one chat"

Together with the mentioned plugin, this could give us a big hit with our users (at least on campus.chamilo.org) for 1.9.

#2

Updated by Julio Montoya over 7 years ago

I added some code not finished yet ...

#3

Updated by Hubert Borderiou over 7 years ago

Wonderful ! I'm amazed !
That'll be totally great !

#4

Updated by Julio Montoya over 7 years ago

Right now the chartbeat is been called every time, this should not happen ...

#5

Updated by Julio Montoya over 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee deleted (Julio Montoya)
  • % Done changed from 50 to 70

Julio Montoya wrote:

Right now the chartbeat is been called every time, this should not happen ...

now we need to activate the chat in order to make calls to the database every X time

#6

Updated by Yannick Warnier over 7 years ago

  • Target version changed from 1.9 Stable to 1.9 Beta
#7

Updated by Yannick Warnier over 7 years ago

  • % Done changed from 70 to 60

Shouldn't be closed yet. There should be an easier way to see the list of friends online and contact them (like the ones in FB and Google+). Any idea where or how we could put it, visually?

#8

Updated by Yannick Warnier over 7 years ago

Also, it looks like the default status is "online". Isn't that provoking unnecessary queries to the database? (you were saying above that now you have to "connect" to start querying...)

Where is the data stored now?

#9

Updated by Julio Montoya over 7 years ago

Yannick Warnier wrote:

Also, it looks like the default status is "online". Isn't that provoking unnecessary queries to the database? (you were saying above that now you have to "connect" to start querying...)

Where is the data stored now?

when you create a user or when a user register to the portal and you enter for the first time your user status is "offline". You need to click in the button in order to activate "the queries" the user global chat status is added as an user extra field the global chat messages are save in the chat table

#10

Updated by Yannick Warnier over 7 years ago

  • % Done changed from 60 to 80

Julio Montoya wrote:

when you create a user or when a user register to the portal and you enter for the first time your user status is "offline". You need to click in the button in order to activate "the queries" the user global chat status is added as an user extra field

OK great. Have to check the behaviour on FB to see if they use the latest status or if they always disconnect you at first when you login. Does anybody know that?

the global chat messages are save in the chat table

OK great.

#11

Updated by Yannick Warnier over 7 years ago

  • Status changed from Needs more info to Feature implemented
  • Assignee set to Julio Montoya
  • % Done changed from 80 to 100

Also available in: Atom PDF