Register Members List Search Today's Posts Mark Forums Read

View Poll Results: Should the saved message be removed when a thread/post/private message has been sent?
4 4 4%
8 8 8%
6 6 6%
Voters: 53. You may not vote on this poll

Reply
 
Mod Options
vB Drafts Details »»
vB Drafts
Mod Version: 2.11, by RedTyger (Coder) RedTyger is offline
Developer Last Online: Sep 2013 I like it Show Printable Version Email this Page

vB Version: 3.6.7 Rating: (24 votes - 4.63 average) Installs: 163
Released: 15 Mar 2007 Last Update: 17 Jul 2007 Downloads: 837
Not Supported DB Changes Uses Plugins Additional Files  

vB Drafts
Report a bug | Request a feature (Requires super-quick registration)

Description

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.

When the above is done, follow the installation instructions below.


Installation Instructions:

Uploads:
1. Go to AdminCP > Plugins & Products > Manage Products > Add/Import Product.
2. Upload the vb_drafts_xxx.xml file.
3. Upload the contents of the upload folder to the equivalent forum folders on your server.


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.

In file clientscript/vbulletin_quick_reply.js:
FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


This file edit is only necessary if Quick Reply requires a click.

FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Done!


Donations

If you have a pressing wish to donate money to me (and of course, you do) to say thank you and to possibly encourage more future work then you can do via the link below. Also, you will go to heaven.

http://redtyger.co.uk/donations.php

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.


Changelog
v1.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 Added manual draft saving.
v2.00 Added WYSIWYG compatibility.
v2.00 Added Quick Reply requiring a click compatibility.
v2.00 Added automated template edits.
v2.00 Added extra security checks.
v2.00 Added minor cross-system compatibility improvements.
v2.00 Added optimisations, some major some minor.
v2.00 Added option to keep drafts when uninstalling the modification.
v2.00 Changed FAQ text, draft enabled message now links to an FAQ explanation of what it is.

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.

Screenshots

Click image for larger version

Name:	manualsave.jpg
Views:	1628
Size:	28.5 KB
ID:	67009

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Save Drafts (Remember Everything) Updated! why-not vBulletin 3.0 Full Releases 91 12 Feb 2009 13:56
Save Drafts (New Topics, New Reply, PM(s)) Updated March 04, 2005 why-not vBulletin 3.0 Beta Releases 23 06 Mar 2005 19:54

  #211  
Old 23 Jun 2010, 19:57
adeel80 adeel80 is offline
 
Join Date: Apr 2010
hello??

Just moved here from phpbb where it is a basic function. Can't believe vb doesn't have this.

Please make a mod for 4.0
Reply With Quote
  #212  
Old 14 Dec 2010, 09:30
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Real name: Vijay
Working great on 3.8.5
Reply With Quote
  #213  
Old 30 Aug 2011, 12:12
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Real name: Cédric Claerhout
This mod is great and works fine on vBulletin 3.8.7. I don't understand why some people report it doesn't. Nevertheless, I had encountered a few problems:
  • With the date display
  • With a backslash in the name of the day (in French : today=Aujourd'hui ; but displayed: Aujourd\'hui"
  • With Wysiwyg: convert_wysiwyg_html_to_bbcode function could not work properly

These problems have been fixed in the attached file (don't forget to upload the new Js file). I didn't look for the quickreply edit, because I don't care ^^

I don't understand why RedTyger has deactivated his hack in the reply PM pages, because it's working great too. To activate it, just edit the xml file.

Search:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Thanks again to RedTyger for this great hack.
Attached Files
File Type: zip vb_drafts_211a.zip (14.6 KB, 31 views)
__________________
Reply With Quote
  #214  
Old 21 Nov 2011, 10:06
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Thanks for the new file.
I didn't look for the quickreply edit, because I don't care ^^
Which edit are you referring to?

Thanks.
__________________
Marine Aquariums
Reply With Quote
  #215  
Old 26 Apr 2012, 23:22
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Does this work in 4x?
__________________
...............................
Talk Jesus Forums: Christian Chat
games . chat . gallery . bible . videos
Reply With Quote
  #216  
Old 27 Apr 2012, 17:57
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Originally Posted by Chadi View Post
Does this work in 4x?
Likely not as templates and code are significantly different in vb4 from vb 3.8
Reply With Quote
  #217  
Old 23 Aug 2012, 00:18
Blueracer66's Avatar
Blueracer66 Blueracer66 is offline
 
Join Date: Sep 2008
Real name: Kevin
Does anyone know if this works in vBulletin v3.8.7 Patch Level 3?
__________________
AllConsoleGamersAll-Console Pro Gaming Community™ (beta)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:49.

Layout Options | Width: Wide Color: