Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
765 views
in Q2A Core by
edited
I have messages to first time users and new registers enabled. What's the best way to make the HTML notification dissappear automatticaly after X seconds? Yes, the user can click on the X icon to manually close the message, but it would be nice if we (admin) could set number of seconds after which the notification(s) would automatically disappear.
Q2A version: 1.5.4

1 Answer

+1 vote
by

In the "qa-content/qa-page.js" file, find (arround line 25)

function qa_reveal(elem, type, callback)
{
    if (elem)
        $(elem).slideDown(400, callback);
}

 

replace with

function qa_reveal(elem, type, callback)
{
    if (elem)
        $(elem).slideDown(400, callback).delay(2000).slideUp(400);
}

This should do about what you are looking for (in this case the "time out" for the notice display is set to 2 sec (2000 ms).

However, this is a hack in the core, not a possibility to set it via the admin panel as you suggest

 


 

...