PopUp Per Page

Component ID

2544072

Component name

PopUp Per Page

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module integrates the CoverPop JavaScript library (https://github.com/chloeleichen/CoverPop) into Drupal.
This particular library fork adds integration with cookies, so users can disable the popup for two different time periods, adjustable in admin section.

Known Limitation:

Do not create more than about 20 PopUps Per Page. If your users will disable the popups they can reach a cookie limit of their browser (http://browsercookielimits.squawky.net/). If they do, the oldest cookie gets deleted –> popup show again on that page –> user is not happy.

Instalation & usage

  1. Install and enable the module as normal (you can visit https://www.drupal.org/documentation/install/modules-themes for more information)
  2. Download the CoverPop library from https://github.com/chloeleichen/CoverPop
  3. Extract the library to 'sites/all/libraries/coverpop'
    • correct path to the js file is 'sites/all/libraries/coverpop/CoverPop.js'
    • correct path to the CSS file is 'sites/all/libraries/coverpop/CoverPop.css'
    • default CSS contain just the basics, you will definitely need to do some own styling. By default the PopUp will show in top left corner.
  4. Go to 'admin/config/user-interface/coverpop' and made required adjustments
  5. Anything you give an ID="CoverPop-cover" will became a PopUp, be it a block, panel pane, webform… – do you see the possibilities? With this approach you can have different PopUps on any page.

Requirements