Simple Popup module

1 1 1 1 1 Rating 4.58 (24 Votes)

User Rating: 4 / 5

Compat icon 3 x longfirst look joomla 4This very simple module, using  Velocity version 1.5.0 , displays a popup message at a fixed position of your screen. It respects Content Security Policy.

 

Version 1.2.0 : Joomla 4/PHP 8 compatiblity
Version 1.1.12 : wrong librairies path call
Version 1.1.11 : secured cookie
Version 1.1.10 : force Jquery loading
Version 1.1.9 : cache error => Joomla.getOptions error
Version 1.1.8: incorrect opacity parameter 
Version 1.1.7: rgba popup color (transparency)
Version 1.1.6: Multiple popups on scroll
Version 1.1.5 : toggle button on scroll
Version 1.1.2 : undeclared var $delay
Version 1.1.1 : CSP multiple instances
Version 1.1.0 : CSP compliance
Version 1.0.17: scrool + cookie handling
Version 1.0.16: Joomla 4.0 compatibility
Version 1.0.15: display after delay or on scroll
Version 1.0.14: normalize cookie usage
Version 1.0.13:new name (JED compatibility) + delay
Version 1.0.12: use class suffix
Version 1.0.11: use content plugins to format output
Version 1.0.10: package mode (add param layout)
Version 1.0.8: secondary update server
Version 1.0.7: New parameter: cookie duration (2017 August)
Version 1.0.6: New parameter: title button (2017 August)
Version 1.0.5: add rel='noopener noreferrer' (2017 August)
Version 1.0.4 : first version (2017 August)

CGPopup Package Download

(already downloaded 2406 times)

CGPopup Package Download Joomla 4

(already downloaded 141 times)

 

This module is displayed at a fixed position choosed between top, center, bottom,left and right. It is strongly recommanded to set it up in your template debug position.

Careful: when you select your template position, please check that it is not hidden by a "upper module" (using a higher z-index value). For example, I had to put top module in Logo position. Bottom module is in Debug position.

You may use "Close" button to let users closing your popup. If so, your popup will stay hidden for a month. User choice is stored in a cookie.

If you wish to display a new message, enter today's date in "Display Date": this will suppress your cookie and so display your popup again.

With version 1.0.6, if title button parameter is set to yes, a button containing your module title is displayed in place of your popup if it is hidden. Clicking on this button will display your popup again.

New parameter Cookie Duration (version 1.0.7) is set to 0 for demo purpose.

Like any module, you may enter a starting or a finish date.

Version 1.0.11 is now using content plugins. In my example, I used UP plugin from our friend Lomart with the following content (it may be seen using any non WYSISWYG editor).

{up box=danger | class=w12} <i class="fa fa-bullhorn" style="font-size:3em";></i> &nbsp;Let's try it using  <a href="https://up.lomart.fr/" target="_blank" rel="noopener noreferrer">UP content plugin</a>, so we may display anything we want ...{/up box}