• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to set Permanently Delete as default

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> helper_deletion_type_unit

Remove the red code, add the blue code:

Code:
<xen:if is="{$canHardDelete}">
	<dl class="ctrlUnit">
		<dt>{xen:phrase deletion_type}:</dt>
		<dd>
			<ul>
				<li><label for="ctrl_soft_delete">
					<input type="radio" name="hard_delete" id="ctrl_soft_delete" value="0" class="Disabler" checked="checked" /> {xen:phrase remove_from_public_view}</label>
					<ul id="ctrl_soft_delete_Disabler">
						<li><input type="text" name="reason" class="textCtrl" placeholder="{xen:phrase reason}..." /></li>
					</ul>
					<p class="hint">{xen:phrase item_will_remain_viewable_by_moderators_and_may_be_restored_at_later}</p>
				</li>
				<li><label for="ctrl_hard_delete">
					<input type="radio" name="hard_delete" id="ctrl_hard_delete" value="1" checked="checked" /> {xen:phrase permanently_delete}</label>
					<p class="hint">{xen:phrase selecting_this_option_will_permanently_and_irreversibly_delete_item}</p></li>
			</ul>
		</dd>
	</dl>
<xen:else />
	<dl class="ctrlUnit">
		<dt><label for="ctrl_reason">{xen:phrase reason_for_deletion}:</label></dt>
		<dd><input type="text" name="reason" id="ctrl_reason" class="textCtrl" /></dd>
	</dl>
	<input type="hidden" name="hard_delete" value="0" />
</xen:if>