Log in

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


Sofia
05-22-2009, 10:00 PM
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'.

https://vborg.vbsupport.ru/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
05-22-2009, 10:17 PM
Thank you for this :)

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

Sofia
05-24-2009, 06:30 PM
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
05-24-2009, 09:49 PM
Does the move thread make it so "Merging Threads" have the no redirect?

GCSkye
05-26-2009, 02:10 PM
Thanks for the redirect.

lm3a.net
05-27-2009, 05:25 AM
thank you dear

avsunforum
06-26-2009, 10:27 AM
Thanks Sofia:D

ubcforums
06-26-2009, 12:01 PM
Thanks...Gr8 Job :)

LI Pets
06-26-2009, 07:12 PM
perfect:up:

newguy
07-15-2009, 08:48 AM
Thanks so much.

Sofia
07-15-2009, 10:58 AM
Thanks for the redirect.

thank you dear

Thanks Sofia:D

Thanks...Gr8 Job :)

perfect:up:

You're welcome, friends :p

Kosmic1
12-09-2009, 11:36 AM
Nice :) Thank you

vijayninel
02-17-2010, 10:43 AM
Thanks so much for this. :)

JackieChun
08-28-2012, 11:01 PM
Does this mod affect both moderators and administrators? I would like to to have a permanent remove for admins but not moderators

vithorius
01-29-2013, 10:07 AM
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: