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).

Important bug with course group mode

Please review group mode of the course. You won't be able to view students dedication when groups are enabled and students aren't assigned to a group.

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.

Alternatively you can download new 2.7 / 2.8 beta version from this link. This version uses new Moodle logging system and doesn't need to enable legacy logging, but hasn't been tested properly.


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.


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 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?

  • Picture of Alberto Brandi
    Sun, Apr 19, 2015, 5:17 PM
    hello i installed this block enabled legacy but not appear the course dedication configuration (3rd screenshot) and appear internal error
    i have moodle 2.8 can you help me please???
    @Andy McKay how do you install it?

    thanks to all
  • Picture of Aday Talavera
    Mon, Apr 20, 2015, 5:01 PM
    Hi everyone,

    I have been really busy latest month and didn't have enough time to upload 2.7/2.8 upgraded version. This version uses correctly new Moodle log system and legacy login isn't needed to be enabled.

    You can download new version from here until I publish it here.
  • Picture of Alberto Brandi
    Wed, Apr 22, 2015, 4:18 AM
    Hi Aday in my report i have only 0 0 0
  • Picture of cesar teixeira
    Mon, Sep 7, 2015, 5:14 AM
    Hi Aday.

    Do you have any idea about releasing a compatible version to 2.9?

    I'm already running version 2.9 and your course dedication block would be very useful.

    Good work, your block is very good and and useful to many of us.

    Best regards.

    César Teixeira
  • Picture of William Kane
    Tue, Dec 1, 2015, 2:05 AM
    I was trying to add this to my Moodle 2.8 server, and I keep getting the same error: Invalid Plugin Name.
    Help suggests I need to give the root directory.
    Any suggestions?
  • Picture of Aday Talavera
    Tue, Dec 1, 2015, 3:18 AM
    The plugin should be installed in blocks/dedication folder.
  • Picture of Huseyn Hoca
    Mon, Feb 1, 2016, 10:58 PM
    Thank you so much Aday.
  • Picture of Joseph Liaw
    Tue, Apr 12, 2016, 9:44 PM
    THANK YOU Aday for this amazing plugin! Extremely useful for many classroom teachers, and very helpful for the K-12 sector where having this type of data is helpful when conversing with parents....turns the detailed logs of Moodle into useable data to see how much time a student has invested, their work habits, and comparison to course average which is very helpful when coaching / mentoring students....keep up the great work!!!
1 2 3 4
Please login to post comments