Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Message auto-save/drafts Details »»
Message auto-save/drafts
Mod Version: 0.5, by MoMan (Coder) MoMan is offline
Developer Last Online: Aug 2014 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (7 votes - 5.00 average) Installs: 48
Released: 14 Sep 2011 Last Update: 17 Sep 2011 Downloads: 171
Not Supported Template Edits Additional Files Re-usable Code Is in Beta Stage  

An auto-save feature was recently added to vB4, so I figured it would be nice if we vB3 users could also get something similar

While this this isn't a server-side solution, I think that it's still pretty solid, as it relies on the localStorage system in your browser, which is supported by Safari, FF 3.5+, Opera, Chrome, and IE8+.

I have tested this on FF6, the latest Safari and Chrome, and IE9. I wrote it with IE8 in mind, but haven't tested IE8 as my forum skin doesn't support it (yup, it's a terrible browser).

For now, I am marking this as a beta release until we're sure it works in all browsers that support localStorage and there aren't any outstanding bugs.

Where does this work?
  • Quick reply
  • New reply/New thread
  • PM quick reply
  • New PM
  • PM regular reply
  • Anywhere else you want, given that the page contains a form named "vbform" and a textarea named "message" (or the vbulletin wysiwyg editor)

How does this work?
You can start typing a post, close your browser, open the same page, and the post will still be there. Note that this mod keys data by URL in order to avoid collisions.

The mod automatically and silently restores posts when possible. However, if the editor already contains something when you load the page (i.e. PM quick reply), then you will receive a prompt asking you whether or not you want to work with the recovered text.

This mod works even if you disable the WYSIWYG editor and it will quite likely work with older versions of vB all the way down to 3.5.

Installation
Installation is simple.
  1. [1]Download the attached file (or download the file directly and skip step 2)
    [2]Change the extension to .js from .js.txt
    [3]Upload it to your forum's clientscript directory
    [4]Add the following code to the bottom of your forum templates* wherever you want this mod to work:


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

If you don't care about http overhead, you can put this code in your footer template as it will die gracefully on pages without an editor. However, I recommend only putting it in templates that use it. On my forum, I've added it to the following templates: SHOWTHREAD, newreply, newthread, pm_showpm, pm_newpm On top of that, if you don't allow guests to post, wrap the code in a member-only conditional: <if condition="$show['member']">...</if>

*the script tags must be placed after the editor text area element; this doesn't necessarily have to be the very end of the template, although it's good practice to do so

License:
You are free to use, modify, re-post and re-distribute the code as long as you credit me in the script comments. Improvements and derivatives are welcome!

Note: This is a CLIENT-SIDE mod. Please be sure that any issues you may report aren't related to the fact that a. your browser is misconfigured or b. you are using an old/unsupported browser.

Download Now

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

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • 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

Comments
  #2  
Old 14 Sep 2011, 08:10
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
No worky.... FF 7.
Reply With Quote
  #3  
Old 14 Sep 2011, 14:53
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
UPDATE!

This mod Works great on my board (3.8.6) and with my browser (FF 7).

Reason I didn't think it did before was, I use Cloud Flare and changes such as this aren't immediately visible! Takes awhile for such changes to propagate through the system!
Reply With Quote
  #4  
Old 14 Sep 2011, 23:41
EddyMaxx's Avatar
EddyMaxx EddyMaxx is offline
 
Join Date: Jan 2010
Great mod!! Thanks.
Reply With Quote
  #5  
Old 15 Sep 2011, 01:04
MoMan MoMan is offline
 
Join Date: Oct 2005
I've uploaded an updated version of the file in which I fixed PM quick reply compatibility in firefox and added better support for IE8.

Glad to hear you guys like it!
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #6  
Old 15 Sep 2011, 22:36
MoMan MoMan is offline
 
Join Date: Oct 2005
I've upload version 0.3 which fixes a potential issue with data keys. I recommend that everyone updates their js file to guarantee correct URL association with the saved data.
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #7  
Old 16 Sep 2011, 00:01
EddyMaxx's Avatar
EddyMaxx EddyMaxx is offline
 
Join Date: Jan 2010
Cool, thanks man.
Reply With Quote
  #8  
Old 16 Sep 2011, 02:20
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Originally Posted by MoMan View Post
I've upload version 0.3 which fixes a potential issue with data keys. I recommend that everyone updates their js file to guarantee correct URL association with the saved data.
Same link to click to get the updated version?
Reply With Quote
  #9  
Old 16 Sep 2011, 16:59
EddyMaxx's Avatar
EddyMaxx EddyMaxx is offline
 
Join Date: Jan 2010
This started causing some issues. A few folks kept getting their browser closed whenever they went to showthread or PM box. It would just close out when they tried to open a thread or PM.

I removed the script tags from all areas and its back to normal.

Any ideas?

I uploaded the latest javascript file as well.
Reply With Quote
  #10  
Old 16 Sep 2011, 19:42
MoMan MoMan is offline
 
Join Date: Oct 2005
Version 0.4 is up, with improvements to data clearing when a post is submitted as well as slightly shorter code.

This script shouldn't cause anyone's window to close. What browser were they using? Users of my site haven't observed this.
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #11  
Old 16 Sep 2011, 19:43
MoMan MoMan is offline
 
Join Date: Oct 2005
Originally Posted by Max Taxable View Post
Same link to click to get the updated version?
Yup, same link.
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #12  
Old 16 Sep 2011, 21:34
EddyMaxx's Avatar
EddyMaxx EddyMaxx is offline
 
Join Date: Jan 2010
I'll try it again with the update .js and report back.
Reply With Quote
  #13  
Old 17 Sep 2011, 23:16
MoMan MoMan is offline
 
Join Date: Oct 2005
I've uploaded version 0.5. This introduces some efficiency fixes: if a user erases their post while typing it, it will now be completely removed from the browser storage (instead of being replaced by an empty string).

Also, an auto-save is no longer triggered simply by hovering your mouse over the text. This introduced some issues with quick reply, as you could technically submit your post and then get the auto-save system to store it after it had been submitted.
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #14  
Old 19 Sep 2011, 08:54
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Awesome, will install this on 3.8.5, quick question first, will this cause any significant increase in server load on a biggish forum (over 500 000 posts)?
__________________
Marine Aquariums
Reply With Quote
  #15  
Old 19 Sep 2011, 16:43
NAZIA's Avatar
NAZIA NAZIA is offline
 
Join Date: Feb 2008
Real name: NJ
Perfect Mod.. installed...
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 14:53.

Layout Options | Width: Wide Color: