Your Moodle version

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.
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. The table presentation is improved with Twitter Bootstrap styles if current theme inherits from bootstrapbase theme.

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

All texts in English and Spanish (AMOS).

Moodle automatic updates

If Moodle notifies you about updating this block and offer you two versions, always use the latest version which is tagged as "reset". That is the new Moodle 2 version as seen in the screenshots and have all the features.

Note for Moodle 2.7

Moodle 2.7 changed its internal logging system, so you need to enable "legacy login" to do this plugin compatible.

Go to Plugins -> Logging -> Manage log stores and ensure that "Legacy log" its enabled.

This change will enable logging only after enabling it, so if your course already started, course dedication calculations won't be accurate.


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

Code repository:



This block was developed 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 by Aday Talavera Hierro.




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 Aday Talavera
    Thu, Apr 3, 2014, 8:38 PM
    Install the version tagged as "reset". That is the latest version with all the new features as seen in the screenshots.

    In the latest version, all contributed transalations were lost, and only spanish translation is in the AMOS right now.
  • avatar
    Thu, Apr 3, 2014, 9:05 PM
    Thank you very much.
  • Daniel
    Thu, Aug 28, 2014, 3:17 PM
    Hello there,
    It seems that your unit does not recover data in Moodle 2.7.
    Being tested by me in a way, this valuable block no output.
    Have you tested on 2.7?
    thank you
  • Picture of Aday Talavera
    Fri, Aug 29, 2014, 5:19 AM
    We didn't test the plugin in 2.7 yet. We hope to ve able to solve the issue soon.
  • Daniel
    Thu, Sep 4, 2014, 5:54 PM
    Do you propose we quickly your block for Moodle 2.7?
    Block for Moodle 2.6 is no correct.
    Thank you in advance.
  • Daniel
    Sun, Sep 7, 2014, 6:11 PM
    Hello there,
    Do you have a test version of your block for Moodle 2.7?
    I am willing to test it on my new site into production.
    Thank you for your work.
    Buenos Dias Aday!
  • Picture of Aday Talavera
    Tue, Sep 9, 2014, 8:11 PM
    The plugin is still compatible with Moodle 2.7. However Moodle has changed is logging internal system, so the old mdl_log table isn't filled with new log entries by default. These log entries are needed by this plugin to calculate course dedication.

    To enable "legacy login" go to Plugins -> Logging -> Manage log stores and ensure that "Legacy log" its enabled. This change will enable logging only after enabling it, so if your course already started, course dedication calculations won't be accurate.

    In the future we will update the plugin to use these new log system to calculate course dedication.
  • Picture of Gary Lyon
    Thu, Sep 11, 2014, 12:34 AM
    Is the list of users below the course statistics only currently enrolled 'students'?
  • Picture of Aday Talavera
    Thu, Sep 18, 2014, 1:07 AM
    Sure, only enrolled students will be in the list
  • Picture of Pasquale Soul
    Sun, Sep 28, 2014, 11:42 PM
    Hi , I was wondering if you made the relative webservice function for the report. My idea is 2 parameters in input course id and userid. If no I think to start this onmy self because have to interact with external application,have you got some advices?
  • Picture of Kyriakos Terzopoulos
    Mon, Oct 6, 2014, 3:41 AM
    Hi all,
    A problem I've had with the supercool dedication block was that I needed to filter the results by group.
    So I have added support for result filtering in my fork of the dedication block using the dropdown table filter (it's under the GPL2 license)
    source for ddtf.js is here:

    My repo with the commit is here:

    You're welcome to try it and let me know if it works for you.
  • Picture of Alan Davis
    Thu, Feb 26, 2015, 1:59 AM

    Does anyone know why the Course Dedication Time = Now? I have 2.8 and had a developer work the bugs. Your help is greatly appreciated. Thanks.
  • Picture of Aday Talavera
    Thu, Feb 26, 2015, 6:03 PM
    @Alan DavisThat is an small bug in the code.
    The upgrade to Moodle 2.8 new logging system has been done and soon I will publish the new version.
  • Picture of Andy McKay
    Thu, Mar 12, 2015, 8:15 PM
    I am running Moodle 2.8.3 and have installed the course dedication block on to a pre-existing course, that users are already enrolled upon and have already completed activities for.
    I have enabled legacy logging but the block is saying there are no participants for the course. Is this an issue relating to running the block on 2.8 or something I'm doing wrong?

    Many thanks
  • Picture of Ramtari Arriaga
    Thu, Mar 19, 2015, 2:50 AM
    Hi Aday, I want to install the block in my Moodle 2.8.3 but i would like to implement the upgrade to Moodle 2.8. When will you publish the new version?

1 2 3
Please login to post comments