Moodle plugins directory: Enrolment Timer | Moodle.org
Enrolment Timer
Enrolment Timer Block
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
// ****** 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.
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.
Thanks!!
Is there any chance this plugin will be updated for Moodle 4.0+? We love using this but it is having some issues now we have moved to Moodle 4.0
Can we use this Plugin on Moodle 3.11
Also, can we customize the look and feel of this Enrollment timer? Can we customize the Timer Format?
Please advise