Gönderen Konu: Real Popup with AdBlock Detection  (Okunma sayısı 299 defa)

Çevrimdışı orhan

  • Yönetici
  • Trade Sayısı: (0)
  • *
  • İleti: 384
  • Karma +19/-1
  • Cinsiyet: Bay
    • Profili Görüntüle
    • webtiryaki.com
Real Popup with AdBlock Detection
« : 15 Mar 2016, 07:49:33 »
REAL POPUP WITH ADBLOCK DETECTION v1.0
Introduction
This hooks-only mod adds the ability to show a customizable popup message to the user, optionally when AdBlock is detected.

Admin Settings
Available settings under Admin -> Configuration -> Modification Settings -> Real Popups are:
o Enable Real Popup mod?
o Special Effect mode for Popup Box (Swing, Slide Down, Star Wars, Newspaper, Wiggle)
o When to display the popup (Immediately, Scrolled Percentage, Wait for # Seconds)
o Period to wait before displaying
o How often to show the Popup box? (Always, Once per Session/x minutes/hours/days)
o Duration to wait before re-displaying
o Maximum Width of Popup (specified either as pixel or percentage)
o Text Color of Popup (expressed as 6-digit hexadecimal)
o Background Color of Popup (expressed as 6-digit hexadecimal)
o Display Popup only on AdBlock detection?
o Use black overlay on AdBlock detection?

Javascript Source Files
o Blossom Opt-in feature box script v1.1 on DynamicDrive.com
o BlockAdBlock on GitHub

Compatibility Notes
This mod was tested on SMF 2.0.11, but should work on SMF 2.0 and up.  SMF 1.x is not and will not be supported.

Changelog
The changelog has been removed and can be seen at XPtsp.com.

License
Copyright (c) 2016, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.