WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Ultimate Coming Soon Page] Login Page (21 posts)

  1. seanbelly
    Member
    Posted 2 years ago #

    Hi,
    I have a site running the Group Buying Site plugin.
    wp-admin/ takes me to to /account/login/ where I log in.

    When the plugin is installed it seems to override that page with the 'Coming Soon' page.

    I tried the fix you gave here: http://wordpress.org/support/topic/plugin-ultimate-coming-soon-page-a-new-login-page?replies=7

    But it gives me this error:

    Warning: preg_match() [function.preg-match]: Unknown modifier 'a' in /public_html/wp-content/plugins/ultimate-coming-soon-page/inc/config.php on line 40

  2. John Turner
    Member
    Posted 2 years ago #

    post your code and I'll take a look!

  3. seanbelly
    Member
    Posted 2 years ago #

    Thanks John!

    So far I've only changed this code from line 36:

    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);
                    }
                }
            }
        }
  4. techfreak
    Member
    Posted 2 years ago #

    Just delete the plugin from ftp and then try Simple coming soon page plugin, Simple coming soon is awesome with great look. thanks

  5. seanbelly
    Member
    Posted 2 years ago #

    Hey Techfreak,
    Thanks for the comment, I've actual tried a few different plugins including Simple Coming soon and they all react the same with with this theme.
    Plus, Ultimate Coming Soon rocks harder!

  6. John Turner
    Member
    Posted 2 years ago #

    thx for the kind words :) try this:

    function render_comingsoon_page() {
            if(!preg_match("/{$_SERVER['REQUEST_URI']}/i", "/login/")){
                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);
                    }
                }
            }
        }
  7. seanbelly
    Member
    Posted 2 years ago #

    Thanks John, this plugin has always worked great for me on normal sites.

    I still get the same result, but with this error:

    Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /public_html/wp-content/plugins/ultimate-coming-soon-page/inc/config.php on line 40

    Which I believe is this line:

    if(!preg_match("/{$_SERVER['REQUEST_URI']}/i", "/login/")){

    I've tried removing each slash one at a time, but that just stops the plugin from working.

    -Sean

  8. John Turner
    Member
    Posted 2 years ago #

    hum try this:

    function render_comingsoon_page() {
            if(!preg_match("/{$_SERVER['REQUEST_URI']}/i", "login")){
                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);
                    }
                }
            }
        }
  9. seanbelly
    Member
    Posted 2 years ago #

    It's a slightly shorter error:

    Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /public_html/wp-content/plugins/ultimate-coming-soon-page/inc/config.php on line 40

    Just to verify, I'm adding this code to /inc/config.php

  10. John Turner
    Member
    Posted 2 years ago #

    yep you're replacing the function in the config, try once more this one:

    function render_comingsoon_page() {
        if(preg_match("/login/",$_SERVER['REQUEST_URI']) == 0){
            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);
                }
            }
        }
    }
  11. seanbelly
    Member
    Posted 2 years ago #

    Thanks again John,
    That one caused the whole site to break:

    Parse error: syntax error, unexpected ';', expecting T_PAAMAYIM_NEKUDOTAYIM in /public_html/wp-content/plugins/ultimate-coming-soon-page/inc/config.php on line 40

  12. John Turner
    Member
    Posted 2 years ago #

    ok, without being on your actually server it's a bit hard to troubleshoot

  13. seanbelly
    Member
    Posted 2 years ago #

    No worries, I totally understand.
    Is there any other information I can supply which might help?

  14. John Turner
    Member
    Posted 2 years ago #

    send me your email and I'll send you something to try

  15. John Turner
    Member
    Posted 2 years ago #

    you can email me at john@seedprod.com

  16. seanbelly
    Member
    Posted 2 years ago #

    John, sorry my fault.
    The last code you sent I copied from my email, it works perfectly!

    Thanks for all your help, I really appreciate it.
    -Sean

  17. John Turner
    Member
    Posted 2 years ago #

    ah ok cool :) cheers

  18. seanbelly
    Member
    Posted 2 years ago #

    One more question:

    With the pro version can I use mailchimp to display a dropdown menu like this?


    mailchjimp.png

  19. John Turner
    Member
    Posted 2 years ago #

    No, Unfortunately it only supports the email field. You could use gravity forms which it suports to capture additional info.

  20. seanbelly
    Member
    Posted 2 years ago #

    Ok, thanks again!

  21. John Turner
    Member
    Posted 2 years ago #

    No problem :)

Topic Closed

This topic has been closed to new replies.

About this Topic