LiveUsers - Block Plugin

Blocks ::: block_bbliveusers
Maintained by BlackBean Technologies Ltd.
LiveUsers is a block plugin for the Moodle Platform that displays the exact number of online users per course in realtime, even if they spend hours watching a single video, for example, without ever refreshing a single page.
Latest release:
18 sites
8 downloads
8 fans
Current versions available: 1

LiveUsers (https://github.com/blackbean/moodle-block_bbliveusers) is a block plugin for the Moodle LMS Platform (https://www.moodle.org) that monitors the exact number of online users per course in realtime, even if they spend hours watching a single video, for example, without ever refreshing a single page.

This plugin was conceived because many of our corporate clients had the exactly same problem with Online Users Block: when a user stays longer than 5 minutes whatching a video, they are not considered as an online user anymore. Course, we could adjust the block's minutes threshold but it gets more and more inacurate as higher we go. This is a very big problem when we have all day live events such as video streams. This plugins helped us to have a very precise idea and also allowed our clients to generate accurated reports.

The LiveUsers plugin is splitted into two distinct but interdependent parts the local_bbliveusers (https://github.com/blackbean/moodle-local_bbliveusers) and block_bbliveusers (https://github.com/blackbean/moodle-block_bbliveusers):

The first one, local_bbliveusers, is the core library and API responsible for processing, storing, reading and exporting the users live data. By default, the core library only stores user data three times per minute (or in twenty seconds increments) this helps us to keep the data consumption under control.

The second, block_bbliveusers, is the user block were you can watch in realtime live users count in a chart and it's context aware so, if you place it within the course context it will only show that course live users, but if you place it within the control painel it will show all live users within all courses. This it's also smart enough to detect the width where it's placed and adjust the number of bars to display.

IT'S ALSO VERY IMPORTANT TO NOTE THAT THIS PLUGIN WILL ONLY TRACK USERS INSIDE COURSES (ITS ACTIVITIES) AND NOT WITHIN OTHER MOODLE PAGES SUCH AS SITE ADMINISTRATION PAGES.

THIS PLUGIN IMPLEMENTS A SEPARATED TIMEOUT PARAMETER THAT CONTROLS HOW LONG THE PLUGIN SHOULD MAKE REGULAR CHECKS TO THE SERVER TO TRACK THE USER, WHAT IN PRACTICE ALSO KEEPS THE USER SESSION ALIVE/ACTIVE. THE USER WILL NOT BE LOGGED OUT AFTER THIS TIME, BUT WILL BE LOGGED OUT AFTER THIS TIME HAS EXPIRED AND ALSO THE SESSIONTIMEOUT VALUE HAS EXPIRED. FOR EXAMPLE, IF YOU HAVE THIS SET TO TWO HOURS, AND THE SESSIONTIMEOUT VALUE SET TO TWO HOURS, THE USER WILL TRACKED DURING THE FIRST TWO HOURS AND BE LOGGED OUT AFTER FOUR HOURS OF INACTIVITY.


Screenshots

Screenshot #0

Contributors

BlackBean Technologies Ltd. (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Plugins bot
    Fri, 13 Apr 2018, 3:50 AM
    Approval issue created: CONTRIB-7260
  • Dan Marsden
    Wed, 23 May 2018, 5:08 PM
    This plugin has some similar issues to the other plugin you have submitted - please review the issues with your other plugin and apply that new knowledge to update this plugin as well. For now we will flag this plugin as requiring further work prior to approval in the plugins db.
  • BlackBean Technologies Ltd.
    Thu, 26 July 2018, 10:49 PM
    Hi Dan, can you have a look at this new version?
    We fixed all the pointed shortcomings.

    Thanks,
    Bruno
  • BlackBean Technologies Ltd.
    Wed, 12 Sept 2018, 3:49 AM
    Hi Dan,

    Any news regarding this plugin release?

    Best,
    Bruno
  • Dan Marsden
    Sun, 16 Sept 2018, 3:45 PM
    couple of remaining issues (easy to fix) which I've just reported to your github repo - once you have them sorted the final review should happen pretty fast - thanks for your patience with the review process!
  • Vicke Denniston
    Wed, 13 Feb 2019, 11:45 PM
    We can't get this to work, we have both the plugin and block installed but we don't see the graph, we get the axes of the graph, compressed, with nothing in the middle. We are on Moodle 3.5.4 hosted by Moonami
    bblive-2.png
Please login to post comments