1. 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

Discussion in 'XenForo Questions and Support' started by Robert F Schmitz, Oct 2, 2011.

  1. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    I would like to set the default as Permanently Delete instead of remove from view. Where can I make this adjustment? :)
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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>
    
     
  3. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    Jakes never fails! Many thanks! (y)
     

Share This Page