Old modules and plugins

Note: This database has been replaced by the Moodle Plugins Directory.

Block: ActiveUsers

Type: Block
Requires: Moodle 1.8 or later
Status: Contributed
Maintainer(s): Rashan Anushka - rap At UCSC cmb ac lk

The objective of the block was to list the most active users of the LMS along with a ranking. Each user is a given a rank according to the number of hits made by him. The rank is simply the Z score of the number of hits made by the user.

Rank of User X = ( Hits by X – Avg. of hits made by a user ) /Std Dev of hits made by users

The top 10 users (this number can be configured) having the maximum rank will be displayed in the block along with his or her photo, rank. The objective of this block is to promote the usage of the LMS. By completing this basic implementation we have identified some future implementations or extensions to this block to get the maximum use of it, such as Improve the ranking algorithms, so that each activity can have a different weights attached to them. Further, different weights to be attached to different sub-activities related to a particular activity (e.g. viewing a forum vs. posting to the forum).

Record added by Rashan Anushka - Saturday, 15 September 2007, 6:18 PM
Last modified - Tuesday, 13 May 2008, 12:23 PM


  • Health & Safety Training NinjaSteve Bilton - Mon, 12 May 2008, 7:26 PM
    Can the ability to show/hide this block from defined users be added? I only want tutors and admins alike to be able to see this graph, not students.
  • Picture of Rashan AnushkaRashan Anushka - Mon, 12 May 2008, 9:09 PM

    Now I have add several new features and could you pls test this.
    guess what, when adding to a course, now you can select the roles to be considered. smile

    The latest code is inside moodle contrib. but the ziped file can be downloaded from sourceforge.

  • Picture of Richard de KeyzerRichard de Keyzer - Tue, 20 May 2008, 2:59 PM
    I've tried version 0.5 from sourceforge. Moodle version 1.9 with php 4. Tried to upgrade from version 0.3. After installation (overwriting 0.3) moodle gives a white screen. Also tried blocks/activeusers/db/upgrade.php, but no succes.
    Maybe php 4 is the problem, or moodle 1.9?
    I hope you can have an other look at 0.5. Thank you

  • looking through the windowMaryel Mendiola - Thu, 29 May 2008, 2:11 PM
    Hi Rashan

    I've been using your block, and today I upload it . . . it is amazing

    the new features are so good.
    I only want to Thank you for your excellent block

  • Picture of Nathan PageNathan Page - Thu, 5 Jun 2008, 4:07 AM

    I download and unziped this module on a XP system.

    In Admin I get this error at top of page:

    Module "activeusers" is not readable - check permissions

    I check system permission and read only status of folder. Haven't found the problem yet.

  • Picture of Nathan PageNathan Page - Thu, 5 Jun 2008, 4:24 AM
    It looks like I unziped into the wrong folder.
  • Picture of Umawadee WongmitUmawadee Wongmit - Tue, 17 Jun 2008, 3:47 PM

    I used moodle 1.9 and extract the zip file inside the "blocks" folder and login as admin and click on "Notifications" link in site administration block.after that I found blank page and blocks drop down don't have activeuser block list.

  • Picture of Rui NascimentoRui Nascimento - Tue, 1 Jul 2008, 7:35 PM

    Hi there.

    I've just downloaded you block and move it to the blocks folder of my moodle and i get:

    Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/espalmel/public_html/moodle/blocks/activeusers/block_activeusers.php on line 257

    I'm using Moodle1.8.2 (2007021520) on PHP Version 4.4.7

    Do I need PHP 5? Or is it something else?

    Thank you very much.

  • Picture of Rashan AnushkaRashan Anushka - Mon, 7 Jul 2008, 4:14 PM
    could you pls move these discussions to the relevant discussion forum above. it's very dificult to answer your questions here smile
    If i am not replying to your questions in the forum, pls send me a private message ;)
  • Picture of Thomas BachertThomas Bachert - Tue, 13 Jan 2009, 11:23 PM
    Cliff - With reference to step 2. Where exactly do you rename 'block_course_menu' to 'b'? I attempted this for my Moodle 1.9.2, which is loaded on a Windows server, and it did not work. I did not see it as an option to add it to my course's front page even after running Notifications. Can you also post the code showing the before and after?
  • Picture of Marcela CMarcela C - Sat, 24 Jan 2009, 8:57 AM
    este modulo permite enviar una copia exacta con el documento adjunto al correo personal de la persona.
  • Bob SingletaryBob Singletary - Tue, 27 Jan 2009, 5:35 AM

    Has anyone had the issue of the block not updating unless you go into edit mode, update, and select the Update Statistics Now check box? The block doesn't seem to reflect the latest user statistics unless I do this manually on a periodic basis.

  • Picture of Do EdusoftDo Edusoft - Mon, 16 Mar 2009, 4:46 PM
    I would like to display the number of accounts on this block.
    Please tell me, if you have a solution.
    Thank you.
  • Me at the Moodle Moot NZ11Stuart Mealor - Sun, 7 Jun 2009, 8:58 AM
    Hi Rashan

    Have you updated this Block to work with Moodle 1.9.4+ ?

    I've noticed that my number of active users displayed has dropped down to around 10 - even though there are more active users than this.

    I've tried altering dates and updating, but still the number of users displayed seems to be getting gradually less sad

    Any ideas?
    Thanks for your work on this Block!

  • Daniel PhillipsDaniel Phillips - Fri, 28 May 2010, 9:57 AM

    Im using Moodle version 1.9.8+ with a custom theme.

    Installing this block screwed up my theme.

    I got an extra white space above the standard navigation bar and in a number of other places there were some misalignments e.g. login Page skewed off to the right, HTML editor half-sized and buggy looking.

    Removing the block completely (remove from manage blocks and removal of the folder from blocks directory) restored normal service.

    Nice block though - just wish it didn't effect my theme. smile

    Dan Phillips

Page: 1 2 3 ()