• Resolved rraallvv

    (@rraallvv)


    Is it possible to have a NSL Twitter login button on a PHP standalone page so that after the user has logged in from the Twitter popup window, the current page is not redirected to other page or refreshed.

    This is what I have on my standalone PHP page:

    <!DOCTYPE html>
    <html xmlns='https://www.w3.org/1999/xhtml' lang='' xml:lang=''>
    <head>
      <title>Standalone Page</title>
    <?php
    require(wp-load.php');
    wp_head();
    ?>
    </head>
    <body>
    <?php
    if (is_user_logged_in()) {
    	echo '<a href="' . wp_logout_url('index.php') . '">logout</a>';
    } else {
    	echo do_shortcode('[nextend_social_login provider="twitter" style="icon" redirect="index.php"]');
    }
    wp_footer();
    ?>
    </body>
    </html>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to stop redirections after Twitter login popup is closed?’ is closed to new replies.