post your code and I’ll take a look!
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);
}
}
}
}
Just delete the plugin from ftp and then try Simple coming soon page plugin, Simple coming soon is awesome with great look. thanks
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!
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);
}
}
}
}
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
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);
}
}
}
}
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
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);
}
}
}
}
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
ok, without being on your actually server it’s a bit hard to troubleshoot
No worries, I totally understand.
Is there any other information I can supply which might help?
send me your email and I’ll send you something to try
you can email me at john@seedprod.com
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