EMC2 Popup Disclaimer

EMC2 Popup Disclaimer uses Fancybox (http://fancybox.net) to display the popup, and jQuery-cookie (https://github.com/carhartl/jquery-cookie) to detect user session. Creates a cookie named “emc2pdc” that can be viewed with regular developer tools.

Download V1.2

Easy to use! By default the script is added to the wp_footer action and will work quietly. You can also force the display on pages via shortcode or function call:
Shortcode: [ emc2pdc id="42" ]
Function: <?php emc2pdc_force( $atts=array(), $force=NULL, $id=NULL ); ?>

Check the WordPress page at http://wordpress.org/extend/plugins/emc2-popup-disclaimer !

To Do list:

  • Add No-JS fallback support
  • Create a selection of button themes
  • Add support for different lightbox types
  • Improve handling, add PHP cookie support

Known bugs:

  • Recursive post shortcode call results in chaos.

17 thoughts on “EMC2 Popup Disclaimer

  1. Can you provide better notes, or improved functionality for specifying certain pages for the popup? I really only need it on a single page, and even with your notes I cannot figure out how to make that happen.

  2. Hello
    Downloaded this and cannot see how to configure it. Don’t know PHP so canneot go there. It seems to be exactly what I need if only I could change the content and set it to work on just one of my pages.

  3. When adding the shortcode to a post the required function of the pop up works great. It loads the page I have created etc. The problem is that whatever page I place the shortcode in to call the popup, that pages STYLES are stripped out. All formatting and styling of the text/content is removed and I just get large blocks of plain text. No breaks in paragraph, no bold headers, nada. How do I fix that?

    • I thought that this might be an issue with how the plugin pulls the post content, but after checking the display function I see that content is displayed like so:

      echo apply_filters(‘the_content’, $text->post_content);

      Looks like the demo site here is displaying the post styles as well. Troubleshooting: what happens to the popup content if you change your active theme?

  4. How do I change the Opacity value from 0.7 to 1.0 in the fancybox-overlay? Been searching the plugin code but can’t find it anywhere. Thanks,

  5. Nice plugin, thanks but after pressing the ‘accept’ button, it doesn’t go away. I press “deline” and it works fine, just the accept doesn’t work.
    Any ideas?

  6. Hi all …i hv installed this plugin but its not working…
    i hv added a post tht shud b the content of the disclaimer
    but i am giving the post id in the settings page of the EMC2
    but m getting no popup…what to do ??plz suggest…

  7. I need the popup to function on a subsection of my site and I can’t figure out how to get the cookie to work with the short code. I’ve added the short code to each of the pages it needs to cover and it works great. Just need a little help to keep it from coming up after it’s been agreed to the first time. Thanks!

    • The shortcode forces the disclaimer to display, regardless of whether the user has previously accepted the terms or not. The next major version of the plugin will feature better control over these settings.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>