How to use: The default time interval is 5 seconds, it means that every 5 seconds, the editing posts / pms will be auto-saved once. You type your words in forum editor then every 5 seconds, your post will be saved into HTML5 local storage of the browser. If you click on Insert Auto Saved Post / Insert Auto Saved PM then you will retrieve your post at the time 5 seconds before.
(and one more screenshot for Insert Auto Saved PM that I am currently not be able to upload it)
It does not work when the browser does not support data caching: No error or warning occurs, it is just that the data is not saved.So what is HTML5 Storage? Simply put, it’s a way for web pages to store named key/value pairs locally, within the client web browser. Like cookies, this data persists even after you navigate away from the web site, close your browser tab, exit your browser, or what have you.
Remeber that, if you seriously want to retrive your post by clicking on Insert Auto Saved Post / Insert Auto Saved PM, DO IT QUICKLY IN 5 SECONDS. Or else, your post will be lost due to the auto-save mechanism.
Some modifications to extension you may want to do: You can edit the saving time interval in:
In both ext_quickreply_editor_buttons_custom_tags_before.html and posting_editor_buttons_custom_tags_before.html, find:[ROOT]\ext\ntvy95\autosave\styles\prosilver\template\event
Code: Select all
I have made this extension based on this suggestion:
For auto-saving posts into database, please visit Post Crash Protection extension.cYbercOsmOnauT wrote:Wouldn't it be better to solve this kind of stuff without the db but locally by using LocalStorage of the modern browsers? http://www.jstorage.info/
I am pretty sure that it will work with QuickReply extension but not the default one.