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" ]
-or-
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.
Really nice plugin! I used it on my new web hosting website and the real thing is that i used it for Invitation to inaugurate.
thanks for this:)
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.
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.
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?
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,
No options for this one just yet – upcoming release will allow for these settings. For now it might be easier just to edit /wp-content/plugins/emc2-popup-disclaimer/js/emc2pdc.js and adjust overlay color manually. http://jsfiddle.net/jRsjK/
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?
Nevermind I figured it out.. was some code on the page I used.. Sorry. Great plugin. Will donate to the cause! Appreciate your work.
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…