1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Message Auto Save / Drafts 0.1

Auto-saves your posts seamlessly so you don't lose anything if your browser crashes.

  1. moman

    moman Active Member

    moman submitted a new resource:

    Message Auto Save / Drafts (version 0.1) - Auto-saves your posts seamlessly so you don't lose anything if your browser crashes.

    Read more about this resource...
    Digital Doctor, Coop1979, RvG and 3 others like this.
  2. Rob

    Rob Well-Known Member

    Is the user notified when an autosave is made - i know vbulletin displays a yellow div to say so.
  3. moman

    moman Active Member

    No, they aren't at this time. It's all behind-the-scenes and any saved content is automatically displayed in the editor when you re-open the page.
  4. n00b question: does this go before or after <./script> ?
  5. Chris D

    Chris D XenForo Developer Staff Member

    It would be after :)
  6. MsJacquiiC

    MsJacquiiC Well-Known Member

    Fantastic resource! Thanks for the share.

  7. hansguide

    hansguide Member

    As far as I can see this addon is struggelig with Opera. Is this correct or?
  8. MsJacquiiC

    MsJacquiiC Well-Known Member

    Add-on works just fine in Opera ;)
  9. hansguide

    hansguide Member

    So why does it not work then?
  10. MsJacquiiC

    MsJacquiiC Well-Known Member

    I'm not sure what you mean. But I use the modification on my forum - I also use Opera as my primary browser ==> It works just fine.
  11. DRE

    DRE Well-Known Member

    I lost this, forgot about it, can't believe I had forgotten it for this long, reinstalled, enjoying it. :D
  12. sybase22

    sybase22 Member

    I tried this but i am not sure if it does work to my board. I tried to close the browser after i wrote a lil message but when i visit the thread again i don't see my old text there o_O
  13. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    I have a small issue with this. The current code associates the data with the URL as a key. One of my members stumbled on a case where he wrote a message, then decided to edit the thread title, thus changing the thread URL (friendly URL are enabled), and losing his message.

    I suggest that the code should key the content on the controller/action/id combination rather than just the URL. How should I modify this portion of code that calculates the storageKey? Maybe XF core JS script already had an existing function to do exactly this?
    var storage localStorage || window.localStorage;        
    urllen window.location.href.split('/');
    dl urllen[0].length urllen[2].length 2;
            catch (
    dl 0;

    storageKey window.location.href.slice(dl);
            if (
    storageKey.indexOf('#') != -1)
    storageKey storageKey.slice(0storageKey.indexOf('#'));
  14. Flexin

    Flexin Active Member

    I get random errors when posting in threads from time to time which I still haven't nailed down the cause of yet. This should save me a lot of headaches. I seem to have it happen when I have the long posts. It wouldn't happen when I post the one sentence answer.

    Thank you.

  15. Jeremy

    Jeremy Well-Known Member

    1.2 has a drafts feature built in.
  16. Flexin

    Flexin Active Member

    I forgot about that. Thanks. This will hold me over till then. I don't want to have to retype one more of my long posts.

  17. Alexey.P

    Alexey.P Member


    Where can I see the saved drafts?
  18. Numenorean7

    Numenorean7 Member

    As someone said up there, there's now a draft feature in XF 1.2.
  19. Deepmartini

    Deepmartini Well-Known Member

    Is this even needed anymore? Isn't it in 1.2?
  20. BamBam

    BamBam Active Member

    Are there any Settings for this Auto-Draft in 1.2?

Share This Page