The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Message auto-save/drafts Details »» | |||||||||||||||||||||||||||
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?
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.
HTML Code:
<script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_autosave.js"></script> *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
Show Your Support
|
Comments |
#12
|
|||
|
|||
Yup, same link.
|
#13
|
|||
|
|||
I'll try it again with the update .js and report back.
|
#14
|
|||
|
|||
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. |
Благодарность от: | ||
Max Taxable |
#15
|
||||
|
||||
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)?
|
#16
|
||||
|
||||
Perfect Mod.. installed...
|
#17
|
|||
|
|||
It's a client-side script, doesn't involve the server at all
|
#18
|
|||
|
|||
thank ,
good mod |
#19
|
||||
|
||||
hi
this mod is really helpful but unfortunatly it has 1 disadvantage that , it disabled Links in vb Ajax dropdown menu.. you can understand by image below... Attachment 133267 it ads #.. instead of the original url... and after clicking on this button happens nothing... even users can not click on the notifications... |
#20
|
||||
|
||||
anyone else has this thing happen on their board?
|
#21
|
||||
|
||||
I also get the # but the link still works fine.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|