There absolutely HAS to be this functionality. All the alerts when logged in, all the awesomeness of the spam cleaner means absolutely NOTHING if I'm not notified that something has been reported when I'm offline.
Upvote
73
.... if I'm not notified that something has been reported when I'm offline.
Unless you have a blackberry or other such phones and get emails as they arrive, like I do which would then prompt me to check the forum.Just for my understanding: when you're offline you can't receive/read your mails anyway? And when you're online to receive them, one might as well have a look at the same time then at the site where the reports are? I guess I miss something in my thinking pattern, since more people are in need of this? It's late... who enlightens this old brain?
Unless you have a blackberry or other such phones and get emails as they arrive, like I do which would then prompt me to check the forum.
i dont log into the admin account unless i need to admin.Just for my understanding: when you're offline you can't receive/read your mails anyway? And when you're online to receive them, one might as well have a look at the same time then at the site where the reports are? I guess I miss something in my thinking pattern, since more people are in need of this? It's late... who enlightens this old brain?
What *does* happen when something is reported?
But this shouldn't happenme and everyone in the mods group.
But this shouldn't happen
Only people allowed to mange the reported content should get the mail and not every mod even he have no perm to manage the post because he's mod in an other category
Any plans to release this as an add-on?I just coded this myself. Me and the Super Mods will get an email about a new reported item. ALL GOOD!
Any plans to release this as an add-on?
We rely quite heavily on notifications of reported posts in our vB set-up. It's useful because if someone is not online and its out of hours one of us can always jump in and deal with something real quick. Weekends as a prime example.
I too would like to see this feature implemented as standard. (should be relatively straight forward, right?)
Please doI am not really good at creating plug-ins, but I will post how I did it here. It is actually pretty easy.![]()
<?php
class EmailReport_Listener
{
public static function extendModel($class, array &$extend)
{
if ($class == 'XenForo_Model_Report')
{
$extend[] = 'EmailReport_Report';
}
}
}
<?php
class EmailReport_Report extends XenForo_Model_Report
{
public function reportContent($contentType, array $content, $message, array $viewingUser = null)
{
$reportId = parent::reportContent($contentType, $content, $message, $viewingUser);
if ($reportId == 0)
{
return false;
}
$users = $this->fetchAllKeyed('SELECT * FROM xf_user WHERE is_admin = 1', 'user_id');
$report = $this->getReportById($reportId);
$reportComments = $this->getReportComments($reportId);
foreach ($users as $user)
{
$params = array(
'user' => $user,
'report' => $report,
'reportComments' => $reportComments
);
$mail = new XenForo_Mail('new_item_reported', $params, $user['language_id']);
$mail->send($user['email'], $user['username']);
}
}
}
{$user.username},
A new item has just been reported.
To view the current report click on the following link:
{$xenOptions.boardUrl}/reports/{$report.report_id}/
<p>{$user.username},</p>
<p>A new item has just been reported.</p>
<p>
To view the current report click on the following link:<br />
<a href="{$xenOptions.boardUrl}/reports/{$report.report_id}/">{$xenOptions.boardUrl}/reports/{$report.report_id}/</a>
</p>
We use essential cookies to make this site work, and optional cookies to enhance your experience.