Enrolment Timer

Blocks ::: block_enrolmenttimer
Maintained by Learning Works, Jeremy self portraitJeremy FitzPatrick, Mathew May 🇳🇿, Zander Potgieter
Block to show the user their remaining time enrolled in a course with live countdown and lots of settings to customise the display of this timer.
Latest release:
595 sites
70 fans
Current versions available: 2

Enrolment Timer Block

Build Status

This block provides the functionality to display the remaining time a user has in their enrolment period - including a live JavaScript countdown timer. There are many settings to choose from to customise the way this is displayed to the user; in text, with numbers, customisable units and so on.

Emailing functionality is also included, You can enable a setting for students to be notified by email when their enrolment is expiring in a set amount of days (Default 10). Email notifications can also be enabled to congratulate a student on passing the course. This email is sent after the student receives a required grade in the course_total grade.

The plugin has been developed with limited styling to enable the best possible base for theme overrides to align the design with your existing Moodle theme.

Developed by LearningWorks Ltd


Screenshot #0
Screenshot #1
Screenshot #2


Learning Works (Lead maintainer)
Jeremy self portrait
Jeremy FitzPatrick
Mathew May 🇳🇿
Zander Potgieter: Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Fri, Sep 20, 2019, 9:16 AM
    Hi Jamie & others,

    The plugin have been updated to support Moode 3.5+ versions - including the Privacy API.

    Thank you for your support.

  • Sat, Sep 21, 2019, 10:15 AM
    how do i install the block timer because when i add block no block timer appears
  • Sat, Sep 21, 2019, 12:35 PM
    Hi Cerita,

    Please ensure you’re logged in as a student to see the timer appear.

    There’s also a plugin setting that determine if anything is shown when there is no end time set which may affect it - it’s called ”Hide block (No End Date Set)”.

    Hope that helps! smile

  • Thu, Dec 19, 2019, 5:45 PM
    I wonder if there is a way to connect the timer to different activities within a course?
    Thank you
  • Fri, Dec 20, 2019, 5:11 PM

    I wonder whether this plugin could fit our purpose : we would like to make sure that our participants spend at least 3 hours on their course otherwise their CPD fees might not be paid for by their sponsors. The idea would be to have a visual indication of the time one has spent on their course, while giving these people the opportunity to spend more time on the course if they wish to do so.

    Thanks for helping,

  • Tue, Jan 21, 2020, 3:37 AM
    Hi I am using the following php function to calculate and store the enrolment end time in user_enrolments table in my custom plugin.
    // ****** 1 Year from today *****
    $time_end = strtotime("+1 year");
    But instead of showing the enrolment remaining time as 12 months from today, timer calculated 12 months and 24 hours. it means it adds 1 extra day.

    if I subtract 24*60*60 (1 day) from the calculated enrolment end time, anticipating that timer will show enrolment remaining as exactly 12 months, Timer starts showing the remaining time left as 12 months 5 days.

    if I convert $time_end with php date() function to test the date value, it shows the correct date exactly 12 months from today.
    Is it code problem or I am doing something wrong. Any help is appreciated.
  • Wed, Jan 29, 2020, 12:34 PM
    Hi, I've tested the email alert for 4 days for finish student course, but it doesn.t work. Any suggestion?
  • Fri, Jan 31, 2020, 6:04 AM
    Hi @Ricardo, I had an issue similar to the one you'r referring. What i did was to install a different plugin (can't remember the name) to test the trigger itself. I think the solution was suggested by the developers themselves (of this plugin). This allowed me to verify that the trigger was working correctly, but the email was not being delivered by the email server.
  • Thu, Feb 11, 2021, 11:37 PM
    Thanks for this nice timer block! Odd though, I have a enrollment duration set to 90 days, yet the block shows 88 days left to the learner?
  • Sat, Mar 6, 2021, 5:17 PM
    I have the same problem as John Anderson, in that the timer block is showing slightly the wrong number of days. I set an enrolment to 366 days, but when I displayed this as months and days, it displayed too high e.g. 12 months and 5 days. If I changed it to only show days remaining, it showed it 2 days too low - e.g. 364 days. Any help here would be really appreciated, as is an excellent block.
  • Sat, Mar 6, 2021, 11:33 PM
    @Dave Foord - I found if you disable "Force 2 Digits" in the main settings, time will display correctly. Your site /admin/settings.php?section=blocksettingenrolmenttimer
  • Thu, Sep 30, 2021, 1:15 AM
    Hi. I am using the add-on, but the email notification arrives days after the registration expires. The cron runs every one minute. I am using Moodle 3.11. Could it be that it is not working well for this version?
  • Wed, Jan 26, 2022, 5:42 AM
    I'm using this add-on and its great. Thank you.

    I'd like to give my feedback in two possible functions that would be very helpful for the teachers:

    The ability to have the E-Mail Alert Reminders be sent more than once. Right now I can only send one X days before the enrolment ends. I'd like to have reminders every month. Like "You have 4 months remaining, you have 3 months remaining..." and so on.
  • Fri, Feb 11, 2022, 10:38 PM
    Hello. Any chance of this plugin being updated for 3.11? Would be much appreciated.
  • Wed, Mar 9, 2022, 12:54 AM
    Hi, may I ask how can I change the display to only show 3 units? For example, if the user has 2 months 4 weeks and 5 hours left, the minutes and seconds will not show and if the user has 1 week 6 hours 5 minutes left then the seconds will not show. Our courses are usually 12 months, hence, it is quite irritating to the users to see the long month, week, days, hours, seconds.
1 2 3 4 5
Please login to post comments