vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Make phyisical remove as default? (https://vborg.vbsupport.ru/showthread.php?t=155614)

soletrader 08-18-2007 11:07 PM

Make phyisical remove as default?
 
Does anyone know of a hack that makes the phyiscall remove option as default instead of soft remove? I need this for my mods who keep soft removing threads and then I have to go clearn it up. I have seen this hack available here a while ago but have spent some time looking for it and can not located it. Any help is appreciated. Thank you

Opserty 08-19-2007 08:53 AM

You will have to do this for all the delete templates I think, would just be easier to tell the mods to hard delete it! Anyway

Goto to the AdminCP -> Styles and Templates -> Style Manager -> (From the Right) Edit Templates -> (From the large select box) Thread Administration Templates -> threadadmin_deletethread

Find the thing in Red and move it to the place I've shown in Green. You'll probably need to do something similar for threadadmin_deleteposts, threadadmin_deletethreads.
Code:


                                        <if condition="$show['softdelete']"><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>
<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['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>
                                        </div></if>
                                </td>
                        </tr>
                        <tr>
                                <td>
                                        $vbphrase[reason_for_deletion]:<br />
                                        <input type="text" class="bginput" name="deletereason" value="$threadinfo[del_reason]" size="50" maxlength="125" />
                                </td>
                        </tr>
                        </table>
                </fieldset>
               
                </div>
        </div>
       
        <div style="margin-top:$stylevar[cellpadding]px">
                <input type="submit" class="button" value="$vbphrase[delete_thread]" accesskey="s" />
                <input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
        </div>
        </td>
</tr>
</table>

</form>



All times are GMT. The time now is 01:13 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.00930 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete