PDA

View Full Version : Delete Thread/Post: Physically Remove As Default On Top


princeedward
30 Jun 2008, 20:44
=======================================================
HOW TO DELETE THREAD: PHYSICALLY REMOVE AS DEFAULT ON TOP!
=======================================================

================================
Go: Template: threadadmin_deletethreads
================================

WARNING!
Always Copy And Paste the Original Code And Paste It Somewhere (For Security Reason!):
In Case Something Go Wrong!

========================
Find: Code Below And Delete!
========================

<if condition="$show['deletethreads']">
<div class="fieldset">
<label for="rb_deletetype_1"><input type="radio" name="deletetype" value="1" id="rb_deletetype_1" $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" name="keepattachments" class="inlineimg" value="1" id="cb_keepattachments" />$vbphrase[keep_attachments]</label>
</div>
</if>

<if condition="$show['removethreads']">
<div class="fieldset">
<label for="rb_deletetype_2"><input type="radio" name="deletetype" value="2" id="rb_deletetype_2" $checked[remove] onselect="alert('moo')" />$vbphrase[physically_remove]</label>
</div>
</if>


========================
Copy: Code Below And Paste!
========================

<if condition="$show['removethreads']">
<div class="fieldset">
<label for="rb_deletetype_2"><input type="radio" name="deletetype" value="2" id="rb_deletetype_2" $checked[delete] onselect="alert('moo')" />$vbphrase[physically_remove]</label>
</div>
</if>

<if condition="$show['deletethreads']">
<div class="fieldset">
<label for="rb_deletetype_1"><input type="radio" name="deletetype" value="1" id="rb_deletetype_1" />$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" name="keepattachments" class="inlineimg" value="1" id="cb_keepattachments" />$vbphrase[keep_attachments]</label>
</div>
</if>



=====================================================
HOW TO DELETE POST: PHYSICALLY REMOVE AS DEFAULT ON TOP!
=====================================================

==============================
Go: Template: threadadmin_deleteposts
==============================

========================
Find: Code Below And 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>

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


=======================
Copy Code Below And Paste!
=======================

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

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

===========================
Pls.View Attachment For Changes
===========================

...If You Find It Useful:
"Thanks" Is A Simple 6 Letter Word That You Can Write And Post To Make Anyone Happy And Push To Find, Think, Create A New Idea & Share Or Release It For All!

Best Regards To All!
;)

TheInsaneManiac
07 Jul 2008, 00:13
Thanks, I actually use soft delete for my moderators, but I get annoyed when having to click it all the time.

I thought I remember using a way to prune all soft deleted posts. Did I see this wrong or is there a way?

Opserty
07 Jul 2008, 15:21
It would be a better article if you said what you did, instead of telling users to copy and paste. Use colours or something ;)

princeedward
08 Jul 2008, 08:43
It would be a better article if you said what you did, instead of telling users to copy and paste. Use colours or something ;)sorry i missed your point here...what you mean here is like...???

:rolleyes:

Opserty
08 Jul 2008, 09:20
sorry i missed your point here...what you mean here is like...???

:rolleyes:
Instead of saying "Find..." then "Copy & Paste...".

You say:

<if condition="$show['deletethreads']">
<div class="fieldset">
<label for="rb_deletetype_1"><input type="radio" name="deletetype" value="1" id="rb_deletetype_1" $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" name="keepattachments" class="inlineimg" value="1" id="cb_keepattachments" />$vbphrase[keep_attachments]</label>
</div>
</if>

<if condition="$show['removethreads']">
<div class="fieldset">
<label for="rb_deletetype_2"><input type="radio" name="deletetype" value="2" id="rb_deletetype_2" $checked[remove] onselect="alert('moo')" />$vbphrase[physically_remove]</label>
</div>
</if>

Change from:
Green
Red

To:
Red
Green

Make better article then :D

princeedward
09 Jul 2008, 10:15
..well thanks for the tut's...sure will do it next time bro....;)

postcd
26 Oct 2013, 14:22
In my case i cant find that code in my vbuleltin 4.1.10; Customize Template: threadadmin_deletethreads

ozzy47
26 Oct 2013, 14:46
That/s because this article was written for vB3.x not vB4.x so it may be a bit outdated for you.