Hello, franponce87! =)
Our company create little modification of FO for this goal. May be you can take some code from us.
Ok. For easier updates I'll try create independence plugin.
1. application/models/project_tasks_late/ProjectTasksLate.class.php
Create new method getAllLateTasks for get all overdue tasks and extends ProjectTasks class
2. application/hooks/late_reminders_hook.php
Create function send_late_reminders what notify all subscribers about overdue tasks.
This function has some specific operations:
- We set this cron event at midnight with period 24 hours. After server reboot cron evens time drop at booting time =(( But we need receive mail at every morning. May be create option for every cron jobs and remove this moment.
- We do not need receive mail on weekend .. so notifications send on first 5 days on week.
After copy this files you must create event job in DB .. I don't know how to execute it automatically =(
You must run query like this:
INSERT INTO og_cron_events (`id`, `name`, `recursive`, `delay`, `is_system`, `enabled`, `date`) VALUES ('9', 'send_late_reminders', '1', '0', '0', '1', '0000-00-00 00:00:00');
Add translate for new phrases.
After this while run cron jobs you receive email about overdue tasks.
If you want see days in mail subject you must apply patch Notifier.class.diff and add {4} into phrases translate, like this
'late reminder notification task' => '{3}: Task "{0}" is overdue by {4} d!',
I hope I helped you $)