Course dedication

Blocks ::: block_dedication
Maintained by CICEI ULPGC, Aday Talavera
This block allows to calculate estimated dedication time of participants within a course.
Latest release:
5704 sites
160 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.
Update  to new Moodle 3.x versions

If you need to update fast to a new Moodle 3.x version, you should try to setup the plugin manually in your Moodle site. This is an easy process. Just download the zip, upload it from your Moodle administration panel and then run the setup. A lot of people are doing the updates this way.

The plugin didn't need any critical code update since the update to Moodle 3.x, so it would probably work without any changes until the release of Moodle 4.x.


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


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

Comments RSS

Show comments
  • 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.
  • 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!

  • Sat, Dec 5, 2020, 2:44 AM
    Good plugin, when can it be available for version 3.10?
  • Fri, Jan 22, 2021, 7:09 PM
    is it available for version 3.10?
  • Cycle Touring in Portugal
    Thu, Apr 22, 2021, 11:15 PM
    Hey Aday Talavera,
    Was wondering if you plan on seeing if the plugin will work with Moodle 3.10? My courses start in June and would like to use the latest version for security proposes. Thanks.
    If Andy's not available, has anyone tested it on the 3.10 release?
  • Fri, Apr 30, 2021, 3:07 PM
    Hi The Web Side, I already tested and works fine, but the dedication course section is hidden (idk why). When you install the plugin, go to any course and use the google inspector (f12) and search for "Dedication course" and search for "margin-right: -320px" in css and delete it, that way you'll see the block.
  • Mon, May 3, 2021, 11:18 PM
    I will try to check if the plugin still woks with latest moodle versions to upgrade it properly.
    @Andres Sch, could you tell me what theme are you using so I can try to debug the css issue?
  • Mon, May 3, 2021, 11:32 PM
    Thank you Aday for sharing your great work with the Moodle community! The Dedication Block has been very helpful, especially during COVID, to help coach students and parents about looking at putting in the proper time to be successful in a course compared to the course average, and the block counting the number of days since the start of the semester and average minutes per day is also an extremely helpful metric (much like a fitness tracker counting steps!).

    I was wondering for future features if you might be able to add in a feature for tracking dedication time for meta-enrollments in a course (e.g. student is registered for a Year 1 Course, which then has meta-enrollments for subcourses in Math, Science, History, Art, etc.) so that teachers and case managers could see how a student is doing overall and as helpful data to help coach students. Oftentimes, students are completely unaware of their study habits, and the course dedication block has been a very helpful, data driven tool to help spot trends and habits to help kids build consistency and improve their progress.

    Thanks again Aday for sharing your great work with the open source community!
  • Cycle Touring in Portugal
    Wed, Jun 2, 2021, 3:35 AM
    Hey Aday, wondering if you got a chance to test if CD works with latest moodle version as you mentioned?We’re up to Moodle 3.11 now which leaves CD two versions behind. I really want to keep my site secure but also really rely on your wonderful right now I’m in a Catch 22 situation. Could you please test it with 3.11? 🙏🙏🙏
    Thanks so much.
  • Tue, Jun 15, 2021, 4:43 PM
    I checked that the block still works with Moodle 3.11+ so I updated the compatibility.

    If you need to update fast to new Moodle versions, you should try to setup the plugin manually in your Moodle site. This is an easy process. Just download de zip, upload it from your Moodle administration panel and then run the setup. A lot of people are doing the updates this way.

    The plugin didn't need any critical code update since the update to Moodle 3.x, so it would probably work without any changes until the release of Moodle 4.x.
  • Cycle Touring in Portugal
    Fri, Jun 18, 2021, 12:06 AM
    Thanks so much Aday for testing this with 3.11, just in time for the start of my courses!
  • Thu, Aug 12, 2021, 12:49 PM
    Hello! I'd like to know if this plugin will slow down the server, and if yes, is there any possibilities to use it without negative impact on the server performance?
    My question is because the university where I ask them to install this plugin for the course that I will teach refuse to do it, in reason of the performance of their Moodle platform is... very limited. mixed
    Thank you by advance.
  • Sat, Aug 14, 2021, 2:02 AM
    The only moment that the plugin could affect performance is whenever you open it and the plugin needs to calculate dedication time for each student. So if the block is only enabled for teachers then performance impact should be low by default.

    However, if you have a course with many students, for example more of 500 or more, in that courses you could have issues with memory or timeouts, because that are a lot of calculations to do to show the dedication time of all the students.
1 2 3 4 5 6 7 8
Please login to post comments