Back to vBulletin 3.8 Template Modifications

'No redirect' and 'Physically remove' by default
Mod Version: 1.00, by Sofia

vB Version: 3.8.x Rating: (3 votes - 5.00 average) Installs: 52
Released: 23 May 2009 Last Update: Never Downloads: 3
Not Supported Re-usable Code Translations  

If you are like me and you never delete soflty or you never leave redirect link when you move a thread, you can check by defaut 'No redirect' and Physically remove'.



Physically Remove by default


In templates threadadmin_deletethread,


Find:


HTML Code:
<label for="rb_deletetype_1"><input type="radio" name="deletetype" value="1" id="rb_deletetype_1" checked="checked" />$vbphrase[soft_delete_leave_deleted_message]</label></div>
                        <div><img class="inlineimg" src="$stylevar[imgdir_misc]/tree_$stylevar[textdirection].gif" alt="" border="0" /><label for="cb_keepattachments"><input type="checkbox" name="keepattachments" class="inlineimg" value="1" id="cb_keepattachments" />$vbphrase[keep_attachments]</label></div>
                    </div></if>
                    <if condition="$show['harddelete']"><div>
                        <label for="rb_deletetype_2"><input type="radio" name="deletetype" value="2" id="rb_deletetype_2" onselect="alert('moo')" />$vbphrase[physically_remove]</label>


Replace by:


HTML Code:
<label for="rb_deletetype_1"><input type="radio" name="deletetype" value="1" id="rb_deletetype_1" />$vbphrase[soft_delete_leave_deleted_message]</label></div>
                        <div><img class="inlineimg" src="$stylevar[imgdir_misc]/tree_$stylevar[textdirection].gif" alt="" border="0" /><label for="cb_keepattachments"><input type="checkbox" name="keepattachments" class="inlineimg" value="1" id="cb_keepattachments" />$vbphrase[keep_attachments]</label></div>
                    </div></if>
                    <if condition="$show['harddelete']"><div>
                        <label for="rb_deletetype_2"><input type="radio" name="deletetype" value="2" id="rb_deletetype_2" checked="checked"  onselect="alert('moo')" />$vbphrase[physically_remove]</label>


In the template threadadmin_deleteposts,


Find:


HTML Code:
<label for="rb_del_soft"><input type="radio" name="deletetype" value="1" id="rb_del_soft" $checked[delete] />$vbphrase[soft_delete_leave_deleted_message]</label>
                <br /><img class="inlineimg" src="$stylevar[imgdir_misc]/tree_$stylevar[textdirection].gif" alt="" border="0" /><label for="cb_keepattachments"><input type="checkbox" class="inlineimg" name="keepattachments" value="1" id="cb_keepattachments" />$vbphrase[keep_attachments]</label>
            </div>
            </if>
            <if condition="$show['removeposts']">
            <div class="fieldset">
                <label for="rb_del_hard"><input type="radio" name="deletetype" value="2" id="rb_del_hard" $checked[remove] />$vbphrase[physically_remove]</label>

Replace by:
HTML Code:
<label for="rb_del_soft"><input type="radio" name="deletetype" value="1" id="rb_del_soft" />$vbphrase[soft_delete_leave_deleted_message]</label>
                <br /><img class="inlineimg" src="$stylevar[imgdir_misc]/tree_$stylevar[textdirection].gif" alt="" border="0" /><label for="cb_keepattachments"><input type="checkbox" class="inlineimg" name="keepattachments" value="1" id="cb_keepattachments" />$vbphrase[keep_attachments]</label>
            </div>
            </if>
            <if condition="$show['removeposts']">
            <div class="fieldset">
                <label for="rb_del_hard"><input type="radio" name="deletetype" value="2" id="rb_del_hard" $checked[delete] />$vbphrase[physically_remove]</label>


No redirect (when you move a thread) by default



In template
threadadmin_movethreads and threadadmin_movethread


Find:

HTML Code:
<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" />$vbphrase[leave_no_redirect]</label><br />
            <label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" />$vbphrase[leave_permanent_redirect]</label><br />
Replace by:

HTML Code:
<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" checked="checked" />$vbphrase[leave_no_redirect]</label><br />
            <label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" />$vbphrase[leave_permanent_redirect]</label><br />

Download

No files for download.

Screenshots

Click image for larger version
Name:	delete.png
Views:	559
Size:	17.3 KB
ID:	99473   Click image for larger version
Name:	move.png
Views:	572
Size:	24.4 KB
ID:	99474  

Similar Mods

Move threads with leave no redirect as default or Expired redirect as default vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024