AndyB
Well-known member
Hello,
In an add-on I'm developing I would like to send a custom alert.
The main PHP code:
and the template:
When I check for the Alerts the red balloon shows a new alert, yet there is no alert message. What am I doing wrong?
Thank you.
In an add-on I'm developing I would like to send a custom alert.
The main PHP code:
PHP:
$alertUserId = 1;
$userId = 2;
$username = 'test';
$contentType = 'trader';
$contentId = 1001;
$action = 'insert';
$extraData = array();
// send alert
XenForo_Model_Alert::alert($alertUserId, $userId, $username, $contentType, $contentId, $action, $extraData);
and the template:
When I check for the Alerts the red balloon shows a new alert, yet there is no alert message. What am I doing wrong?
Thank you.