XF 2.1 Delete permanently by default

JackieChun

Well-known member
Is there a way to set moderator action for messages to hard-delete instead of soft-delete by default? Would save us a lot of clicks.
 
Solution
Edit the template helper_action

Find this:
HTML:
<xf:macro name="delete_type" arg-canHardDelete="{{ false }}" arg-typeName="hard_delete" arg-reasonName="reason">
    <xf:if is="$canHardDelete">
        <xf:radiorow name="{$typeName}" value="0"

Change value="0" to value="1"
This can't be done by default and would require a template modification.

Though I'd strongly advise not to do this as that would be pretty risky, it's easy to accidentally click the wrong controls - if you make permanent default the content will be gone.
On our forums none of the moderators (including admins) has permission to permanently delete anything, there is no reason for doing so.
 
Edit the template helper_action

Find this:
HTML:
<xf:macro name="delete_type" arg-canHardDelete="{{ false }}" arg-typeName="hard_delete" arg-reasonName="reason">
    <xf:if is="$canHardDelete">
        <xf:radiorow name="{$typeName}" value="0"

Change value="0" to value="1"
 
Solution
Top Bottom