WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Modal Dialog] cookie set to manual but still modal still showing site wide.

[Resolved] [Plugin: Modal Dialog] cookie set to manual but still modal still showing site wide.

  • Hello there yannick,
    What a great plugin by the way.
    I installed it this morning and it has been working fine, untill now!!!!
    I added a paypal plugin and it seems to have screwed with everything!!!
    LOL
    ummm let me explain:
    I’m using the following code which is inputted into the header file of a specific page via CSS & JavaScript Toolbox basically I followed this:
    http://wordpress.org/support/topic/modal-dialog-any-way-to-trigger-from-a-link?replies=5
    [code]

    function openDialog() {
    jQuery(“a#inline”).trigger(‘click’)
    }

    [/code]
    I have set the “Set display cookies manually” options to on, but it still shows up on every page.
    I’ve tried removing all plugin apart from the modal,
    I’ve removed the code from “CSS & JavaScript Toolbox ”
    and still no luck, The modal still shows up site wide.
    this really has got me flummoxed i’d love it if you have an answer or maybe point me in the write direction.
    kind regards
    Chris

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Yannick Lefebvre

    @jackdewey

    Hi, I saw your messages on my personal site yesterday. I just did not get a chance to look into your questions yet. I will hopefully get to them tonight or tomorrow.

    Thanks for your patience.

    hey no probs yannick thank you for responding.
    I await your help with open arms and patiently
    Chris

    I don’t mean to pressuer you just giving you as much info as i can,
    It’s happening on this site if thats any help:
    http://liberianawards.org/wordpress

    Plugin Author Yannick Lefebvre

    @jackdewey

    Hi Chris,

    You should have read the FAQ:

    = How can I manually set the cookie if I ask Modal Dialog to let me do it manually?

    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 });

    ==========

    You should be calling this javascript function when the user presses the I accept button.

    I did read the manual i’m sorry for posting the wrong code i was trying various options:

    <script type="text/javascript">
    function openDialog() {
    jQuery("a#inline").trigger('click')
    }
    </script>

    this was the code i was using to insert the cookie manually into a specific link, but the modal still appears site wide.
    even with the set cookies manually option checked the modal still appears site wide……

    Plugin Author Yannick Lefebvre

    @jackdewey

    The code that you just posted takes care of opening the dialog. You need a call to jQuery.cookie on close to set the cookie. I am not seeing any calls to jQuery.cookie on your site.

    and heres the onlick div i’m using:
    <div onclick="openDialog()" ></div>
    it should be a applied to the apply now toggle at the bottom of the content here:
    http://liberianawards.org/wordpress/scholarships/submenu1/

    As i say this was working fine all of yesterday morning!
    sorry to pester you and thank you for the help.
    Chris

    got it thank you:D:D:D:D:D

    You where right i should have read the manual i had seen that thread just not read it throughly enough….
    thank you Yannick and good luck with the book, if you ship to europe i’ll buy one.

    kind regards
    Chris

    Plugin Author Yannick Lefebvre

    @jackdewey

    Hi Chris,

    Thanks. Shipping for my book is free to Europe from the publisher’s site:

    http://www.packtpub.com/wordpress-plugin-development-cookbook/book

    Yannick

    Plugin Author Yannick Lefebvre

    @jackdewey

    Also, please mark the issue as resolved. Thanks.

    I’m definetly buying the book!!!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] [Plugin: Modal Dialog] cookie set to manual but still modal still showing site wide.’ is closed to new replies.