Warning Improvements by Xon

Warning Improvements by Xon 2.12.1

No permission to download
Yeah i have a user with 2 warnings both expired but it's not getting promoted.
I don't think I understand these permissions.

I want to target users with no active warnings.

EDIT: I think i had to also select "Include expired" for some reason :D
 
Last edited:
Question about this feature:
Anonymize warnings and warning alerts as a particular user or as a generic 'Moderation Staff' (WarningStaff phrase).

Does this also anonymize the staff giving warning points via the DM/conversation created?
 
Yes, it does that by creation the conversation from the anonymized account rather than the staff who issued the warning
 
  • Love
Reactions: rdn
Is this intended or a bug?

sv_warning_view select radio is appearing on user changelogs?

Sample:
1746861924574.webp
 
Hi Xon, is it possible to disable the "Spoiler contents" and "Disable reactions" content action options when issuing warnings for all the moderators in the front end?

I tried doing this, but it doesn't work.

1755530825964.webp
 
Last edited:
Hi Xon, is it possible to disable the "Spoiler contents" and "Disable reactions" content action options when issuing warnings for all the moderators in the front end?

I tried doing this, but it doesn't work.

View attachment 325991
There isn't a toggle to enable/disable this feature. You can disable the template modification Add "Disable reactions" at the end of "Content action" section to disable this feature when issuing a warning.
 
  • Love
Reactions: rdn
We're getting this error from the addon in the ACP: Template error: [E_USER_WARNING] Method canViewWarningActions is not callable on the given object (SV\SearchImprovements\XF\Entity\User)

Any ideas?
 
Without seeing the template or the stack trace, impossible to tell.

Try ensuring no src/addons/SV/WarningImprovements/_output folder exists and then rebuild the add-on.
 
_output was missing I rebuilt the add-on, but it did not fix the issue.

Here is the stack trace:

Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/srv/www/forums...', 1277)
#1 src/XF/Template/Templater.php(1277): trigger_error('Method canViewW...', 512)
#2 internal_data/code_cache/templates/l1/s47/public/sv_warningimprovements_member_view_warning_actions.php(7): XF\Template\Templater->method(Object(SV\SearchImprovements\XF\Entity\User), 'canViewWarningA...', Array)
#3 src/XF/Template/Templater.php(1799): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#4 src/XF/Template/Templater.php(1873): XF\Template\Templater->renderTemplate('sv_warningimpro...', Array)
#5 internal_data/code_cache/templates/l1/s47/public/member_view.php(567): XF\Template\Templater->includeTemplate('public:sv_warni...', Array)
#6 src/XF/Template/Templater.php(1799): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('member_view', Array)
#8 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#9 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('XF:Member\\View', 'public:member_v...', Array)
#10 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#13 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#14 src/XF.php(806): XF\App->run()
#15 index.php(23): XF::runApp('XF\\Pub\\App')
#16 {main}

and the request state:

Code:
array(4) {
  ["url"] => string(38) "/index.php?members/USERNAME.291/page-9"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["members/baconfry_291/page-9"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
@Grumpy Squid does this happen on the stock theme? The member_view template should have a $user set and this template should only be rendered if the user exists
 
We discovered it kicks up errors when entering a disabled state. When enabled, and you don't disable it, no errors occur. Apologies for the confusion.

We consider this matter resolved. Sorry and thanks.
 
Xon updated Warning Improvements by Xon with a new update entry:

2.12.0 - Bugfix & Maintenance update

  • Require StandardLib v1.23.0+
  • Move large chunks of template bits from template modification blobs and into a dedicated template via macros.
  • Fix missing "Resolve report" checkbox when deleting a non-expired warning when Report Improvements is installed and the report doesn't (yet) exist resulting in a new report being created in an open state

Read the rest of this update entry...
 
Back
Top Bottom