How to show custom user in alert

I have a custom table with more user information and I need to show his name from this table in alert, but have no idea how.

Currently the alert calls his username from XF user table. How to change this $user?

Code:

Код:
{{ phrase('x_has_alerted_you', {
    'user': username_link($user, false, {'defaultname': $fallbackName})
}) }}

Code:

Код:
        $alertRepo->alert(
            $this->purchase->Receiver,
            $this->purchase->Sender->user_id,
            $this->purchase->Sender->username...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ