Measures real time students activity: Timestat Block

340

TimeStat block is a plugin maintained by Łukasz Sanokowski, which can measure the real time activity of students and the time is increased only when Moodle tab is active in student’s browser window.
Measured activity time is incremented only when Moodle tab in web browser is active (it is done via Javascript). It also allows to check time spent in each module separately.

Timestat Block
Timestat Block

Installation:
To install the TimeStat block to your Moodle site, you need to change the core Moodle code which is not recommended.

WIRIS
    • Download and extract the TimStat block in the your_moodle_site/blocks and visit the notifications page as an administrator and finish the installation process.
    • Open the file your_moodle_site/lib/outputrenderers.php in a text editor and Add following line of code at end of function standard_end_of_body_html()

          require_once($CFG->dirroot.'/blocks/timestat/lib/timestatlib.php');
so it should look like:
public function standard_end_of_body_html() {
global $CFG;

(...)
require_once($CFG->dirroot.'/blocks/timestat/lib/timestatlib.php');
return $output;
}

  • Also make sure that you have JavaScript in your browser as it will works only on the JavaScript enabled browsers.
  • Add the block to any course using “Add a block” with the Editing Mode On.

To download the latest version of the TimeStat Block please check out the link: https://moodle.org/plugins/view/block_timestat