Modal Dialog
NOTICE:I recently published a book on plugin development with Packt Publishing.
I have accumulated a lot of user questions while I was working on that project and am slowly catching up answer them. Before asking a new question, I recommend that you read through all comments here, through the forum on the wordpress.org and through the FAQ before asking questions. I will try to get back to you as soon as possible. Thank you for your understanding.
This plugin allows users to add a pop-up dialog to their site on all pages or specific pages, that can appear once or multiple times. The dialog can contain content defined in the admin pages or content from an external web address.
You should normally see an example of the plugin’s capabilities while viewing this page.
Donations
If you feel generous and really like this plugin, here is a donation link on Paypal:





I'm a tech enthusiast working in the modeling and simulation software industry. I'm also married and the father of two very energetic little girls.





Hello Yannick,
I used your plugin since many months. It always worked very well, but since yesterday it doesn’t appear anymore. I tried to uninstall but it didn’t change nothing : the box doesn’t appear. I really don’t understand from where come the problem…
Thank you in advance for your help.
Regards,
Anthonin
Hi Anthonin, Did you recently upgrade Modal Dialog? A change that was introduced a few versions back is that you now need to specifically say if you want Modal Dialog to show up on the front page in the options page. Can you try to set that option and see if the dialog comes back?
Hi Yannick and thank you for your answer.
Unfortunnately no, i did not update Modal Dialog. When i uninstall it and reinstall, i had the new version, and i see the option to show on the front page and i check it. So i think the problem doesn’t come from here.
Sorry for my bad english, i am french !
Regards,
Anthonin
I send you a screenshot of my config : http://i.imgur.com/p4ETT.png
Is there something wrong ?
I really do not understand what happened…
Hi Yannick,
Great plugin! We’ve just about got it working perfectly for us, with one issue. We’re trying to get it firing from an onClick event in addition to the normal modal display.
I’m using the following code for the link:
[a onClick="openDialog();" href="#" title="Email"]Email[/a]
Along with this JS in the footer:
function openDialog() {
alert(‘in openDialog’);
$(‘a#inline’).trigger(‘click’);
}
The onClick fires and displays the alert, but the modal window never shows.
I’ve tried it with and with the “Set display cookies manually” checked in the config. Any idea what might be happening? Am I missing something. The website for reference is: http://bit.ly/QvUiU7
The click event is off the main menu: Subscribe > Email.
Thanks for any assistance!
John
After e-mail discussion, the answer was:
It looks like I got it working. Should have seen it sooner, but the
trigger should be attached to:
$(‘a.iframe’).trigger(‘click’);
Best,
John
Hi,
The puglin is wonderfull, but i have one cuestion, It is possible to launch two different dialogs through two different links?
It works fine with one Dialog, but when i try to add a new Dialog, the two links launch the last dialog I created, is it a way to launch the first dialog through the first link and launch the second dialog through the second link?
I use the following code to lauch the first dialog:
Click here to open dialog
Many thanks for your support.
Kind Regards,
Ion.
Hi Ion, No. A single page can only have one dialog.
I have installed modal dialog at my website and it works fine. But it does not allow me to change the size of title. Also doesn’t let me add space in page using. . Tried everything but may be theme is stopping it or I am doing something wrong.
Hi Arn, On which page of your site did you set Modal Dialog to appear? I need to see how you configured it and how it’s appearing to be able to recommend a solution.
I finally managed to run this wonderful plugin. I wanted to ask you one thing. I want to show the popup forever, without cookie, expiration and even 10000 times a day. how set “Number of days until cookie expiration” and “Number of times to display modal dialog”? I have not found a guide to all the various options. maybe some options are redundant. thank you and sorry for my poor english.
Hi Luca, You can just check the ‘Set display cookies manually’ box and not set the cookie. That way, it will always display.
thank you, perhaps it might be useful a light version of the plugin, where you can leave only when and where to show the popup (after a post especially)
thank you again
Can you modify this to open on a button click, not just automatically? Thanks
Hi Scott. Sure, you can just set the number of times to display to 0 and use the following code to get it to open from a click:
[a onClick="openDialog();" href="#" title="Email"]Email[/a]
Along with this JS in the footer:
function openDialog() {
alert(‘in openDialog’);
$(‘a#inline’).trigger(‘click’);
}
Of course, square brackets should be replaced with HTML brackets.
trying to use the onclick trigger without any success. putting the function into the wp footer. if I comment out the line: $(‘a#inline’).trigger(‘click’); the alert will be called but if i leave that in no alert and no modal. any ideas??
Hi Chris, Can you send me a link to the page where you are trying to do this so I can see it live and run it through Firebug?
Hello, great plugin. But I’m having trouble getting it to play nicely with Fancybox (http://wordpress.org/extend/plugins/fancy-box/). I see that your plugin also uses fancybox, and I’m guessing there is some sort of conflict. Any help or ideas would be great.
Okay, I actually ended up making a quick patch for my issue. I actually just pointed the Fancybox plugin to your set of Jquery fancybox files. But if you have the correct way, I would definitely appreciate some advice. This is just a temporary fix until I find a better solution.
Hi Ram, Sorry for the lack of response. I have been getting much more spam than normal with the recent attacks on WordPress sites so I did not see this go by. What you did is pretty much the only thing to do. The two plugins use slightly different versions of fancybox, thus making them not work well with each other.
Hi Yel,
I’ve spent a couple of hours trying to get this working and no joy, just wondered if you can spot anything wrong with our theme or installation of Modal Dialog if you could help?
Thanks in advance!
Hi Dan, What is the address of the site on which you are trying to use Modal Dialog? Is it IntentData? I looked on that site and am not seeing any trace of Modal Dialog, at least not on the front page. Please indicate the address of a page on which you expect to be seeing Modal dialog and I can see what is happening.