New features:
Note: if you are upgrading from Email Notice on Reports (version 1.1 or below), install this add-on as a new add-on and it will automatically uninstall that add-on.
- Improved support for XenForo 1.2 and better compatibility with other add-ons.
I'm happy to add support for this, but it would be a paid job. Please PM me if you are able to contribute.Excellent addition.
Although I've run into a bit of a snag.
We don't use the XF Report system, we instead use the inbuilt option to have reports create a thread in a private mod forum.
This plugin doesn't take that into account, so the emails are incorrect.
Looking at the original Model/Report.php within xenForo, the function 'reportContent' (which this plugin extends) drops into an if statement (If the report is going into a forum), ending with a
return $threadDw->save();
How would I get the variables out of that function so I can pass them to the email template?
I know you can't get variables from a parent function, so that's out.
The plugin calls the following code
parent::reportContent($contentType, $content, $message, $viewingUser);
and passes the result into a reportId, then passes that reportId to the getReportById function.
This won't work due to our reports going into threads.
Does anyone have any idea how to get round this? Anyone have any idea what I'm going on about?
No issues as far as I am aware.Also, has anyone tested this to work with 1.3?
Would you be willing to make a small contribution for this? Perhaps a donation to the Waindigo Foundation?Could you please incorporate ManOnDaMoon extra information into the mail, especially the Node information, it would help the moderators know if the mail is about "their" forum. Thank you.
http://xenforo.com/community/threads/email-reports-by-waindigo.28419/#post-389852
'reportedThread' => $contentInfo['thread_title'],
'reportedNode' => $contentInfo['node_title'],
'reportedContent' => $contentInfo['message']);
New features:
- Now includes separate email template for posts reported, including node title and thread title.
We use essential cookies to make this site work, and optional cookies to enhance your experience.