Course dedication

Blocks ::: block_dedication
Maintained by Picture of CICEI ULPGCCICEI ULPGC, Picture of Aday TalaveraAday Talavera
This block allows to calculate estimated dedication time of participants within a course.
Latest release:
4856 sites
147 fans
Current versions available: 4


This block allows to see the estimated dedication time to a Moodle course by the participants of the course.

How dedication time is estimated?

Time is estimated based in the concepts of Session and Session duration applied to Moodle's log entries:

  • Click: every time that a user access to a page in Moodle a log entry is stored.
  • Session: set of two or more consecutive clicks in which the elapsed time between every pair of consecutive clicks does not overcome an established maximum time.
  • Session duration: elapsed time between the first and the last click of the session.


This block is intended to be used only by teachers, so students aren't going to see it and their dedication time. However, block can be configured to show dedication time to students too.

Teachers can use a tool to analyse dedication time within a course. The tool provides three views:

  • Dedication time of the course: calculates total dedication time, mean dedication time and connections per day for each student.
  • Dedication time of a group: the same but only for choosed group members.
  • Dedication of a student: detailed sessions for a student with start date & time, duration and ip.

The tools have a link to download all data in spreadsheet format. The use is restricted by a capability to teachers and admins only.

This block cannot be used in the site page, only in courses pages.

All texts in English and Spanish (AMOS).

Available versions
  • Moodle 2.0 - 2.6: old Moodle 2 version.
  • Moodle 2.7+ / 3.x+: Moodle 2.7 brought a new log system, so the plugin needed to be redone to use this new system. If you have upgraded your site from older versions (2.6 or below) you will need to enable legacy logging in Moodle administration to get dedication time. If you restore a course from an older version in a newer version, you won't have any problem.


Support is offered in English and Spanish in these forum discussions:

Code repository:



This block was developed and produced by CICEI at Las Palmas de Gran Canaria University.

First version for Moodle 1.9 by Borja Rubio Reyes.

Updated and improved version for Moodle 2.x and 3.x by Aday Talavera Hierro.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4


Picture of CICEI ULPGC
CICEI ULPGC (Lead maintainer)
Picture of Aday Talavera
Aday Talavera: maintainer
Picture of Borja Rubio Reyes
Borja Rubio Reyes: author
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of weimei xiong
    Tue, Aug 4, 2020, 11:12 AM
    What are the database tables related with this plugin? Does it create any new table in the database? Many thanks.
  • Ricardo Caiado
    Tue, Aug 18, 2020, 4:20 AM
    Is it compatible with 3.9+ version of Moodle?
  • Picture of Steve Radford
    Tue, Aug 18, 2020, 11:02 PM
    Aday Talavera, is there any way this report could be configured so that it could show total site dedication time (time spent on all courses / site pages) within a specific time frame in addition to the current functionality? If that's currently not possible, I would be willing to contribute financially towards any development that would make that possible in a future release.
  • Picture of Roberto Medina
    Wed, Aug 26, 2020, 4:24 AM
    I urgently need to use this block in my site..... I have tried to install it in my 3.9 moodle site but I only get a maintenance screen as result.

    Could you please tell me about an approximate date of deployment?
  • Picture of Aday Talavera
    Wed, Aug 26, 2020, 9:15 PM
    I tested the last version of the plugin (Moodle 3.x+ (2020041000)) with Moodle 3.9 and everything is working. So I enabled the compatibility with this version.
    If some of you have more problems, probably is not related with this module.
  • Ricardo Caiado
    Fri, Oct 2, 2020, 8:47 PM

    is it possible to track not only the students, but also the teacher activity?

  • Picture of Steve Radford
    Fri, Oct 2, 2020, 8:58 PM
    Ricardo, we are using the plugin and it seems to do that by default
  • Ricardo Caiado
    Fri, Oct 2, 2020, 9:10 PM
    Steve, thanks for the reply.

    In my installation users with "editingteacher" role are showing on the list.

    I could only find "block/dedication:addinstance" and "block/dedication:use" and they are set to "permit".

    I´m using the latest version.

    Any idea?


  • Picture of Steve Radford
    Fri, Oct 2, 2020, 9:12 PM
    Sorry Ricardo, no idea. In our installation (Moodle 3.8) non-editing teachers show in the list too
  • Ricardo Caiado
    Fri, Oct 2, 2020, 9:16 PM
    That´s weird....

    # Participants: 65

    But the "Dedication Block" only shows 32 (????)

  • Ricardo Caiado
    Fri, Oct 2, 2020, 10:01 PM
    Ok!. Look what I´ve just found...

    All the 32 participants that are showing in the Dedication Block belong to a group!!!

    Tested with another course with 200 Participants and the Dedication Block shows all of them (no groups)

    It seems to me that this block does not work correctly when there are groups in the course.
  • Picture of Steve Radford
    Fri, Oct 2, 2020, 10:07 PM
    Ricardo, we have been using the block successfully with groups. When all students belong to a group, the list of students includes a 'group' column whch shows which group each student belongs to. However, we haven't testeded it when some students belong to a group and others do not - perhaps that's your issue? Perhaps check whether you (the teacher) also belong to one of the groups too, and if so try removing yourself from all groups (or adding yourself to all groups) to see whether that changes which students yu can see in the list.
  • Ricardo Caiado
    Fri, Oct 2, 2020, 10:15 PM
    Steve, that´s exactly the problem = "groups" and "no groups" users

    I just checked it out!

  • Picture of Santos M
    Sat, Dec 5, 2020, 2:44 AM
    Good plugin, when can it be available for version 3.10?
  • Picture of Ashutosh Sharma
    Fri, Jan 22, 2021, 7:09 PM
    is it available for version 3.10?
1 2 3 4 5 6 7 8
Please login to post comments