• Resolved contactovisualpt

    (@contactovisualpt)


    Hi

    I use a popup to ask the visitor to subscribe our newsletter. But if he does subscribe, I would like to give him the option to never see the popup again. Currently, I have a cookie that triggers the popup every hour, which is annoying for someone that already follow our invitation.
    Is it possible to place a checkbox in the popup with something like “Do not show this popup again” and permanently prevents the popup to open?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @contactovisualpt – This is on our todo list already.

    Currently you could set up a custom link to do it. Something like

    <a href="#" onclick="PUM.close(123);pm_cookie('pum-123', true, {expires: "10 years"});return false;">Never show popup 123 again</a>

    That should work, though its untested so let me know.

    Thread Starter contactovisualpt

    (@contactovisualpt)

    Hi danieliser

    It worked! ??
    I had to make a little edit, but I tested and works great.

    123 = ID of the post (popup maker post)
    pum-123 = cookie name defined on settings
    expires: “10 years” – change to expires: ’10 years’ (double-quote conflicts in the code)

    In my case, it ended like this:
    <a href="#" onclick="PUM.close(6526);pm_cookie('pum-6526', true, {expires: '10 years'});return false;">Already subscribed. Do not show this popup again.</a>

    Testing it, and verifying the cookie:
    Expires / Max-Age:”Sun, 21 Apr 2030 08:38:53 GMT”

    And there it is. added 10 years to expiring date.

    Cool!

    Thank you

    Plugin Author Daniel Iser

    (@danieliser)

    @contactovisualpt – Awesome! Happy I could help you out. Btw, If you have a moment, I would very much appreciate if you could quickly rate the plugin, just to help us spread the word.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkbox to let the user never see the popup again’ is closed to new replies.