• Resolved zatur90

    (@zatur90)


    Site URL: http://amerk.dk/debat/

    Hi …

    I am trying to create a “Create new topic”-button with a click pop up trigger for users not logged. (The green button at the top “Start ny debat” with a + icon).

    However, I’m having problems cuz at the moment it opens up the popup and closes instantly and then goes to the button URL…

    Could you guys help me how to fix this? The goal is to create a login/register popup for users not logged in trying to create a new topic…

    Below is the snippet I’ve used to create the popup for users not logged in:

    function user_logged_in_trigger( $is_loadable, $popup_id ) {
    if ( is_user_logged_in() && $popup_id == ‘31876’ ) {
    $is_loadable = false;
    }

    return $is_loadable;
    }
    add_filter( ‘popmake_popup_is_loadable’, ‘user_logged_in_trigger’, 1000, 4 );

    Thanks in advance!

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

    (@danieliser)

    @zatur90 – First update your filter, should be pum_popup_is_loadable.

    Other than that have you checked out our AJAX Login Modals extension? It has extra conditions for logged in users etc and has forms that are responsive and use AJAX right out of the box. You can even set up click blocking (a click trigger that prevents clicking the item until they log in, then after logging in immediately re-clicks it so that they don’t have to).

    Alternatively if you still want to use your own form our Advanced Targeting Conditions extension offers a huge number of conditions for targeting users based on just about anything.

    Hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Popup closes instantly’ is closed to new replies.