# DUK-Reminder

Blocks ::: block_dukreminder
Maintained by andreas riepl
A simple block to send out reminders for different tasks from within a course.
Latest release:
69 sites
4 fans
Current versions available: 1

This is a simple block to send out reminders for different tasks like completing a course - it can be sent to selected users in a course and should remind them to finish certain tasks like course completion based upon criteria defined for course completion.

Criteria are:

all: reminder is sent out to all users of a course. This can be used in combination with sending out reminders at a fixed date.

course-completion: all users are reminded at a fixed date or with a relative date to complete their course

course-inscription: only possible in combination with relative time. all course-users are notified if course inscription dates back longer than the chosen time.

course-completion criteria: tasks like quizzes, etc. can be defined as criteria for course completion. At an absolute date all those are  notified that have not completed these tasks. Wit a relative date those are notified, that have fulfilled the criterias but where the completion status lies back longer than the given time.

1) Save the zip file somewhere onto your local computer and extract all the files
2) Transfer the folder dukreminder to the blocks-directory of Moodle

### Contributors

• Thu, Sep 24, 2015, 4:03 AM
Hello Steven, actually nowhere - an additional field is then displayed where emails, separated by comma can be entered - these people get the messages then,
regards
Andreas
• Wed, Oct 7, 2015, 8:42 AM

Would there be a way to link this checkbox to the "parent" user (see https://docs.moodle.org/28/en/Parent_role ) that has been allocated to a user?
• Wed, Oct 7, 2015, 9:36 AM
Or perhaps link it to 'managersemail' the same way the Face to Face plugin does?

Line 61 & 62:

// Name of the custom field where the manager's email address is stored.
define('MDL_MANAGERSEMAIL_FIELD', 'linemanager');

Line 2262 to 2275:

/**
* Return the email address of the user's manager if it is
* defined. Otherwise return an empty string.
*
* @param integer $userid User ID of the staff member */ function facetoface_get_manageremail($userid) {
global $DB;$fieldid = $DB->get_field('user_info_field', 'id', array('shortname' => MDL_MANAGERSEMAIL_FIELD)); if ($fieldid) {
return $DB->get_field('user_info_data', 'data', array('userid' =>$userid, 'fieldid' => \$fieldid));
} else {
return ''; // No custom field => no manager's email.
• Thu, Oct 8, 2015, 12:27 AM
Hello Steven, manager might be confusing in our context it refers to external users which are actually not Moodle users,
regards Andreas
• Fri, Oct 9, 2015, 7:57 AM
Ok now I understand how the checkbox works. Unfortunately it's not going work for us as we need more targeted, user specific reminders sent. Thanks for sharing anyway, it's a much needed block.
• Tue, Dec 1, 2015, 7:53 PM
Will this work with moodle 2.6 and moodle 2.9??
• Wed, Dec 2, 2015, 1:21 AM
yes, it should, if you have any problems, please let us know, andreas
• Fri, Jan 15, 2016, 11:19 PM
I cannot install on 2.5 because the "version" of the plugin does not match and causes an error. Do you have a way to fix this and (per your previous response) will it work on 2.5?
• Sun, Jan 29, 2017, 4:04 AM
Hello Andreas and others.
Has anyone managed to make the module work on Moodle 3.1.2 ?
• Tue, Jan 31, 2017, 6:38 PM
hi juliano, the block should work under 3.1
have found any issues?
• Tue, Jan 31, 2017, 9:27 PM
Hi Daniel! It doesn’t return any error messages. Just won’t send any email. Other modules are sending emails normally, such as the forum.
I’m looking for error logs on linux, but still nothing.

Does someone has the documentation? The link is broken. (And maybe in English?)
• Mon, Jul 22, 2019, 11:07 AM
Hello Andreas,
Awesome block, thanks for sharing this block, I just recently started using the block, everything works fine, but html markup tags are visible in reminders (email).
For example:

thanks for taking this course

Any suggestions on how to remove it? Thanks.
• Tue, Jul 30, 2019, 8:45 PM
Hello Ezra, I have forwarded this to a developer, we will take a look at it,

regards Andreas
• Thu, Oct 10, 2019, 9:26 PM
Hello Andreas,

I will like to know if the issue raised above (HTML markup tags in email) has been resolved. thanks.
• Wed, Oct 16, 2019, 8:06 PM
Hello Ezra, I will put this on the agenda for a coding review this coming week and will let you know, regards Andreas