Resource icon

MobileRead Reported Posts 1.11

No permission to download


Well-known member
AlexT submitted a new resource:

MobileRead Reported Posts - Have reported items automatically posted in a private discussion node

Reported Posts tries to mimic the vBulletin behavior when items (posts, profile posts, conversation messages) get reported.

View attachment 44380

Currently it does the following:
  • (Required) Allow you to pick a dedicated private forum node where all reported items are being posted in (under Admin CP -> Options -> Messages)
  • (Optionally) Email all moderators who have access to that private node when a new item is being reported
  • (Optionally) Automatically watch the...

Read more about this resource...
Can we assign the account that posts the report and assign a thread prefix to it?
Can we assign the account that posts the report and assign a thread prefix to it?

Not yet (as it isn't a requirement for my installation), though either should be easy to implement. I prefer to have the report post/thread appear to be posted by the person who reported the item. Any reason not to?

just noticed however it has an error when using it with conversation essentials add-on enabled

#0 *snip*library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 *snip*library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 *snip*library/Zend/Db/Adapter/Abstract.php(632): Zend_Db_Adapter_Abstract->query('UPDATE `convess...', Array)
#3 *snip*library/XenForo/DataWriter.php(1607): Zend_Db_Adapter_Abstract->update('convess', Array, 'conversation_id...')
#4 *snip*library/XenForo/DataWriter.php(1576): XenForo_DataWriter->_update()
#5 *snip*library/XenForo/DataWriter.php(1381): XenForo_DataWriter->_save()
#6 *snip*library/ConvEss/Model/Conversation.php(2238): XenForo_DataWriter->save()
#7 *snip*library/ConvEss/ControllerPublic/Conversation.php(351): ConvEss_Model_Conversation->processLastReadDate(14627, Array)
#8 *snip*library/XenForo/FrontController.php(310): ConvEss_ControllerPublic_Conversation->actionView()
#9 *snip*library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 *snip*/index.php(13): XenForo_FrontController->run()
#11 {main}

just noticed however it has an error when using it with conversation essentials add-on enabled

Hmm, it appears the error is triggered when you view a conversation (Conversation->actionView())? It doesn't make sense since Reported Posts doesn't extend any method that is related to viewing conversations. It is only loaded when something is being reported (as you can verify in ReportedPosts/Listener/Proxy.php).
AlexT updated MobileRead Reported Posts with a new update entry:

Set newly reported items as "resolved" in the internal xF report queue

This update will automatically set any newly reported item as "resolved" in the internal xF report queue. It won't affect the functionality of this add-on, but it will prevent a bug in xF that is described here:

Read the rest of this update entry...
I get this error when trying to report a post:

The following error occurred:

Undefined index: 198
  1. XenForo_Application::handlePhpError() in MobileRead/ReportedPosts/Model/Report.php at line 137
  2. MobileRead_ReportedPosts_Model_Report->reportContent() in XenForo/ControllerPublic/Post.php at line 431
  3. XenForo_ControllerPublic_Post->actionReport() in XenForo/FrontController.php at line 310
  4. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  5. XenForo_FrontController->run() in /xxxxxxx/community/index.php at line 13

The post actually gets reported (so the topic gets created) but this error makes the whole thing unusable - any ideas what it is?
Hmm, thanks for the report. This seems to occur in the routine responsible for setting the reported thread on a moderator's watch list if that option is enabled. Could you try the following. In the file MobileRead/ReportedPosts/Model/Report.php, in line 137:

if (!$nodePermissions[$this->_configNodeId][$viewingUser['permission_combination_id']])

if (!isset($nodePermissions[$this->_configNodeId][$viewingUser['permission_combination_id']]))
is it working with 1.2?
Yes, it's working. I did a few modification for my own needs and while doing this also optimized it for 1.2, but haven't uploaded it here yet. As @Richard.r correctly pointed out, 1.2 includes the option to report to a forum. It is not as advanced, though, since it doesn't include the alerting features and/or the option to send repeated reports of the same post to the same report thread.
Top Bottom