ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 27,780
- Points
- 823
Reputation:
I have setup the following content type for the alert handler class:
I then have this protected php function:
PHP:
Read more
Continue reading...

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
Continue reading...