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

XF 1.4 Controlling the Length of Time for Showing Temporary Notifications

Discussion in 'XenForo Questions and Support' started by Aivaras, Aug 4, 2015.

  1. Aivaras

    Aivaras Active Member

    Is there a way to control for how long overlaid temporary notifications such as:

    150804 Temporary Notification.png

    are shown?

    Too often notifications vanish before I can finish reading the text. I would like to adjust this.
  2. Amaury

    Amaury Well-Known Member

    I think it's controlled by the speed options in Style Properties > Overlays and Tooltips > Settings.
  3. Aivaras

    Aivaras Active Member

    Thanks. I'll check those properties out.
  4. Aivaras

    Aivaras Active Member

    Unfortunately, couldn't pin it down. I tinkered with @ajaxProgress and @redirectMessage but had no luck. Additional guidance would be much appreciated.
  5. Chris D

    Chris D XenForo Developer Staff Member

    There isn't a setting to adjust this.

    The timeout for the specific type of AJAX success/redirect messages you're referring to (there are other cases which this doesn't cover) is explicitly set in the JS.

    In js/xenforo/min/xenforo.js find:
    Replace with:
    Where 9999 is the number of milliseconds as desired.

    Unfortunately, as this is a direct code edit (and not really recommended) any changes you make here would need to be reapplied after every XF upgrade.
    Amaury likes this.
  6. Aivaras

    Aivaras Active Member


    I understand this.

    Still, some temporary notifications are too long to read in the short while one is accorded. I literally had to take screenshots to get the exact content of those messages.

    One possibility is to make this parameter available in ACP for further adjustment as different languages do vary in length and time necessary for reading comprehension.
  7. Aivaras

    Aivaras Active Member

    Another idea would be to make the duration relative to the number of characters in the notification...

Share This Page