GithubHelp home page GithubHelp logo

heartforlimburg's Introduction

heartforlimburg

heartforlimburg's People

Contributors

onno-schuit avatar

Watchers

 avatar  avatar  avatar  avatar

heartforlimburg's Issues

Repeat Courses: on course completion, send email with link to opt-in screen

f the student has completed the course (e.g. as registered through a course completion event), a screen should be presented with a checkbox “send me mail about a repeat course”.

Please read about the Moodle event API to accomplish this: http://docs.moodle.org/dev/Events_API

The only tricky thing is: where do we present this screen with the checkbox? There is no dialogue system in Moodle which can be triggered using an event handler. So, we need to send an email instead (and an internal Moodle message). This mail should contain a link to an opt-in screen, containing the checkbox.

Repeat Courses: opt-in screen

There should be an opt-in screen containing a checkbox which the user can check if he wants to sign up for the repeat courses.

wrong constant in access.php file

mod_repeatcourse

Notice: Use of undefined constant CAP_PROHIBITE - assumed 'CAP_PROHIBITE' in /home/onno/php/heart/public_html/mod/repeatcourse/db/access.php on line 36 Notice: Use of undefined constant CAP_PROHIBITE - assumed 'CAP_PROHIBITE' in /home/onno/php/heart/public_html/mod/repeatcourse/db/access.php on line 47 Notice: Use of undefined constant CAP_PROHIBITE - assumed 'CAP_PROHIBITE' in /home/onno/php/heart/public_html/mod/repeatcourse/db/access.php on line 58

Repeat Courses: put strings into language files

Please put all strings into language files and include them through get_string.

For instance, the cron mailer now contains hard coded email texts. Those should be put into the language files.

Repeat Courses: management module

Please use the Soda plugin to create a management module for repeat courses. The module could be named repeatcourses or something like that.

source:
https://github.com/solin-repo/soda

documentation:
http://tech.solin.eu/doku.php?id=moodle:using_soda_to_create_new_moodle_modules

The Repeat Courses management module should allow a Moodle admin user to:

  • Select courses from the "Repeat Courses" category (for your tests, create your own "Repeat Courses" category).
  • Order the courses: move them up or down. The order should be stored in a database table (prepare all your tables in MySQL and then use the xmldbeditor to extract the right xml for the mod/repeatcourses/db/install.xml file).
  • Specify the interval between each course, in days.

Voucher plugin: add support for groups

It should be possible to select a Moodle group for a specific voucher.

In Moodle, each course can have one or more groups (Moodle groups). These groups are used to separate users from each other, or just to make administration easier.

Whenever a voucher is associated with a Moodle group, all users having this voucher should automatically end up in this particular group.

So, a user registers using the voucher code. He is then enrolled in a specific Moodle course. But if the voucher is also associated with Moodle group, the user also ends up in this group.

Voucher: add support for role

Role is now hardcoded as student, should be configurable through plugin.

In other words: it should be possible to associate a voucher code with a role.

$instance->roleid = 5; // STUDENT

Error while trying to open newly installed instance of mod repeatcourse

Notice: Trying to get property of non-object in /home/onno/php/heart/public_html/lib/navigationlib.php on line 1193
Skip to main content
Heart
You are logged in as Admin User (Log out)
Page path
Home
Error reading from database

More information about this error

Debug info: Table 'heart.mdl_repeatcourse_records' doesn't exist

SELECT rc.id AS rcid, rc.maincourseid AS mid, rc.repeatcourse AS rid, mc.fullname, "" AS rcname
FROM mdl_course AS mc LEFT JOIN mdl_repeatcourse_records AS rc ON rc.maincourseid = mc.id
WHERE rc.repeatcourse NOT IN (2) ORDER BY rc.ordering ASC

[array (
)]
Error code: dmlreadexception
Stack trace:
line 441 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 996 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 78 of /mod/repeatcourse/controllers/repeatcourse.php: call to mysqli_native_moodle_database->get_records_sql()
line 209 of /local/soda/class.soda.php: call to repeatcourse_controller->index()
line 191 of /local/soda/class.soda.php: call to soda->perform_action()
line 251 of /local/soda/class.soda.php: call to soda->dispatch()
line 152 of /local/soda/class.soda.php: call to soda->add_layout_and_dispatch()
line 6 of /mod/repeatcourse/index.php: call to soda->display()
Output buffer: Notice: Trying to get property of non-object in /home/onno/php/heart/public_html/mod/repeatcourse/controllers/repeatcourse.php on line 65

Repeat Courses: cron driven script to send out emails and enroll users

Each student has their own “planning” which starts at the moment they check the “Send me mail about repeat courses” checkbox.

A cron driven script should check the planning for each student and send out an invitation mail if necessary. Please keep the text of the mail in the translation files (in other words: use Moodle's get_string function).

The invitation mail should contain a link to the currently active course. The user should be automatically enrolled into this course - by the same cron driven script - once the planning says it's time to start this particular course.

Don't worry about configuring the cron daemon or something, just put the login in a [your_mod_name]_cron function in your mod's lib.php.

Upgrade to Moodle 2.6

Please follow the standard Moodle upgrade procedures to reach version 2.6.

Then adapt the voucher plugin if necessary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.