RSS Feed/News Using the alert handler...

Status
Not open for further replies.

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:

1641423288110.webp

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...
 
Status
Not open for further replies.
Top