Global Chat

Blocks ::: block_gchat
Maintained by Bruno Sampaio
Part of set Cubic.
Global chat for Moodle. With this plugin teachers and students can communicate in real time through Moodle.
Latest release:
253 sites
109 downloads
35 fans
Current versions available: 1

This plugin introduces a chat for Moodle very similar to Google Chat or Facebook Chat. It uses a block to list all online users that are part of all courses a user is subscribed to, and opens a chat window on the bottom of the page when a online user is clicked.

The advantages of this chat are:
- Users don't need to open a separate window to use this chat, while Moodle activity chat needs them to do so;
- A user can establish a real time conversation with other online users subscribed to the courses this user belongs to;
- Users can change between pages and their open conversations will always be there;

If you are a student use it to collaborate with your colleagues, or to ask questions to your teachers.
If you are a teacher use it to communicate with your students individually.

We believe Moodle needs a different chat concept, that's why we decided to create this plugin. It still needs some improvement, but first we would like to know what people think about this idea smile

Screenshots

Screenshot #0
Screenshot #1

Contributors

Bruno Sampaio (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Ali Rajabpour Sanati
    Wed, 24 Apr 2013, 4:59 AM
    Hello bruno and thank you for this great module, i have moodle 2.4 and i copied the block folder into moodle block directory and installed it using notification area in moodle, after that i moodle_gchat to /etc.init.d and supervisord.conf to /usr/local/etc, next i installed supervisor using apt-get install supervisor, and finally i use cd /etc/init.d && sudo ./moodle_gchat start to run the script, i purged my moodle caches too, but the keep saying the connection with server was lost! what should i do, please help me.. thank you in advance
  • Bruno Sampaio
    Wed, 24 Apr 2013, 4:44 PM
    Hello Ali,

    Your Moodle site is installed on the localhost or on a public server? If it is on the localhost please check if the supervisord.conf file wasn't replaced when you installed supervisord. If it is on a public server you must make sure that the port to communicate with the server is opened. By default 8000 is used but you can change this on the plugin settings page.
  • Ali Rajabpour Sanati
    Thu, 25 Apr 2013, 2:09 AM
    thank you Bruno, it helped a lot, i changed the path in supervisord,conf, but now it keep saying that there is no online users! please help me. i have installed my moodle on local server, also i cannot stop moodle_gchat process! what is the command to do that?
    thank you in advance
  • Bruno Sampaio
    Thu, 25 Apr 2013, 4:09 AM
    If it tells you that there aren't online users it is already working! This chat will only display users registered on at least a course of the current user. So make sure you are testing with users from the same course(s).

    To stop the process you must kill the supervisor process first, and after that kill the server process. Supervisor will always restart the chat server process if it stops, so you must kill it first. The "moodle_gchat" file inside /etc/init.d provides the stop command which will stop everything. Just try the following commands: "cd /etc/init.d" and then "sudo ./moodle_gchat stop".
  • Ali Rajabpour Sanati
    Thu, 25 Apr 2013, 12:47 PM
    thank you very much Bruno, I want to use it on moodle main page so users from different courses can chat with each other, what should i do for that? thank you so much for your kind and sharp replies...
  • Bruno Sampaio
    Sat, 27 Apr 2013, 4:27 AM
    Oh I'm sorry but this plugin only allows users from same course(s) to communicate between them. If you want a public chat for everyone I think the only option is by creating a Moodle chat activity on your main page. This activity can then be accessed by everyone on your Moodle site.
  • Jared Moore
    Fri, 17 May 2013, 2:26 PM
    I cant seem to get this to work uploaded to the blocks directory on my hostgator account, I even asked them if it works on there servers and they said yes it would yet I keep getting GLOBAL CHAT

    The connection with the server was lost!

    Please help TY
    Jared
  • Bruno Sampaio
    Wed, 22 May 2013, 6:24 AM
    Hello Jared!

    Sorry for my late answer. To install this plugin it is very important that you read the README file. You need to do more than simply add a folder to the Moodle blocks folder. You must start the chat server process. On the README file I have some instructions about installing it on a Linux system. I never tried to install it on other systems but it shouldn't be much different. Tell me if you have any problems with the instruction on the file. Thanks!
  • dario beltran
    Thu, 6 June 2013, 11:35 PM
    no me funciona me aparece ¡se perdio la conexion con el servidor!

    que tengo que modificar en el archivo supervisord.conf
  • dario beltran
    Fri, 7 June 2013, 1:30 AM
    no encuentro las rutas
  • Giuseppe P
    Fri, 7 June 2013, 2:35 AM
    Hi;

    I installed your plugin, and followed all instructions contained in the README file, but I am not able to have it working.

    When I start moodle_gchat I get the following message:

    Unlinking stale socket /tmp/supervisor.sock

    I tried unlinking the file (I found this advice trying to understand the supervisor config file), but it does not work (after the unlink, the first time the start goes with no message, but the chat does not work -- I get "the connection with the server was lost").

    Also, is there a way to check whether the socket is actually working? Finally, how do I change the server port number? I tried changing the 8000 value I find in the settings.php file, but I do not know if this s right.

    Anyway, any suggestion to make ti work again would be much appreciated.

    Regards,

    G.

    p.s. There is no relevant error in the supervisor.log and ChatError.log files. everything seems ok, but for the unlinking error above.
  • Bruno Sampaio
    Mon, 10 June 2013, 2:39 AM
    Hi Gluseppe P!

    I had that problem before and if I remember correctly I had to kill the supervisor process and all processes associated to it, and when I tried to run the chat again it worked properly.

    The option to change the port number works, I'm using it on my Moodle site.

    The only way I know to check if the socket is working is by searching for it in the processes list. You need to find a process with a name equal to the command used to execute it. This command can be found on the supervisord.conf file. It usually contains "php run.php".

  • dario beltran
    Fri, 21 June 2013, 4:18 AM
    Como lo puedo instalar para windows, entiendo que las rutas que aparecen para pegar el supervisor.conf son en linux, AUDAAAAAAAAAAAAAA PORFA uso moodle 2.4
  • nidhul nandakumar
    Thu, 11 July 2013, 12:03 PM
    Hi i have installed in hostgator, the port number 8000 has been opened. Any other steps need to be done to make the application work? I am still getting the error "The connection with the server was lost!". Is there something i am missing?
  • Bruno Sampaio
    Sat, 13 July 2013, 7:01 PM
    Have you started the chat server as described in the README file? If not, and since you are using a hosting service, I think you'll need SSH to be able to run the process.
Please login to post comments