• Resolved bbdreiling

    (@bbdreiling)


    Hello- love this plugin. We are using the pop up to collect user email addresses when someone visits our site. Is there a way to get the pop up to stop popping up if a user has already provided their email address? Sorry if this is obvious.

    Website is https://www.fdirecruiters.com

    The idea is that users will have to login to the website and they will get the pop up when they sign in to their page. Once signed in, we would like to collect their email address and name so we can send them an email when information is updated on the site.

    thank you!

    https://www.ads-software.com/plugins/wordpress-popup/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @bbdreiling,

    I hope you are well today and thank you for your question.

    You will have to develop custom code to achieve this.

    Just add the following code in functions.php file of your child theme and add the code in it to check the existence of email address.

    function set_user_cookie() {
       //Write the custom code here to check whether the email address of current user already exists or not
        if (!isset($_COOKIE['popover_never_view'])) {
    		setcookie("popover_never_view", "hidealways", time()+3600);  /* expire in 1 hour */
        }
    }
    add_action( 'init', 'set_user_cookie');

    Kind Regards,

    Hi!

    My website is: dwellbeautiful.com

    I am having trouble with this same problem. I am using jetpack shortcode to get the jetpack subscribe form to appear in the popup. All of that is working wonderfully. But my problem is that even though someone enters their email address to subscribe, the popup still occurs every time they load the page. I want the popup to go away completely once they have subscribed and provided their email.

    How would I do this? I see the code that @wpmudev posted, but I don’t know how to develop a custom code to make it work for me. Please help!!!

    Hi @ensooter,

    Thanks for posting on the forums.

    You can hire a developer from online job market to develop this custom code. Developing custom code is beyond the scope of support we provide, I’m sure you understand this.

    Cheers,

    I too am having this same problem. I know you said it is not within the scope of support, but could you tell me what the code would entail? Or more information on the Online Job Market so I can hire someone to do it?

    Thank you!

    my site is https://www.wininc.biz

    Hi @wininc101,

    could you tell me what the code would entail?

    To display popup only to the unsubscribed users you have to check the user is already subscribed or not.

    The user subscriptions information is stored on WordPress.com server so for easy access you will have to store user subscription information either in your database or in the cookie by adding the custom code in the following jetpack subscription module file on line number 356

    jetpack\modules\subscriptions.php

    Then on every page load check this stored information and show / hide the popup depending on it.

    I hope this will help you to achieve it.

    Or more information on the Online Job Market so I can hire someone to do it?

    You will find various Online Job Markets on the following page.

    https://premium.wpmudev.org/blog/find-wordpress-developer-designer/

    Cheers,
    WPMU DEV

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pop Up To Not Show Up after User has taken an action’ is closed to new replies.