Support » Plugin: Ultimate Coming Soon Page » [Plugin: Ultimate Coming Soon Page] A new Login Page

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author John Turner

    (@johnnytee)

    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.

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

    any thoughts?

    Plugin Author John Turner

    (@johnnytee)

    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.

    Plugin Author John Turner

    (@johnnytee)

    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);
                    }
                }
            }
        }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Ultimate Coming Soon Page] A new Login Page’ is closed to new replies.