The purpose of this plugin is to allow users to create one or more modal dialog(s) / pop-up window(s) that will appear when a user visits their site.
The purpose of this plugin is to allow users to create one or more modal dialog(s) / pop-up window(s) that will appear when a user visits their site. The number of times that these can load is configurable. They can load content from external sites or custom HTML code into the dialog. This plugin can be used to invite people to register to a newsletter, respond to a survey, or simply welcome come to a site upon their first visit.
You can try it out in a temporary copy of WordPress here.
There are typically two main reasons why Modal Dialog does not show up correctly on web pages:
1- You have another plugin installed which uses jQuery on your site that has its own version of jQuery instead of using the default version that is part of the WordPress install. To see if this is the case, go to your site and look at the page source, then search for jQuery. If you see some versions of jQuery that get loaded from plugin directories, then this is most likely the source of the problem as they would conflict with the jQuery 1.3.2 that is delivered with WordPress.
2- The other thing to check is to see if your theme has the wp_head and wp_footer functions in the theme’s header. If these functions are not present, then the plugin will not work as expected.
You can send me a link to your web site if these solutions don’t help you so that I can see what is happening myself and try to provide a solution.
You can create a button or other control that calls the following javascript:
parent.jQuery.fancybox.close();
Call the following javascript / jQuery function, setting the cookie-name to match the name entered in the Modal Dialog settings, the cookievalue and the duration to any duration that you deem acceptable.
jQuery.cookie(‘cookie-name’, cookievalue, { expires: 365 });