Status: Due to my being overworked at the moment, I am only “sort of” supporting this plugin. If you need full time support I recommend Popup Domination
Nothing is more exciting than when a clients needs collides with a developers interests. I’ve been wanting to write this plugin for a while but never had the time to make it a priority … at least not until this week when a client requested. Synergy! I started writing it this morning and couldn’t stop until I had something releasable.
WordPress jQuery PopUp Plugin
So here is is. Just upload and activate.
Download it!
Thanks for the plugin, it’s just what I was looking for. One problem, though – when I test it, after I click the X to close the pop-up, I can’t click on anything else on my site for about 30 seconds or so – when my mouse is over the browser window it just has the hand as if I’m hovering over a link but when I click it does nothing. After 30 seconds it returns to normal. Any ideas on what the problem is?
That’s interesting? What browser are you using?
Firefox, but it did the same thing on Internet Explorer. I also noticed that it does the same thing for the 30 seconds before (I have it set for a 30-second delay). It’s very strange.
Ahhhh. It must be delaying on entry and exit. I’ll fix that. Thanks for reporting.
Not sure how to use it with any details?
I installed it and then added some content in the “body” text box, then open the front end view. Nothing happened.
Not sure how it’s supposed to work?
Jonathan, I’ll add some supporting documentation soon. Sorry about that. Have you set the status on the box to “enabled” and does your theme have a wp_footer() tag in it?
I seem to be missing the most basic thing… I downloaded and installed fine. I’ve read the read-me and configured the settings.
What I want t is when someone clicks on the specified link they get the pop-up. Is that how this is supposed to work? If so …for the life of me I am not seeing HOW to make that crucial part happen. Please enlighten me.
If not…can you point me to a plug-in that DOES do that?
Thanks.
Sheila
Sheila, right now the plugin is only for automatic popups. So a visitor loads the page and is given a popup message. I’m working on a new version that will give you a shortcode for links in your articles as well as allow you to configure multiple popups. New version is probably a month away though as I’m loaded up on projects.
Hi Mike, have you noticed this not working on Macs? Installed the plugin, enabled it, added some basic test content, doesn’t display in Firefox or Chrome on Mac, shows up fine on Firefox in Windows.
Did the recent update help you at all?
Actually I moved on to another plugin since I needed a solution pretty quickly. I’ll try and reinstall it and give it a test, though. Thanks much.
Just what I was looking for. It works perfectly.
Thank you….
Clint could you PLEASE tell us how does it work?!
I’m working on my WP site in the background and installed this plugin – I love it, except, I can’t get it to ONLY show on the opening page. The popup shows every time I change to a different page on the site…
How do I fix this?
Jenn b, I’m been meaning to add this as a feature but haven’t gotten around to it. You should be able to do something like this in your functions.php:
remove_action('wp_footer','print_popup_script'); add_action('wp_footer','jenns_custom_script'); function jenns_custom_script($array) { if(is_home()) { ?> < ? } }Find the function ‘print_popup_script’ on file jquery-pop-up.php and change the line 203
before: if(!is_admin()) {
after: if(is_home()) {
Greeting,
i very-very like this plug-in. but i get some problem.
i tick the cookies and at chrome it working but at firefox and internet explorer it appear every visitor visit my blog…Huhu
can help me?
@mohd hilmi can you email me a link to the live site??? mike@mikevanwinkle.com
http://www.myhilmi.com try you open via mozilla firefox.
Nice plugin but it lacks only one option.
Could you add the configuration options popup display?
eg.
-Home page
-Visitor landing page
-A specific page (http://)
When setting cookies option popup is displayed on every page to which I will come.
Hey Gustaw, I’m getting ready to release the next version of this that will include (a) the ability to create multiple popups (b) the ability to associate them with a page or a post and (c) the ability to trigger them with a link using a template tag and/or shortcode. Stay tuned. Hopefully it’ll be available by the end of the week.
Excellent
In the future you should think also about the options “Visitor landing page”.
So the popup will appear only once regardless of which page visitors enter.
And the option that allows you to set cookies expiration time after which a popup will appear once again.
Happy coding
I’m sorry I’m twisted with testing of other plug-ins.
This cool option expiring cookies just plug only in your plugin
Hello, sorry for my English.
I am having problem with the Cookie and WP Super Cache pluguin. When WP Super Cache is disabled, the Cookie popup works fine but WP Super Cache to enable the pop up is repeated endlessly.
Any solution?
Thanks for the pluguin.
Sergio
hello
how to add a google+1 code to the pop up
Thanks for the plugin
Hi Michael,
Thanks for the great plugin. We’re currently developing a site with your pop-up plugin and it works awesome!
I wanted to let you know about a couple of bugs we’re experiencing with the latest version (0.3).
1. We have the plugin set for a 4 second delay before it appears. During those 4 seconds, the mouse hand turns into the pointer hand symbol that is used for clicking links regardless of what we’re hovering over.
Furthermore, even if we do hover over a link we still can’t click it for it to take us to another page. Meaning that users are stuck on the front page and can’t navigate away until the pop-up delay is over (in our case, 4 seconds). For some sites with a longer pop-up delay such as 30 seconds, this could be a bad problem.
2. While waiting for the delay, if I scroll with my mouse, then when the pop-up appears it’s partially transparent. Here’s a screenshot: http://screencast.com/t/kA4bEcn0
Are these issues that you’re able to replicate? Or is it possible that these issues were already going to be fixed in the next release of your plugin?
Thanks,
Paul
Hello Michael,
Thanks for working on this. I’ve been trying to get this to work and one major problem is that cookies don’t seem to work.
This was confirmed in every browser I’ve tested so far. Couple weird things:
1) The cookie is downloaded. I can see it in the browser. It just has a problem detecting the cookie.
2) It seems to work when I’m logged into the dashboard. The popup only appears once.
Oh, and for some reason it won’t let me log out unless I clear the cookies.
I had unhooked ‘popup_footer_div’ to use some php in the content of the popup. Could that be causing the problem?
> Brian
Brian, are you using a caching plugin like W3 Total Cache?
We do have w3tc enabled on the main site but the dev site does not have caching and there’s the same problem.
Still, it seems to me that it shouldn’t matter… If you have to clear the cache for most users. Looking at your code, it seems like you’re using PHP instead of AJAX to check for cookies. Why?
Ok, I changed the code for the dev site that made it work (when you do a hard reload on the browser side):
line 203: (in print_popup_script() ) if ( !is_admin() && !popup_cookie_check() ) {
And I had to commend out if (!session_id()) { session_start(); }.
So that seems to make it work if you turn caching off on the site AND have users that always hard refresh their pages. Doesn’t seems like a workable solution…
Thanks for getting back so soon. That’s awesome.
- Brian
Mike,
I got AJAX cookie checking functioning on the site I was working on. Here’s the code I inserted into functions.php to do it:
/*
* Added by brianfactor
* This was changed so that AJAX cookies would work
*/
remove_action(‘wp_footer’, ‘popup_footer_script’,10);
add_action(‘wp_footer’,'custom_popup_footer_script’,10);
function custom_popup_footer_script() {
$options = get_option(‘popup_options’);
global $popup_cookie;
// check if is disabled
if($options['mode'] == ‘enabled’ && $popup_cookie != 1) {
$array = setup_popup_options();
custom_print_popup_script($array);
} elseif($options['mode'] == ‘disabled’) {
//do nothing
} else {
if($_GET['pop'] == ‘preview’)
{
$array = setup_popup_options();
custom_print_popup_script($array);
}
}
}
function custom_print_popup_script($array) {
if( !is_admin() ) {
?>
if ( !custom_popup_seen() ) { // checks cookies
var j = jQuery.noConflict();
j(document).ready(function() {
j(‘#jq-popup’).bPopup();
});
}
// Written by brianfactor, 24 Sept 2011
// Returns true of popup_seen_ cookie is set
// false if not found
function custom_popup_seen() {
var CookieArray = document.cookie.split(‘;’);
for (var i=0; i < CookieArray.length; i++) {
if (CookieArray[i] === ' popup_seen_=1')
return true;
}
return false;
}
<?php
}
}
This is the way to do it in my opinion. You can integrate this into your next version…
Yes, I agree that this is a better apporach since it should also allow the popup to be able to be compatible with caching plugins. I’ve been planning something like this, but lack of time has prevented it from taking shape yet. Thanks for posting.
MIke
When will the long-awaited new version?
Please release it.
Thanks for developing this simple yet multi-functional plugin.
Just wanted to let you know im experiencing no huge problems at all. (:
I see working with this plugin in the future often and even making it my go-to popup for WP.
Only minor issue i got is already mentioned above:
“2. While waiting for the delay, if I scroll with my mouse, then when the pop-up appears it’s partially transparent. Here’s a screenshot: http://screencast.com/t/kA4bEcn0
Are these issues that you’re able to replicate? Or is it possible that these issues were already going to be fixed in the next release of your plugin?”
I “solved” this by minimizing the time the visitor could actually scroll.. lol. I went from 2 to 0.5 seconds delay.
Hope the development continues! cheers
I was looking for it, thank you for sharing it here.. gonna try this..
Hi, i have installed your popup plugin, but the plugin is not showing
i have added meta refresh tag in the popup, so the page is refreshing but the popup is no there
here is test page http://www.alexa.mk/m/ you will see that the page will be refreshing every 3 sec. but the popup is not showing
Hi Mike, I installed my wordpress pulgin just do not know what to put in the callback function in the Body and … can you help? how do you work in wordpress?
but there is nobody who can help me?
Hi Alex, I’m sorry you are having trouble. I am on vacation until the 18th. The callback should run automatically.
hi mike, but in the body?
Nice plugin! Although i don’t think this is working with WP 3.2. At least not on my end.
Mike I cant get your plugin to work
Thanks
Hey guys, I’m not sure what the status of this plugin is, popup domination is a great plugin option that everything this plugin does and more. I may update this one, but I may not.
Mike
Thanks Mike I don’t like the cost of that plugin
Hey Jeff, I totally understand that … but it’s a tradeoff. Supporting a plugin takes time and it’s hard to do it without making a little money.
Cheers,
Mike
I tried one of the “fixes” regarding this: remove_action(‘wp_footer’,'print_popup_script’);
add_action(‘wp_footer’,'jenns_custom_script’);
function jenns_custom_script($array) {
if(is_home()) {
?>
< ? }
…& all I get is this:
Fatal error: Call to undefined function is_coupons() in /homepages/12/d385934308/htdocs/rainforestclean/wp-content/plugins/jquery-popup-plugin/jquery-pop-up.php on line 53
I cannot get to the back end to deactivate the plugin.?? HELP!
As with any plugin, you can always forcibly uninstall by deleting the folder from the system.
Or just rename the plugin’s folder via FTP. It’ll deactivate, then rename the folder back to it’s original name and you can re-enable it.
Hey Mike – I see youre really active on the site, so ill throw this question out there to you… Im looking for a pop up intercept for simple registration or subscription purposes… Thoughts?
Mike, please develop your plug-in and spend the new versions. Maybe you need some grant?
Hmm. What do you mean by “intercept”? … if you were doing it custom I’d recommend just using fancybox, though if you need it prebuilt I’m not sure what the best option would be.