WordPress.org

Ready to get started?Download WordPress

Forums

Modal Dialog
[resolved] cookie set to manual but still modal still showing site wide. (13 posts)

  1. vimes1984
    Member
    Posted 1 year ago #

    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/

  2. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. vimes1984
    Member
    Posted 1 year ago #

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

  4. vimes1984
    Member
    Posted 1 year ago #

    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

  5. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. vimes1984
    Member
    Posted 1 year ago #

    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......

  7. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. vimes1984
    Member
    Posted 1 year ago #

    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

  9. vimes1984
    Member
    Posted 1 year ago #

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

  10. vimes1984
    Member
    Posted 1 year ago #

    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

  11. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    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

  12. Yannick Lefebvre
    Member
    Plugin Author

    Posted 1 year ago #

    Also, please mark the issue as resolved. Thanks.

  13. vimes1984
    Member
    Posted 1 year ago #

    I'm definetly buying the book!!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic