Lee
Guest
Member
I have setup the following content type for the alert handler class:

I then have this protected php function:
PHP:
Read more

I then have this protected php function:
PHP:
Code:
protected function sendAlert($alertType, $to, $fromUser)
{
/* Load the Alert Repo */
$alertRepo = $this->repository('XF:UserAlert');
$alertRepo->alert(
$to,
$fromUser->user_id,
$fromUser->username,
'tls_thoughts',
'',
$alertType,
[]...
Read more