This modification adds an save draft feature when using Quick Reply, New Reply, New Thread and Private Messaging.
When writing a message you can choose to save it and return to it later without publically publishing it.
There are two saving options, one is where drafts are automatically saved every X minutes where process is mostly
invisible to the user and is a background process and where drafts can be saved at any point by clicking a button. You can assign each
type to individual usergroups separately.

Drafts are saved and restored in the following manner. One new thread per forum, one reply per thread, one PM reply per PM and one new PM. If a saved post/thread/PM is found, the text is automatically restored to the reply field when the user returns to the page. So to restore a thread, they just visit the New Thread page in the forum in which it was being written, it will be there waiting.

To remove old draft data which has not been deleted by its author, a scheduled task runs daily which removes any drafts data which is older than X days.

You are not permitted to redistribute or re-release this modification.

Options: (AdminCP > vBulletin Options > vB Drafts)

Enable drafts for Quick Replies?
Set to Yes to enable drafts for Quick Replies.

Enable drafts for New Replies?
Set to Yes to enable drafts for New Replies.

Enable drafts for New Threads?
Set to Yes to enable drafts for New Threads.

Enable drafts for Private Messages?
Set to Yes to enable drafts for New Private Messages.

Enable manual drafts for UsergroupIDs
Enter the IDs of the usergroups you wish to enable manual drafts for, separated by commas. Example: 1,2,3.

Leave this option blank to enable drafts for everyone.

Enable automatic drafts for UsergroupIDs
Enter the IDs of the usergroups you wish to enable automatic drafts for, separated by commas. Example: 1,2,3.

Leave this option blank to enable drafts for everyone.

Enable drafts for ForumIDs
Enter the IDs of the forums you wish to enable drafts for, separated by commas. Example: 1,2,3

Leave blank to enable drafts in every forum.

Do NOT drafts for ForumIDs
If it is easier for you to specify which forums you do not want drafts in, enter the IDs of the usergroups you wish to disable drafts for, separated by commas. Example: 1,2,3

Leave blank to not disable autosaving in any forums.

Minimum post/thread/PM length
Enter how many characters a post/thread/PM must contain before it will be saved. Example: 500 will disable the saving of drafts shorter than 500 characters.

Set this option to 1 to allow saving for messages of any length.

Wait X minutes before saving
Enter the number of minutes before a post/thread/PM starts to be saved. Example: 10 will begin allowing saved drafts after 10 minutes.

Manual saving will disable this option.

Repeat saving every X minutes
After the wait time has expired, specify how often the post/thread/PM will be saved. Example: 5 will save a draft every 5 minutes.

Manual saving will disable this option.

Store draft data for X days
Specify in days how long draft data will be kept for. Example: 7 will delete a draft after 7 days.

Delete drafts when uninstalling?
Set to No to leave all the drafts in the database when you uninstall this modification, otherwise the drafts database will be cleared at uninstallation.

You must also remove the scheduled task and/or cron file or it will delete saved drafts after X days (set above) anyway!

Upgrade Instructions:

From v1.50:Uninstall your current version of this modification. You will lose any current saved drafts and your current settings.
Delete vb_autosave.php from your root folder.
Delete vb_autosave_cron.php from your includes/cron folder.
You do not have to remove previous template edits, but if you wish to then there is a list in the zip file which you can work through and undo.

From v2.00:
Delete drafts.php in the root (top level, not cron) folder on your server, this file is no longer needed.

File Edits:
For file edits, you will need to edit the original files that vBulletin was shipped with. Make your changes in an appropriate editor (anything that does not use formatting like MS Word will do) and then upload the files to your server, overwriting the existing files.

The file edit is only necessary if you intend to use autosaving with Quick Reply.

Don't panic! The donations link is only hosted on my website so it can be encrypted and not open my email address to spammers.

Changelogv1.00 Initial release.

v1.01 Removed branding.

v1.50 Added message which flashes up when a message is saved.v1.50 Added status indicator to show when autosave is active on a page. This also replaces the WYSIWYG incompatible message.v1.50 Added function to optionally delete saved message after posting (see screenshot).v1.50 Added improved restoration interface and added expiry details for the saved message.v1.50 Added end-user FAQ items for the modification.v1.50 Changed rewrite and improvement of product code.

v2.00 Changed expired draft deletion to run hourly instead of daily.v2.00 Fixed bug where Quick Reply would delete the title of a post saved in New Reply.v2.00 Fixed bug where quoting would not work.v2.00 Fixed bug where previewing would show the draft twice.v2.00 Fixed phrasing where post was said to be thread.v2.00 Fixed expiration time, now it is correct to the minute when deletion will occur.v2.00 Fixed deletion failed message for users in case AJAX delete doesn't work.v2.00 Fixed other miscellaneous minor bugs.v2.00 Removed the AJAX delete now link. Now that drafts are deleting after submitting post/thread/PM it felt largely unnecessary.

v2.10 Added true instant one-click AJAX draft saving. It is now also considerably faster.v2.10 Added cursor change to hourglass when saving.v2.10 Fixed bug where pruning of old drafts did not occur.v2.10 Fixed bug where drafts were not deleted after submission.v2.10 Fixed bug where IE gave irrelevant javascript errors.v2.10 Fixed bug where Quick Reply drafts were counted as a duplicate post.v2.10 Fixed bug where Autosave drafts enabled message did not show.v2.10 Fixed bug where IE did not show delete drafts option as disabled.v2.10 Removed redundant phrases.

v2.11 Added intial wait time before autosaving draft option. I have never added it before, oops.v2.11 Fixed bug where QR went back to counting every post as a duplicate.v2.11 Fixed javascript not enabling the QR delete option properly.v2.11 Fixed bug with incorrect characters for restored drafts in QR.v2.11 Fixed FAQ and options minor description errors.v2.11 Fixed delete draft option appearing where drafts are not enabled.

v2.2 NOW vBulletin 3.8.x ONLY.v2.2 Added drafts for private message quick reply.v2.2 Added optimisation to the database structure, is much faster now.v2.2 Changed some minor code for minor optimisations.v2.2 Changed the automated saving message to display permanently after the first save so it is clear a draft exists. The saving indicator has also been slowed dramatically so it is more noticable when a save takes place.v2.2 Changed the saving function to not use vBulletin's minimum length check, which popped up an incredibly irritating message. Now it uses an invisible check.v2.2 Fixed javascript error when using drafts with post quick reply.v2.2 Fixed draft not appearing when sending a private message failed with an error.v2.2 Fixed drafts being disabled when using Go Advanced on threads.v2.2 Fixed private message title being replaced with nothing when viewing a PM.v2.2 Fixed drafts being processed when draft content is empty. Usually this amusingly manifested itself as an empty draft restored from 1970.v2.2 Fixed incorrect application of manual/automatic usergroup settings.

Download Now

Only licensed members can download files, Click Here for more information.