Blocks: Course 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.
3694 sites
129 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
  • Cycle Touring in Portugal
    Tue, Mar 31, 2020, 8:07 PM
    This plugin seems to be abandoned by the authors, no update since July 2018 & no reply to a multiple messages in over a year.
    I really think a feature like this should be part of the Moodle Core, it's so frustrating to have to rely on plugin authors who've lost interest.
  • Cycle Touring in Portugal
    Tue, Mar 31, 2020, 8:08 PM
    This plugin seems to be abandoned by the authors, no update since July 2018 & no reply to a multiple messages in over a year.
    I really think a feature like this should be part of the Moodle Core, it's so frustrating to have to rely on plugin authors who've lost interest.
  • Picture of Steve Radford
    Thu, Apr 9, 2020, 5:29 PM
    Does anyone know if this plugin will work in Moodle V3.8? I know this shows that the plugin only works for V3.5, however we are using in in V3.6 without a problem but we're about to upgrade and don't want to lose this functionality.
  • Picture of Aday Talavera
    Sat, Apr 11, 2020, 12:20 AM
    I have uploaded an updated version of the plugin to support up to Moodle 3.8. However, I must say that the module was working with Moodle 3.8. without doing any change.
    I only do a minor change to support themes based in Bootstrap 4. If you have any issues don't hesitate to publish them on Bitbucket issues tracker.

    Also I must remember to everyone that this is a free project and I accept any help in form of pull request to solve the issues reported on Bitbucket issues tracker. Usually the plugin updates were sponsored by the CICEI center. Borja and me worked in the CICEI for few years. But for the last 4-5 years, I updated the plugin whenever I have been able to do it.
  • Picture of artur santos
    Sat, Apr 11, 2020, 12:28 AM
    Please, can you upgrade this block so that it can be used in the site page or in course pages?
    Thanks in advance.
  • Picture of Joseph Liaw
    Sun, Apr 12, 2020, 1:25 AM
    Hi Aday:

    Thank you for volunteering your time and sharing your helpful work with the Moodle community! Very useful tool for instructors and for students--many times a student is unaware of their work habits and the Course Dedication tool provides this useful metric. For any future versions, I was wondering if there was a way to track students based on meta-course enrollments (for example, if they were enrolled in a medical program and had meta-enrollments or cohort enrollments in a group of courses, to track their time across those cohorts and/or meta-enrollments).

    Thank you again for your contribution, and I wish there was a way we could get you more support and funding!
  • Picture of Aday Talavera
    Sun, Apr 12, 2020, 2:56 AM
    Hi, the best way to achieve that right now is to export dedication time to Excel sheets and track there the dedication time.
  • Picture of Jas Green
    Thu, Apr 16, 2020, 9:42 AM
    Hello, is there a way to increase the "Limit between clicks (in minutes)" above 150?
  • Picture of Aday Talavera
    Fri, Apr 17, 2020, 2:56 AM
    Edit dedication_form.php and change 150 to your desired max value in this fragment of code: for ($i = 1; $i <= 150; $i++) {
  • Picture of António José Araújo
    Tue, Apr 21, 2020, 9:31 PM
    One student spent 3 hours of his time in Moodle, but only counted 53 minutes. The "Limit between clicks (in minutes)" setting is 60 minutes.
    What's wrong, can you please help?
  • Picture of Nacho Ruiz
    Thu, May 14, 2020, 7:16 AM
    Hola Aday. Se tiene en cuenta el tiempo dedicado dentro de los paquetes Scorm? Gracias!
  • Picture of Philip Sasso
    Tue, Jun 9, 2020, 7:28 AM
    Can I use this to limit or block the amount of time a student spends online in a class?
  • Picture of Steve Radford
    Mon, Jul 6, 2020, 4:16 PM
    We're finding this plugin really useful, thank you. Just wondering if you have any plans to update it for Moodle 3.9?
  • Picture of Aday Talavera
    Tue, Jul 7, 2020, 1:42 AM
    I expect to update this to Moodle 3.9 ASAP.
  • 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.
1 2 3 4 5 6 7
Please login to post comments