*

KaloSex

  • ****
  • 139 posts
Any way to keep flash messages in spot until user close them?
« on: February 04, 2023, 04:29:37 PM »
Some users complain that they don;t see the message that they need to activate their accounts. I wonder if there is any option to keep the message there until user close it, or create landing page after they click to register?

*

MB Themes

Re: Any way to keep flash messages in spot until user close them?
« Reply #1 on: February 04, 2023, 06:25:06 PM »
Keep them open also after reload is not possible.
Keep them open on same page is possibke by removing piece of code from global.js
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on February 06, 2023, 08:44:36 AM
*

KaloSex

  • ****
  • 139 posts
Re: Any way to keep flash messages in spot until user close them?
« Reply #2 on: February 04, 2023, 10:04:20 PM »
Ok thank you very much. I edited the code, which i paste below so other people can locate it easily too, if they want

Code: [Select]
// HIDE FLASH MESSAGES AUTOMATICALLY
  window.setTimeout(function(){
    $('.flash-wrap .flashmessage:not(.js)').css('opacity', 1).css('margin-top', '0px').css('margin-bottom', '0px').animate( { opacity: 0, marginTop:'30px', marginBottom:'-30px'}, 300);

    window.setTimeout(function() {
      $('.flash-wrap .flashmessage:not(.js)').remove();
    }, 300);
  }, 10000);

I edited the 10000 miliseconds...
(i think thats is right, right?)
« Last Edit: February 06, 2023, 08:44:34 AM by MB Themes »

*

Hugo

  • ****
  • 186 posts
Re: Any way to keep flash messages in spot until user close them?
« Reply #3 on: February 05, 2023, 10:41:48 PM »
Which file is this? where you adjust the code
.

*

MB Themes

Re: Any way to keep flash messages in spot until user close them?
« Reply #4 on: February 06, 2023, 08:44:24 AM »
It's global.js in theme folder/js
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots