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

XF 1.4 Question about "new messages have been posted since you loaded this page"

Discussion in 'XenForo Questions and Support' started by imthebest, Apr 8, 2015.

  1. imthebest

    imthebest Formerly Super120

    Hi,

    Regarding the AJAX notification "new messages have been posted since you loaded this page", do it happens only when you have enabled the auto save drafts functionality? I'm asking this because Mike said the following on the introductory HYS for 1.2:

    https://xenforo.com/community/threads/a-new-editor-and-much-much-more.50519/ <-- btw the image that explains the functionality seems to be missing from the post!

    Also, when does the AJAX notification executes? Only when you click on the editor?

    Thanks,
    Super120
     
  2. HWS

    HWS Well-Known Member

    It executes, when you send a new post or when a draft is saved.
     
  3. imthebest

    imthebest Formerly Super120

    When you say "when you send a new post" you mean when I start typing my new post after clicking on the editor, right?
     
  4. HWS

    HWS Well-Known Member

    It will be triggered when the "Save Draft" event occurs. A few seconds after you started typing. It will also be triggered, when you send a new post with clicking at the "Post Reply" button.
     
  5. Amaury

    Amaury Well-Known Member

    It comes up if someone made a post while you were typing a post yourself.
     
  6. imthebest

    imthebest Formerly Super120

    I have the drafts functionality turned off so it means that the only way in how it could happen on my forum is after someone clicks on the editor, right?
     
  7. HWS

    HWS Well-Known Member

    After someone submits a post. This would be my experience.
     
  8. imthebest

    imthebest Formerly Super120

    @HWS okay after someone submits a new post you get the alert but what you need to be doing in order to get the alert? You need to click in the editor?
     
  9. HWS

    HWS Well-Known Member

    From my experience:
    If you have disabled drafts, you only may get the alert (if someone else has written a new post) after hiting "Post Reply". This is because your reply will be inserted via AJAX, so you don't get posts loaded which have been written in the meantime.
     
  10. Mike

    Mike XenForo Developer Staff Member

    The message in question only comes up when triggering the draft saving (as mentioned in the original quote).
     
  11. imthebest

    imthebest Formerly Super120

    So if I have the draft saving feature turned off it means that I'm not going to experience this alert, right?
     
  12. Mike

    Mike XenForo Developer Staff Member

    Correct.
     

Share This Page