FoxSecrets
Active member
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? Where does it come from?
Currently the alert calls his username from XF user table. How to change this $user? Where does it come from?
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,
'user',
$this->purchase->Receiver->user_id,
$alertType,
[]
);
Last edited: