SSL Labs ScoreSecurityHeaders.io Score

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

Thank you for disabling your ad blocker (Bootstrap version)

More
1 month 17 hours ago #1132 by michael
michael created the topic: Thank you for disabling your ad blocker (Bootstrap version)
In the System - Ad Block Reactor plugin configuration, add...

Let your users know that you appreciate their compliance with your request to disable their ad blocker for your site.

In the System - Ad Block Reactor plugin configuration, add this code as a "Change Action":

document.addEventListener('ABREvent',function(e){ 
var start = Joomla.getOptions('plg_system_adblockreactor').lastreport;
if(!e.detail && start) {
var modal = jQuery('<div class="modal hide fade"/>').appendTo(document.body);
var header = jQuery('<div class="modal-header"/>').appendTo(modal);
jQuery('<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>').appendTo(header);
jQuery('<h3>Thank You</h3>').appendTo(header);
var body = jQuery('<div class="modal-body"/>').appendTo(modal);
jQuery('<p>Now that your ad blocker is disabled, you can use the cookie controls to accept and decline cookies. The Google ads come and go when cookies are accepted and declined.</p>').appendTo(body);
modal.modal('show');
}},false);

This will create a modal that displays when a user has turned their ad blocker off. If your're running a bootstrap template, it should look like this.

Read article...

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Kunena Forum