WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Coming Soon Page
[resolved] A new Login Page (7 posts)

  1. a_nawar
    Member
    Posted 2 years ago #

    Hey there,

    I use Group Buying Site Plugin for my wordpress website which overrides the default login page for the website (wp-login.php) so it has another page which is (login/account.php)..so now if i logout I cant login again to the website...is there a way to tweak the code to login thru this page?

    thanks,

    http://wordpress.org/extend/plugins/ultimate-coming-soon-page/

  2. John Turner
    Member
    Plugin Author

    Posted 2 years ago #

    You can add some conditional code on line 38 of file inc/config.php to look for the "login/account.php" pattern in the url and not display if that is found.

  3. a_nawar
    Member
    Posted 2 years ago #

    but what is the appropriate code to check for a url pattern?

  4. a_nawar
    Member
    Posted 2 years ago #

    any thoughts?

  5. John Turner
    Member
    Plugin Author

    Posted 2 years ago #

    I haven't had time to look at this again. When I get some time I'll check it out. Post the exact url of your login.

  6. a_nawar
    Member
    Posted 2 years ago #

  7. John Turner
    Member
    Plugin Author

    Posted 2 years ago #

    Try this. Replace the function on line 36 in file inc/config.php with:

    function render_comingsoon_page() {
            if(!preg_match("/{$_SERVER['REQUEST_URI']}/i", "/account/login.php")){
                if(!is_admin()){
                    if ( !is_user_logged_in() || (isset($_GET['cs_preview']) && $_GET['cs_preview'] == 'true')) {
                        $file = plugin_dir_path(__FILE__).'template/template-coming-soon.php';
                        include($file);
                    }
                }
            }
        }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic