Warning Improvements by Xon

Warning Improvements by Xon 2.9.5

No permission to download
Hi, can you please explain a bit more the expire feature for a single warning?
How does it work and how to enable?
 
Expiring a warning is just standard XenForo functionality. The expire 'warning actions' is fairly simple, and is related to standard xenforo warnings and warning actions.
 
Is it possible to put the user note from the Warning Acknowledgements add-on into the Warning_Summary_Message phrase?
 
You should be able to use the replaceable {sv_user_note}, as it automatically exposes every field on the xf_warning table to that phrase. Which has been renamed to Warning_Summary.Message in later versions.
 
You should be able to use the replaceable {sv_user_note}, as it automatically exposes every field on the xf_warning table to that phrase. Which has been renamed to Warning_Summary.Message in later versions.
Thanks, I didn't realize the entire warning table works in it.
 
Does this addon restrict moderators to only delete warning that they issued ?
Actually, the delete all warning option allow mods to delete warning where they do not have any permission, which is a little annoying.
 
Hi, can you please explain a bit more the expire feature for a single warning?
How does it work and how to enable?


I guess it's an accumulated of penalty points within certain period of time. e.g. when you've been warned a pre-defined N times within a month, you may got ban to reply automatically.

I'm not sure yet. Still studying the whole thing.
 
I have some problems with the update
  • TypeError: Argument 3 passed to XF\Service\Conversation\Pusher::setInitialProperties() must be an instance of XF\Entity\User, null given, called in /var/www/....../httpdocs/src/XF/Service/PusherTrait.php on line 45
  • src/XF/Service/Conversation/Pusher.php:30
Stack Trace
#0 src/XF/Service/PusherTrait.php(45): XF\Service\Conversation\Pusher->setInitialProperties(Object(XF\Entity\ConversationMessage), 'create', NULL) #1 src/XF/Container.php(270): XF\Service\Conversation\Pusher->__construct(Object(XF\Pub\App), Object(SV\ReportImprovements\XF\Entity\User), Object(XF\Entity\ConversationMessage), 'create', NULL) #2 src/XF/App.php(1570): XF\Container->createObject('XF\\Service\\Conv...', Array) #3 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\Conv...', Array, Object(XF\Container)) #4 src/XF/App.php(2776): XF\Container->create('service', 'XF:Conversation...', Array) #5 [internal function]: XF\App->service('XF:Conversation...', Object(SV\ReportImprovements\XF\Entity\User), Object(XF\Entity\ConversationMessage), 'create', NULL) #6 src/XF/Service/AbstractService.php(77): call_user_func_array(Array, Array) #7 src/XF/Service/Conversation/Notifier.php(129): XF\Service\AbstractService->service('XF:Conversation...', Object(SV\ReportImprovements\XF\Entity\User), Object(XF\Entity\ConversationMessage), 'create', NULL) #8 src/XF/Service/Conversation/Notifier.php(58): XF\Service\Conversation\Notifier->_sendNotifications('create', Array, Object(XF\Entity\ConversationMessage)) #9 src/XF/Service/Conversation/Creator.php(254): XF\Service\Conversation\Notifier->notifyCreate() #10 src/addons/SV/WarningImprovements/XF/Service/User/Warn.php(104): XF\Service\Conversation\Creator->sendNotifications() #11 src/XF.php(479): SV\WarningImprovements\XF\Service\User\Warn->SV\WarningImprovements\XF\Service\User\{closure}() #12 src/addons/SV/WarningImprovements/XF/Service/User/Warn.php(105): XF::asVisitor(Object(SV\ReportImprovements\XF\Entity\User), Object(Closure)) #13 src/addons/SV/ReportImprovements/XF/Service/User/Warn.php(82): SV\WarningImprovements\XF\Service\User\Warn->_save() #14 src/XF/Service/ValidateAndSavableTrait.php(40): SV\ReportImprovements\XF\Service\User\Warn->_save() #15 src/XF/ControllerPlugin/Warn.php(41): XF\Service\User\Warn->save() #16 src/addons/SV/WarningImprovements/XF/ControllerPlugin/Warn.php(39): XF\ControllerPlugin\Warn->actionWarn('post', Object(SV\ReportImprovements\XF\Entity\Post), '/posts/5146287/...', Array) #17 src/addons/SV/WarningAcknowledgement/XF/ControllerPlugin/Warn.php(25): SV\WarningImprovements\XF\ControllerPlugin\Warn->actionWarn('post', Object(SV\ReportImprovements\XF\Entity\Post), '/posts/5146287/...', Array) #18 src/addons/SV/ReportImprovements/XF/ControllerPlugin/Warn.php(117): SV\WarningAcknowledgement\XF\ControllerPlugin\Warn->actionWarn('post', Object(SV\ReportImprovements\XF\Entity\Post), '/posts/5146287/...', Array) #19 src/XF/Pub/Controller/Post.php(404): SV\ReportImprovements\XF\ControllerPlugin\Warn->actionWarn('post', Object(SV\ReportImprovements\XF\Entity\Post), '/posts/5146287/...', Array) #20 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Post->actionWarn(Object(XF\Mvc\ParameterBag)) #21 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Warn', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Post), NULL) #22 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Post), NULL) #23 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #24 src/XF/App.php(2184): XF\Mvc\Dispatcher->run() #25 src/XF.php(391): XF\App->run() #26 index.php(20): XF::runApp('XF\\Pub\\App') #27 {main}
 
I have some problems with the update

Stack Trace
#0 src/XF/Service/PusherTrait.php(45): XF\Service\Conversation\Pusher->setInitialProperties(Object(XF\Entity\ConversationMessage), 'create', NULL) #1 src/XF/Container.php(270): XF\Service\Conversation\Pusher->__construct(Object(XF\Pub\App), Object(SV\ReportImprovements\XF\Entity\User), Object(XF\Entity\ConversationMessage), 'create', NULL) #2 src/XF/App.php(1570): XF\Container->createObject('XF\\Service\\Conv...', Array) #3 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\Conv...', Array, Object(XF\Container)) #4 src/XF/App.php(2776): XF\Container->create('service', 'XF:Conversation...', Array) #5 [internal function]: XF\App->service('XF:Conversation...', Object(SV\ReportImprovements\XF\Entity\User), Object(XF\Entity\ConversationMessage), 'create', NULL) #6 src/XF/Service/AbstractService.php(77): call_user_func_array(Array, Array) #7 src/XF/Service/Conversation/Notifier.php(129): XF\Service\AbstractService->service('XF:Conversation...', Object(SV\ReportImprovements\XF\Entity\User), Object(XF\Entity\ConversationMessage), 'create', NULL) #8 src/XF/Service/Conversation/Notifier.php(58): XF\Service\Conversation\Notifier->_sendNotifications('create', Array, Object(XF\Entity\ConversationMessage)) #9 src/XF/Service/Conversation/Creator.php(254): XF\Service\Conversation\Notifier->notifyCreate() #10 src/addons/SV/WarningImprovements/XF/Service/User/Warn.php(104): XF\Service\Conversation\Creator->sendNotifications() #11 src/XF.php(479): SV\WarningImprovements\XF\Service\User\Warn->SV\WarningImprovements\XF\Service\User\{closure}() #12 src/addons/SV/WarningImprovements/XF/Service/User/Warn.php(105): XF::asVisitor(Object(SV\ReportImprovements\XF\Entity\User), Object(Closure)) #13 src/addons/SV/ReportImprovements/XF/Service/User/Warn.php(82): SV\WarningImprovements\XF\Service\User\Warn->_save() #14 src/XF/Service/ValidateAndSavableTrait.php(40): SV\ReportImprovements\XF\Service\User\Warn->_save() #15 src/XF/ControllerPlugin/Warn.php(41): XF\Service\User\Warn->save() #16 src/addons/SV/WarningImprovements/XF/ControllerPlugin/Warn.php(39): XF\ControllerPlugin\Warn->actionWarn('post', Object(SV\ReportImprovements\XF\Entity\Post), '/posts/5146287/...', Array) #17 src/addons/SV/WarningAcknowledgement/XF/ControllerPlugin/Warn.php(25): SV\WarningImprovements\XF\ControllerPlugin\Warn->actionWarn('post', Object(SV\ReportImprovements\XF\Entity\Post), '/posts/5146287/...', Array) #18 src/addons/SV/ReportImprovements/XF/ControllerPlugin/Warn.php(117): SV\WarningAcknowledgement\XF\ControllerPlugin\Warn->actionWarn('post', Object(SV\ReportImprovements\XF\Entity\Post), '/posts/5146287/...', Array) #19 src/XF/Pub/Controller/Post.php(404): SV\ReportImprovements\XF\ControllerPlugin\Warn->actionWarn('post', Object(SV\ReportImprovements\XF\Entity\Post), '/posts/5146287/...', Array) #20 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Post->actionWarn(Object(XF\Mvc\ParameterBag)) #21 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Warn', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Post), NULL) #22 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Post), NULL) #23 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #24 src/XF/App.php(2184): XF\Mvc\Dispatcher->run() #25 src/XF.php(391): XF\App->run() #26 index.php(20): XF::runApp('XF\\Pub\\App') #27 {main}
The error is that there is no conversation message. Which is baffling

[/QUOTE]
I think Report Improvements and Warning Acknowledgement from https://atelieraphelion.com/
It was developed to work with those.
 
A message would be created, also warning points and so on.
My last version was 2.3.0 and works without errors.
 
I see where the problem is. Message has been created as Guest and not as Team-Member.
Without a message to user it works fine. See attached file
I must go on, will be back 3 or 4 hours.
Thank you
 

Attachments

  • Conversation.webp
    Conversation.webp
    30.3 KB · Views: 10
Last edited:
Top Bottom