Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Drafts Autosave
#1
Drafts AutoSave saves new threads and replies as drafts automatically once in a while, so you don't have to worry about losing your writings anymore. Whether if your browser freezes or the AC powers off, you will always have an emergency backup of what you have written down ready to be restored.

Several options are available to customize your own copy of Drafts AutoSave, including different storage methods. You can choose between three different storage methods:

Browser LocalStorage, which is a client-side solution and does not waste any server resources at all. This option is highly recommended and it's enabled by default. Browser LocalStorage may be unavailable in certain browsers, so a fallback will be always available choosing between the following other storage methods.
PluginLibrary, which is the fastest server-side method but the less reliable (as its cache may vanish at any time, eg. on server's failure).
Database, which ensures that drafts will be always available but may cost something in terms of performances.

When the user posts his message, saved drafts are automatically deleted by the system. Both the message and the subject (if available) are saved.
You can also specify whether to load saved drafts - if available - directly when an user opens the target page or to display a message asking the user to do so.

Minimum requirements
PHP 5.4
MyBB 1.6.0

Quick Reply, New Reply and New Thread pages are supported, as well as plain textareas in additional pages (ID: #message), MyBB 1.6 Clickable Editor and MyBB 1.8 WYSIWYG editor. Quick Edit and Editpost are not available yet.

1.8 users can decide to whether or not show messages using the default jGrowl library, or use Humane.js as a valid alternative. 1.6 users are stuck with Humane.js.

Download - https://community.mybb.com/mods.php?acti...w&pid=1438
-Ben

Please do not PM me for support. I am looking to be hired for paid services.

You can view my paid services here.
Reply
#2
Hi Ben, thanks for sharing this.

I would like to comment that I did test this with the Rin Editor and it seems to work just fine (Rin Editor has a similar feature so I disabled it to test).
Reply
#3
(2021-02-18, 06:50 PM)Ben Wrote: Several options are available to customize your own copy of Drafts AutoSave, including different storage methods. You can choose between three different storage methods:

Browser LocalStorage, which is a client-side solution and does not waste any server resources at all. This option is highly recommended and it's enabled by default. Browser LocalStorage may be unavailable in certain browsers, so a fallback will be always available choosing between the following other storage methods.
PluginLibrary, which is the fastest server-side method but the less reliable (as its cache may vanish at any time, eg. on server's failure).
Database, which ensures that drafts will be always available but may cost something in terms of performances.

I believe I successfully loaded the plug in for Drafts AutoSave but it is now requesting me to add a library. How does one add the needed library?

Thank you!
Helix Fairweather
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)