WordPress.org

Ready to get started?Download WordPress

Forums

Modal Dialog
Modal box won't load (22 posts)

  1. darrylkraemer
    Member
    Posted 2 years ago #

    Hi Yannick,

    Great plugin you have here. I've used it in the past on http://vibrant-living.ca without issue, and am now running into problems with a new theme we've installed.

    I think it is a jquery conflict issue, but can't pin it down.

    Would you mind taking a look and see if you can make sense of why it is not showing?

    Thanks,

    -DK

    http://wordpress.org/extend/plugins/modal-dialog/

  2. Yannick Lefebvre
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Darryl,

    Running Firebug on the page, there seem to be a number of problems with the javascript. First, it is complaining about bad syntax around the jQuery append call that you have in your header. Then it talks about Cufon not existing for your superfish menu. And finally, it gets in an endless loop through a recursive function that keeps looping forever.

    Once you resolve these issues, you will likely see the dialog.

    Yannick

  3. darrylkraemer
    Member
    Posted 2 years ago #

    Thanks for the quick reply, and troubleshooting Yannick. I've sent your reply to the theme developer to address the issues which will hopefully then allow the modal box to be invoked.

  4. misus180
    Member
    Posted 2 years ago #

    Hi Yannick,
    I've been asked to implement a modal-dialog function for a client and I figured that your plugin would be the best route. However I can't seem to get the plugin to work correctly. The dialog content is not being loaded at all.
    The site is a mess but I don't think there's any duplicate jQuery files being loaded.
    Would you mind taking a look at the site to see if you can figure out what's going on
    http://www.ostersundsfk.se/?page_id=232

    Thanks for a great plugin.

    Mikael

  5. Yannick Lefebvre
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Mikael,

    Did you change to a different modal dialog plugin? Because I saw a dialog come up when I just visited that page.

    Perhaps you had a problem at first, but the cookie was still set. Try removing cookies for your site to see.

    Yannick

  6. misus180
    Member
    Posted 2 years ago #

    No I got it working perfectly. The MailPress sign-up widget loaded it's own jquery and that was the problem. Didn't see it at first since it wasn't loaded in the head.

    Thanks so much for getting back to me so promptly and thanks again for a great plugin.

    Mikael

  7. paulolyslager
    Member
    Posted 2 years ago #

    Hi Yannick, sorry to say that the plugin isn't working on my website either and can't seem to find the problem. I used to get it working a while ago but it has stopped for now. If you have time, could you have a look at it please? Website is http://www.paulolyslager.com.

    Cheers,
    Paul

  8. Yannick Lefebvre
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Paul,

    I see that you are loading a second copy of jQuery somewhere in your code:

    jQuery.loadAsync('http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');

    This will definitely mess up Modal Dialog.

    Yannick

  9. paulolyslager
    Member
    Posted 2 years ago #

    Hi Yannick, that did the trick alright. I thought that by loading the script async it wouldn't mess up de Modal Dialog. Unfortunately I need to load the script for other things on the website. Is there a way around to make your plugin work without taking out the jQuery separately ?

    Cheers,
    Paul

  10. Yannick Lefebvre
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Paul,

    Why do you need to load another copy of jQuery? Since Modal Dialog already loads the copy of jQuery that comes with WordPress in memory, you can use this one without loading your own.

    Yannick

  11. paulolyslager
    Member
    Posted 2 years ago #

    The reason is that I would like to have all the scripts loaded async if possible. What will happen if your scripts (fancybox, cookie, jQuery) are loaded async? Will the plugin still work?

  12. cherylez
    Member
    Posted 2 years ago #

    I was having problems with wp-superpop and someone suggested I switch to modal dialog. I wanted to be able to serve some off-site images on the pop-up...which I can't figure out.

    I also think my theme may not work with this plug-in ...It's called Flexibility 3.

  13. cherylez
    Member
    Posted 2 years ago #

    I forgot to include my blog address: http://cherylkissell.com And searching the index page source I found 6 instances of the jQuery...so I guess that excludes me from using your pop-up. Can't get ANY answers from the theme developer.

  14. paulolyslager
    Member
    Posted 1 year ago #

    Hi Yannick,

    I took out the extra jquery line in my footer, disabled all plugins (except yours) and the modal dialog is still not popping up? Could you please have another look on http://www.paulolyslager.com ?

    Thanks a lot!

    Paul

  15. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Paul,

    From what I can see of your site code, I think that your theme is missing a call to wp_head() in its header.php file.

    Normally, you would see a line with the php start and end tag, around a call to wp_head(); in the header. That call allows plugins to get extra things loaded on your site, such as jQuery or other javascripts. Since I am not seeing these scripts loaded by Modal Dialog, I think this is missing.

    If you need help adding this line, I could do it with access to your site's admin page.

    Let me know if this resolves the issue.

    Yannick

  16. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Cheryl,

    Sorry for the late response. I am slowly catching up to many months of heads-down work. I see you no longer have Modal Dialog active on your site. Please let me know if you would still like me to look into the issue.

    I will need the site to be reactivated to do so.

    Yannick

  17. paulolyslager
    Member
    Posted 1 year ago #

    Hi Yannick,

    Thanks for the reply. I'm loading <?php wp_head(); ?> in the header.php page and it does work because a lot of css and javascript is loaded in the header which is not hardcoded in this page. Maybe you have some other ideas?

    Cheers,
    Paul

  18. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Can you post a snapshot of your configuration page for the dialog?

  19. paulolyslager
    Member
    Posted 1 year ago #

    Here you go: configuration page

  20. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    This link does not work. Says the owner of the site does not allow hotlinking of images.

  21. paulolyslager
    Member
    Posted 1 year ago #

    True, sorry for that. Can I email it?

  22. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Sure. ylefebvre at gmail dot com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic