Feng Forum

Support => How To's => : supadoctor September 13, 2010, 07:09:31 AM

: Automatic notifications about overdue tasks
: supadoctor September 13, 2010, 07:09:31 AM
 I't possible to send automatically notifications about overdue tasks? How?
: Re: Automatic notifications about overdue tasks
: franponce87 September 13, 2010, 04:20:33 PM
I am afraid to let you know that right now that feature does not exist but we may take into account for our next version!
Greetings!
: Re: Automatic notifications about overdue tasks
: brg September 16, 2010, 05:29:36 AM
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 $)
: Re: Automatic notifications about overdue tasks
: supadoctor September 16, 2010, 08:47:30 AM
It would be great if someone from FO admins include the feature in next version!
: Re: Automatic notifications about overdue tasks
: franponce87 September 17, 2010, 02:48:08 PM
Thanks a lot for your contribution brg :)

We will be looking at it into detail as soon as we can, so we may add it for a future version!

Keep up the good work!
Best,
Francisco
: Re: Automatic notifications about overdue tasks
: conrado September 04, 2013, 04:05:51 PM
This is already available in Feng Office 2.0! :)
: Re: Automatic notifications about overdue tasks
: steveg September 07, 2013, 08:08:39 PM
Conrado - how do we activate in 2.0?  I must have missed this somewhere..

Thanks!
: Re: Automatic notifications about overdue tasks
: franponce87 September 17, 2013, 12:19:37 PM
This does work correctly in Feng Office 2, whereas there was a bug in one of the 1.7.X versions.
If this does not work correctly, it is because of your settings.
Please bear in mind you can get in touch with our experts if needed be :)

Best regards,
Francisco