Hello,

I have a question : how-to open splash block 5 seconds after page load ?

Could you add option for do this ?

By advance , Thx

Alex

CommentFileSizeAuthor
#2 splash-delay_2362367_2.patch5.59 KBboehmrya

Comments

boehmrya’s picture

Hi Alex - I really like this recommendation. I also know of a couple clients who have asked for this feature. I will start working on a patch.

Thanks again,
Ryan

boehmrya’s picture

StatusFileSize
new5.59 KB

Hello again - i've attached the patch. Namely, i've added a setting underneath the splash interval setting called "splash delay". It appears to work correctly according to my testing, but please let me know if any changes should be made. Thank you!

boehmrya’s picture

Status: Active » Needs review

  • kvnm committed c41500b on 7.x-1.x authored by boehmrya
    Issue #2362367 by boehmrya | Redbrick: Added open splash block 5seconds...
kvnm’s picture

This is a great patch, boehmrya. I modified 2 pieces:

  1. Made jStorage value set a part of the setTimeout() call, to guard against inconsistencies.
  2. Fixed up validation a bit (delay-based validation needed to form_set_error against the correct field, and would not allow a 0 (default) value to be set.

Committed and pushed to 7.x-1.x-dev

kvnm’s picture

Status: Needs review » Closed (fixed)
redbrick’s picture

It works great for me, thank you!

If you want, I have some ideas to improve this module :

- Agree (close) and dismiss( link with target),
- option for close with escape key (or not),
- option for close when click on overlay (or not)

best regards,
Alex

kvnm’s picture

Cool -- could you start a new issue for each suggestion?

By the way, if you click on the overlay, the modal should close. Do you mean that you'd like to see a settings form somewhere that allows users to specially toggle that feature on and off?