Report Reasons

Report Reasons 1.1.2

No permission to download
One thing I would love to see is to let the reporter enter suggested actions. For example:
Report Reason: Wrong Thread
Suggested Action: Move Post
Target URL: https://xenforo.com/community/threads/report-reasons.177888/

Of course this would need to be something the admin can decide to use or not. It would have the following benefits:
  1. Staff gets a better idea what the reporter wants.
  2. In case of something that need needs to be moved the staff will know where it needs to be moved to.
  3. It allows for additional functionality to automatically accept & process the suggested actions with a single click. Which would reduce moderating workload significantly. That is something I would like to discuss with @Xon once your addon has suggested actions.
 
Last edited:
Report reasons for a specific content type would be useful to have. For example if someone reports a review, then the reasons will be very different from reporting a forum post or a media gallery image.

Having groups/sets of report reasons and applying these to content types would be a nice way to approach this.
 
Getting following error with "Report post notice"

Screenshot 2020-08-04 070945.webp

PHP:
#0 src/vendor/composer/ClassLoader.php(444): XF::handlePhpError(2, '[E_WARNING] Dec...', '/home/gamibelc/...', 62, Array)
#1 src/vendor/composer/ClassLoader.php(444): include()
#2 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/gamibelc/...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('TickTackk\\Repor...')
#4 [internal function]: spl_autoload_call('TickTackk\\Repor...')
#5 src/XF/Extension.php(172): class_exists('TickTackk\\Repor...')
#6 src/XF/App.php(2781): XF\Extension->extendClass('XF\\ControllerPl...', NULL)
#7 src/XF/Mvc/Controller.php(646): XF\App->extendClass('XF\\ControllerPl...')
#8 src/XF/Pub/Controller/Post.php(336): XF\Mvc\Controller->plugin('XF:Report')
#9 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Post->actionReport(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Report', Object(XF\Mvc\RouteMatch), Object(NF\GiftUpgrades\XF\Pub\Controller\Post), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\GiftUpgrades\XF\Pub\Controller\Post), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2270): XF\Mvc\Dispatcher->run()
#14 src/XF.php(417): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
 
Getting following error with "Report post notice"


PHP:
#0 src/vendor/composer/ClassLoader.php(444): XF::handlePhpError(2, '[E_WARNING] Dec...', '/home/gamibelc/...', 62, Array)
#1 src/vendor/composer/ClassLoader.php(444): include()
#2 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/gamibelc/...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('TickTackk\\Repor...')
#4 [internal function]: spl_autoload_call('TickTackk\\Repor...')
#5 src/XF/Extension.php(172): class_exists('TickTackk\\Repor...')
#6 src/XF/App.php(2781): XF\Extension->extendClass('XF\\ControllerPl...', NULL)
#7 src/XF/Mvc/Controller.php(646): XF\App->extendClass('XF\\ControllerPl...')
#8 src/XF/Pub/Controller/Post.php(336): XF\Mvc\Controller->plugin('XF:Report')
#9 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Post->actionReport(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Report', Object(XF\Mvc\RouteMatch), Object(NF\GiftUpgrades\XF\Pub\Controller\Post), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\GiftUpgrades\XF\Pub\Controller\Post), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2270): XF\Mvc\Dispatcher->run()
#14 src/XF.php(417): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
You would need to ask @AndyB to change the signature for setupReportCreate to match that of XenForo.
 
This doesn't work when the reports are going to a forum instead of the report centre, right?
 
@TickTackk: I'm still not be able to see the report reason when the reports are going to a thread. Is this a bug? Where should the reason appear? In the title or the thread?
 
Top Bottom