Blocks: Course dedication

Maintained by Picture of CICEI ULPGC CICEI ULPGC, Picture of Aday Talavera Aday Talavera
This block allows to calculate estimated dedication time of participants within a course.
1458 sites
77 fans
Moodle 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6


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 Chiara Bandelloni
    Thu, 11 Aug 2016, 12:58 AM
    when I try to dowload data in Excel format, the file can't be open. It reports "I/O general error".
    Can I fix it someway?

    Thanks in advance
  • Picture of bruce chagas de moura
    Wed, 14 Sep 2016, 9:31 PM

    Haverá atualização desse plugin para o moodle 3.1?
  • Ricardo Caiado
    Tue, 11 Oct 2016, 9:39 PM

    Any moodle 3.x update?
  • Picture of JOSE LUIS ANSÓ
    Sat, 21 Jan 2017, 3:33 AM
    Hola, enhorabuena por el plugin alguna posibilidad de que se actualice para 3.1? Gracias y saludos
  • SDI projetos audiovisuais
    Fri, 24 Mar 2017, 11:07 PM
    Is there any update for moodle 3.x for purchase?
  • Picture of Nicholas Stefanski
    Thu, 30 Mar 2017, 12:14 AM
    On Moodle 3.1, haven't experienced any errors.

    I made a slight change to the plugin to use the standard log instead of the legacy log. In dedication_lib.php, changed line 55 from
    `$logs = $DB->get_records_select('log', $where, $params, 'time ASC', 'id,time');`
    `$logs = $DB->get_records_select('logstore_standard_log', $where, $params, 'timecreated ASC', 'id,timecreated');`
    Then, I hunted through and changed all references to the columns `time` and `course` to `timecreated` and `courseid`.
  • Picture of Iñigo Zendegi Urzelai
    Fri, 31 Mar 2017, 6:24 PM
    Hi there,

    There is a newer version of this plugin that hasn't been released here.

    We've been using this officially unreleased version of the plugin in Moodle 2.7, 2.9 and 3.1 without any issue; it was originally published by Aday Talavera here:

    And this is the direct link to it:

    It has all the changes needed to work with the new log system.
  • Picture of Daniel Costa
    Wed, 19 Apr 2017, 11:52 PM
    Dear all,

    Please could you let us know if there is planning for a 3.2 version of this plugin?

    Many thanks
  • Picture of Aday Talavera
    Mon, 24 Apr 2017, 2:08 AM
    Sorry for being late, but I updated the plugin for Moodle 2.7+ and 3.x+

    As Iñigo said, there was an advice in the plugin description almost since a year, redirecting people to download the new version directly from the repository.
    A lot of people also directly asked me by private messages.

    Please contact me by private messages if you found any error.
  • Picture of Dinis Medeiros
    Mon, 24 Apr 2017, 5:38 PM
    In "Detailed course dedication of " is possíble enlarge columns?
  • Picture of Dinis Medeiros
    Mon, 24 Apr 2017, 5:47 PM
    Mean dedication: 36 minutes 33.666666666667 seconds. Can decimals seconds be just one ore two?
  • Picture of Claudio Visa
    Thu, 19 Oct 2017, 1:09 AM
    Estimados se lo puede hacer solemente para el rol profesor, osea que me muestra solo el docente del curso, saludos
  • Picture of Luis Ayala
    Tue, 28 Nov 2017, 9:08 PM
    He instalado la última versión de la herramienta Dediación al Curso en mi plataforma Moodle 3.0. El módulo aparece perfectamente en el curso de prueba con el que estoy aprendiendo a usarlo y me indica el tiempo de conexión cuando entro con un perfil de alumno de prueba. Como profesor también puedo ver mis tiempos de dedicación. El problema viene al pulsar el botón de "Herramienta de dedicación" para sacar el tiempo por cada alumno. Al pulsar en dicho botón no me muestra los tiempos, sino que me saca directamente a mi zona de "Area personal".
    ¿Alguien puede aportarme un poco de luz? Lo agradecería porque lo necesito para próximos cursos.
    Muchas gracias de antemano y felicidades por la concepción de una herramienta tan útil.
  • Picture of Narit B
    Wed, 13 Dec 2017, 9:34 PM
    I can't see download button. is any reason?

  • Picture of Jean-Charles Blondeau
    Mon, 15 Jan 2018, 4:39 PM
    Hi there,
    Is there any moodle 3.4+ update?
1 2 3 4 5
Please login to post comments