Timestat

Maintained by Elearnity Team
Timestat block measures users real activity time. Time is increased only when Moodle tab is active in browser.
Price option: Free

Supports Moodle 3.11-5.0 See all versions
Latest release: 1 year ago
Installations: 641
Downloads (last 90 days): 216

Frankenstyle name: block_timestat
Blocks

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi,
My original problem has been resolved in Moodle 2.7, now I have completed the three steps:
1. changed the code in moodle/lib/outputrenderers.php,
2. Java is enabled in Browser
3. I added the block "timestat" in two courses
Students and teachers have participated in the courses, but the output is "0 records"
Am I missing something?
This block works with the new "Standard Log" or with "Legacy log" ?
Many thanks,
Erika
Yes, it is possible Stefania. Just change the last parameter on report list, from "Display on page" to "Download in excel format"
Hi,
I installed this plugin and everything work fine. Just a question is it possible to export the result in .csv or .xls file?
Thanks a lot
Stefania
Thanks a lot
Stefania
hi i install it from plugin install zip...but appear internal error can you help me please to install it correctly?
thanks so much i have moodle 2.8.5
Hi, I have the same issue as Ray in Moodle 2.7.5,
When I log into Moodle appears a blank page:
/moodle-27_actualizacion/blocks/timestat/update_register.php?id=&time=11
I have to delete from /blocks/ to get into the platform.
Hi Aurelie
Have You set time constraints in timestat report correctly (including time when Your student worked)?
You don't need to add this block to every course, it works everywhere when after modification of core function.
The warning with 'add_to_log()' is displayed because this is a legacy log function, please ignore it.
Hi
I work with Moodle 2.8.2+ (Build: 20150115).
I have installed the block, enabled Legacy log, followed the modification of core file mentioned in readme, and checked Java is enabled in Browser. I added the "timestat" block to every page of my course.
I logged with a studend count, opened a SCORM activity, a pdf document, and answered a quiz.
I looged back on my admin/teacher count.
Like Heinz Schmolke, when I click on “calculate”, whatever the settings, it says "no results".
I activated the Debugging mode. Now when I click on “calculate”, it shows this message :
add_to_log() has been deprecated, please rewrite your code to the new events API
line 48 of /lib/deprecatedlib.php: call to debugging()
line 140 of /blocks/timestat/index.php: call to add_to_log()
Help, What should I do ?
I need time stats, and your time traker is the only one with the 2.8 stamp. So I hope you’ll tell me how to fix it smile
Thanks smile
Hi again lukasz
Timestat is now recodring times accurately thanks. BUT it creats a problem at login. I get xxxx/blocks/timestat/update_register.php?id=43318&time=8 and it just hangs there.
I get the same results using it in 2.6, 2.7 and 2.8
Regards
Ray
Aha ! The readme file. Yes, Lukasz, you're right, it works when I follow the instructions. Thank you for your patience !
Ray
Ok, lets see:
1. I changed the code in moodle/lib/outputrenderers.php to " public function standard_end_of_body_html() {
global $CFG;
// This function is normally called from a layout.php file in {@link core_renderer::header()}
// but some of the content won't be known until later, so we return a placeholder
// for now. This will be replaced with the real content in {@link core_renderer::footer()}.
$output = '';
if (!empty($CFG->additionalhtmlfooter)) {
$output .= "\n".$CFG->additionalhtmlfooter;
}
$output .= $this->unique_end_html_token;
require_once($CFG->dirroot.'/blocks/timestat/lib/timestatlib.php');
return $output;
}"
2. Java is enabled in Browser (Chrome)
3. I added a block called "timestat" to every course. I can click in this block on the word "calculate", then a new page will open and I can change some settings (Period) and I have to push the calculate bottom again. But it says "no results". What is wrong?
What is wrong? Thanks!
Hi, timestat requires three things to work: 1: proper installation (with modification of core file mentioned in readme), 2: java enabled in browser and 2: adding this block to course page to get results. Have You done all of them?
Unfortunately the block don't work in 2.7. If I click on "calculate" I got "0 results" although a lot of people worked inside the course.
The same like me: No results. I added the timestat to course page but after visiting by participants nothing happens. No results. I'm using moodle 2.7
Dear Lukasz,
I have installed Timestat block on the course page ("on any page" in settings) but I get no results. No Records to display. Am I missing something please ?
Many thanks,
Ray
hej, mam problem z blokiem (moodle 2.6.5), zainstalowany, wyświetla się, natomiast gdy chce wygenerować jakąś aktywność otrzymuje błąd: Błąd odczytu z bazy danych.
Dokładniej:
error/moodle/dmlreadexception
W moodlu mam włączony raport błedów ale nic sie nie wyświetla.