Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin Tips & Tricks
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Delete Thread/Post: Physically Remove As Default On Top
princeedward's Avatar
princeedward
Join Date: Jan 2007
Posts: 901

...as you have probably already guessed, my real name is edward... there's really not too much to know about me...the one who really tried hard to be a good one...but...

Deutschland
Show Printable Version Email this Page Subscription
princeedward princeedward is offline 06-29-2008, 10:00 PM

================================================== =====
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!
========================

Code:
<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!
========================

Code:
<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!
========================

Code:
<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!
=======================

Code:
<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!
Attached Images
File Type: gif delete post_image.gif (15.9 KB, 0 views)
Reply With Quote
  #2  
Old 07-06-2008, 11:13 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 07-07-2008, 02:21 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be a better article if you said what you did, instead of telling users to copy and paste. Use colours or something
Reply With Quote
  #4  
Old 07-08-2008, 07:43 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
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...???

Reply With Quote
  #5  
Old 07-08-2008, 08:20 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeedward View Post
sorry i missed your point here...what you mean here is like...???

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

You say:
Code:
<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
Reply With Quote
  #6  
Old 07-09-2008, 09:15 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

..well thanks for the tut's...sure will do it next time bro....
Reply With Quote
  #7  
Old 10-26-2013, 01:22 PM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In my case i cant find that code in my vbuleltin 4.1.10; Customize Template: threadadmin_deletethreads
Reply With Quote
  #8  
Old 10-26-2013, 01:46 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That/s because this article was written for vB3.x not vB4.x so it may be a bit outdated for you.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03861 seconds
  • Memory Usage 2,296KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete