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

Message in overlay (assertNotFlooding)

Discussion in 'XenForo Development Discussions' started by Valhalla, Jun 4, 2014.

  1. Valhalla

    Valhalla Well-Known Member

    I have a button which performs an action, but stays on the current page to do so, I'm using $this->assertNotFlooding to prevent overuse of this action button. However, when clicked (and when flooding has taken place) the exception message given is shown in a new page, instead of an overlay (like would happen for post or report flooding).

    How might I serve this message within an overlay to keep consistency? It's perhaps not possible to return this message using PHP, I'm looking at changing either the form class, or the input button class. I have tried using the obvious classes to initiate the overlay box, however.
  2. Nobita.Kun

    Nobita.Kun Well-Known Member

    In form class you should add an class: 'AutoValidator'

Share This Page