cedivad
Active member
I really don't get it. Where can i create my custom "template" for the alert info?
Here you can see that the last 3, made from me, are empthy.
I've create my alertHandler file, but in it i don't get what i have to edit
Here it's the file:
Thank you a lot!
Here you can see that the last 3, made from me, are empthy.
I've create my alertHandler file, but in it i don't get what i have to edit
Here it's the file:
Code:
<?php
/**
* Handler class for user profile post alerts
*
* @package XenForo_Alert
*/
class tfTip_AlertHandler_tfTipPost extends XenForo_AlertHandler_DiscussionMessage
{
/**
* Fetches related content (user profile posts) by IDs
*
* @param array $contentIds
* @param XenForo_Model_Alert $model Alert model invoking this
* @param integer $userId User ID the alerts are for
* @param array $viewingUser Information about the viewing user (keys: user_id, permission_combination_id, permissions)
*
* @return array
*/
public function getContentByIds(array $contentIds, $model, $userId, array $viewingUser)
{
return $model->getModelFromCache('tfTip_Model_ProfilePost')->getProfilePostsByIds($contentIds, array(
'join' => XenForo_Model_ProfilePost::FETCH_USER_RECEIVER
));
}
}
Thank you a lot!