Back to vBulletin 4.x Template Modifications

Keep Attachment Checked by Default when Soft Deleting
Mod Version: 1.00, by Merjawy

vB Version: 4.2.0 Rating: (1 vote - 5.00 average) Installs: 10
Released: 09 Jul 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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.deletetabindex="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

Click image for larger version
Name:	2012-07-21_1052.jpg
Views:	199
Size:	52.9 KB
ID:	139976  

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

vblts.ru supports vBulletin®, 2022-2024