PDA

View Full Version : Moderators Functions - 'No redirect' and 'Physically remove' by default


Sofia
23 May 2009, 00:16
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'.

http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=214333

Physically Remove by default



In templates threadadmin_deletethread,


Find:

<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:

<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:


<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:<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:


<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:

<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 />

HMBeaty
23 May 2009, 00:17
Thank you for this :)

Silver Tiger
24 May 2009, 19:30
thank you is there a way we can remove soft delete and redirect from the moderator drop box?

Sofia
24 May 2009, 20:30
thank you is there a way we can remove soft delete and redirect from the moderator drop box?

In templates threadadmin_deletethread,

Delete:

<if condition="$show['softdelete']"><div>
<div><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>




In the template threadadmin_deleteposts,


Delete:


<if condition="$show['deleteposts']">
<div class="fieldset">
<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>


In template threadadmin_movethreads and threadadmin_movethread

Delete:<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 />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />
<img style="padding-$stylevar[left]: 4px" class="inlineimg" src="$stylevar[imgdir_misc]/tree_$stylevar[textdirection].gif" alt="" border="0" /> $vbphrase[expires_in]
<select name="period">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>

<select name="frame">
<option value="h">$vbphrase[hours]</option>
<option value="d">$vbphrase[days]</option>
<option value="w">$vbphrase[weeks]</option>
<option value="m" selected="selected">$vbphrase[months]</option>
<option value="y">$vbphrase[years]</option>
</select>

DanielN24
24 May 2009, 23:49
Does the move thread make it so "Merging Threads" have the no redirect?

GCSkye
26 May 2009, 16:10
Thanks for the redirect.

lm3a.net
27 May 2009, 07:25
thank you dear

avsunforum
26 Jun 2009, 12:27
Thanks Sofia:D

ubcforums
26 Jun 2009, 14:01
Thanks...Gr8 Job :)

LI Pets
26 Jun 2009, 21:12
perfect:up:

newguy
15 Jul 2009, 10:48
Thanks so much.

Sofia
15 Jul 2009, 12:58
Thanks for the redirect.

thank you dear

Thanks Sofia:D

Thanks...Gr8 Job :)

perfect:up:

You're welcome, friends :p

Kosmic1
09 Dec 2009, 13:36
Nice :) Thank you

vijayninel
17 Feb 2010, 12:43
Thanks so much for this. :)

JackieChun
29 Aug 2012, 01:01
Does this mod affect both moderators and administrators? I would like to to have a permanent remove for admins but not moderators

vithorius
29 Jan 2013, 11:07
Does this mod affect both moderators and administrators? I would like to to have a permanent remove for admins but not moderators
Me too! :up: