notifications on local commenting plugin

futuron

Member
Hi guys,

I'm setting up a form where people can ask questions and where others can comment on it.
The notifications for reply-comments on existing comments are working. But i can't figure out how the person who saved the record (and there is an email and user field in the form) can be notified on new comments.
 
I've never used the notification feature, but a quick look at the code tells me the reason that doesn't happen is it isn't coded to do it.

Looks like Rob put something in there for a specific client at some point:

Code:
        // Notify original poster (hack for ideenbus)
        $listModel = $formModel->getlistModel();
        $rowData = $listModel->getRow($row->row_id);

        if (isset($rowData->ide_idea___email_raw) && !in_array($rowData->ide_idea___email_raw, $sentTo))
        {
            $mail->sendMail($this->app->get('mailfrom'), $this->app->get('fromname'), $rowData->ide_idea___email_raw, $title, $message, true);
            $sentTo[] = $rowData->ide_idea___email_raw;
        }

So to make that generic, we'd have to add a new option to the comment plugin, and also tweak the cron notification code.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top