Keep Attachment Checked by Default when Soft Deleting
This is something I done for my own boards and I thought of sharing it.
When you and/or your Mods soft delete a post/thread with attachment, sometimes a Mod would forget to check mark the Keep Attachments box and if you ever want to undelete the post/thread, the attachments are long gone. This simple code will make the Keep Attachments box checked by default. It's for 4.2.0 but it should work for 4.x.x Templates to modify the code in: threadadmin_deleteposts threadadmin_deletethread threadadmin_deletethreads Find this code: PHP Code:
<input type="checkbox" name="keepattachments" value="1" id="cb_keepattachments" tabindex="1" /> {vb:rawphrase keep_attachments}
Replaces it with this code: PHP Code:
<input type="checkbox" name="keepattachments" value="1" id="cb_keepattachments" {vb:raw checked.delete} tabindex="1" /> {vb:rawphrase keep_attachments}
If you enjoy my mod, please consider marking it as "Installed". Any comments are welcome. Updated: Sep. 4th 2012 (fixed typo) Download No files for download. Screenshots |
Similar Mods
Request Read Reciept checked by default | Modification Graveyard |
New Posting Features Allow 'Make Votes Public' to be checked by default | Modification Graveyard |
'Remember Me' Checked by Default in Navbar | vBulletin 3.6 Template Modifications |