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:
535 sites
69 downloads
72 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


Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

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

Comments

  • David Mudrák
    Tue, 10 June 2014, 3:32 PM
    Thanks for the new version. Please note that the correct prefix for the functions and classes is the full frankestyle name, not just the block name. So in your case, functions should read like block_enrolmenttimer_get_possible_units() and not enrolmenttimer_get_possible_units(). I am going to approve your block now with the hope you would address this issue in a future version. Thanks in advance for it. You are cleared to land now, welcome to Plugins directory!
  • Aaron Leggett
    Wed, 11 June 2014, 4:24 AM
    Thanks for you help David, Have update the function names as suggested.
  • Germán and Temudgin
    Wed, 11 June 2014, 11:36 PM
    Hi Aaron,
    I think that this plugin is great, but it would be even better for Moodle users of languages other than English if some English language strings, which are currently hard-wired, were declared as variables, so that AMOS translators (as myself) could make a better translation to other languages.

    The currently hard-wired English strings are:

    The choices for viewoptions: 'years, month, weeks, days, minutes seconds'.
    The default text option for enrolmentemailsubject: 'Enrolment Expiring'
    The default text for completionemailsubject: 'Course Completed'

    Thanks in advance for your help.

  • Aaron Leggett
    Thu, 12 June 2014, 9:44 AM
    Hey German,
    Please find the latest release that incorporates your reqested changes. Thanks for pointing them out to me!

    Cheers
  • Germán and Temudgin
    Fri, 13 June 2014, 9:48 AM
    Hi Aaron,

    Thanks for upgrading so fast this plugin. Now it will be even more friendly for Moodle users from many languages. I have updated this plugin translation for mexican spanish in AMOS.

    Cheers
  • Ralf Brauckhoff
    Thu, 7 Aug 2014, 5:26 AM
    Hi,
    thanks for this block. I have updated to the latest version and now I have this message at the top of the page:

    array(7) { ["years"]=> int(31536000) ["months"]=> int(2592000) ["weeks"]=> int(604800) ["days"]=> int(86400) ["hours"]=> int(3600) ["minutes"]=> int(60) ["seconds"]=> int(1) }

    The block is still showing the remaining time. I am working with Moodle 2.6.1+ (Build: 20140117).
    Thanks for your work.
    Ralf
  • Aaron Leggett
    Thu, 7 Aug 2014, 5:45 AM
    Hi Ralf,
    Thanks for finding that bug. I have found a dump or a variable I had forgotten to remove.
    If you re-download todays version of the block as below
    - Moodle 2.6.2+ (Build: 20140807) (2014080700)
    and install it in your Moodle instance, you should no longer see the output.

    Cheers
    Aaron
  • Ralf Brauckhoff
    Thu, 7 Aug 2014, 6:31 AM
    Hi,
    this was the fastest answer I ever get smile
    And yes, it is working now. Thanks for all.
    Ralf
  • Calvin Young
    Fri, 23 Jan 2015, 5:14 PM
    Hi,
    I can't seem to get the email notifications from this block to work. Has anyone else had this problem or can suggest a possible fix?
  • Marek Kancelarek
    Thu, 29 Jan 2015, 4:45 PM
    Hi,
    are there any plans to add Moodle 2.8 support to this plugin? Or is it fully compatible and just the compatibility info has not been upgraded yet?
  • Aaron Leggett
    Mon, 2 Feb 2015, 10:10 AM
    Hi Calvin,
    Can you please check your PHP error logs and let me know if there are any errors there. Also please advise your moodle version

    Hi Marek,
    I have now updated and tested the plugin in Moodle 2.8. Enjoy!
  • Marek Kancelarek
    Mon, 2 Feb 2015, 5:34 PM
    Thank you!
  • Yogesh Nahar
    Fri, 27 Feb 2015, 7:19 PM
    Hi Aaron,

    Thank you for the latest version. I tested it in my environment but am getting an error when the student tries to access the course after the admin adds the block to the course page. My shared hosting environment is:
    Moodle 2.8.1 (Build: 20141113)
    MySQL 5.5.41.37.0
    PHP 5.4.34

    Here is the debug info. Please advice.

    Error reading from database
    Debug info: Table 'webideat_mo3405.mdl_user_enrolments' doesn't exist

    SELECT ue.userid, ue.id, ue.timestart, ue.timeend
    FROM mdl_user_enrolments ue
    JOIN mdl_enrol e on ue.enrolid = e.id
    WHERE ue.userid = ? AND e.courseid = ?

    [array (
    0 => '3',
    1 => '2',
    )]
    Error code: dmlreadexception
    Stack trace:
    line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
    line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 85 of /blocks/enrolmenttimer/locallib.php: call to mysqli_native_moodle_database->get_records_sql()
    line 41 of /blocks/enrolmenttimer/locallib.php: call to block_enrolmenttimer_get_enrolment_records()
    line 197 of /blocks/enrolmenttimer/block_enrolmenttimer.php: call to block_enrolmenttimer_get_remaining_enrolment_period()
    line 288 of /blocks/moodleblock.class.php: call to block_enrolmenttimer->get_content()
    line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 962 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1014 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 392 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
    line 39 of /theme/lambda/layout/columns3.php: call to core_renderer->standard_head_html()
    line 915 of /lib/outputrenderers.php: call to include()
    line 845 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 245 of /course/view.php: call to core_renderer->header()
  • Yogesh Nahar
    Sat, 28 Feb 2015, 8:09 PM
    Looks like the table it was looking for was mdl_..... and my tables are named pdc_.....! Issue resolved!

    Thank you for the work on this block. Great addition for students to keep track of their enrollment.

    Cheers,
    Yogesh
  • Aaron Leggett
    Thu, 19 Mar 2015, 9:45 AM
    Hi Yogesh,
    Thanks for reporting this issue and pointing out the bug! Its great to hear you managed to get it fixed also. I have now updated the source code so feel free to now download the new version with the fix.

    Cheers

    Aaron
Please login to post comments