b2bcherry
Forum Replies Created
-
Hi,
Thank you for your answer.
Already done.Forum: Plugins
In reply to: [WP Super Cache] PHP7 Compatibility IssuesThank you for this explanation Sasa
Hi,
I managed to find out that in my function.php, a code was causing this issue :
function redirect_login_page()
After a few update, I was correctly redirected to the staging environment.
Tks for take time answering.
Forum: Plugins
In reply to: [Force Login] Translated pages whitelistI finally tried the below code which I updated :
function my_forcelogin_whitelist( $whitelist ) {
$url_path = preg_replace(‘/\?.*/’, ”, $_SERVER[‘REQUEST_URI’]);
if( ‘/login/’ === $url_path ) {
$whitelist[] = site_url($_SERVER[‘REQUEST_URI’]);
}
if( ‘/?lang=fr’ === $url_path ) {
$whitelist[] = site_url($_SERVER[‘REQUEST_URI’]);
}
if( ‘/inscription?lang=fr’ === $url_path ) {
$whitelist[] = site_url($_SERVER[‘REQUEST_URI’]);
}
if( ‘/compte/mot-de-passe-perdu/’ === $url_path ) {
$whitelist[] = site_url($_SERVER[‘REQUEST_URI’]);
}
$whitelist[] = site_url( ‘//’ );
$whitelist[] = site_url( ‘/register/’ );
$whitelist[] = site_url( ‘/account/lost-password/’ );Nevertheless, it seems that your plugin does not like my ?lang=fr pages.
What work are page with / at the beginning ad at the end like my /compte/mot-de-passe-perdu/ page which is ok.
Pages ending with /inscription?lang=fr do not pass through. Same with my home page /?lang=frForum: Plugins
In reply to: [Force Login] Translated pages whitelistHi Kevin,
I am getting a syntax error when trying to pass the function. There is something wrong here :
$url_path = preg_replace(‘/\?.*/’, ”, $_SERVER[‘REQUEST_URI’]);
if( ‘/login/’ === $url_path ) {
$whitelist[] = site_url($_SERVER[‘REQUEST_URI’]);
}I also need to show the WooCommerce countries dropdown on my registration form.
Anyone found a solution ?
Forum: Plugins
In reply to: [Say What?] WPMLWPML prints the original at translation. So I translated the original. Nevertheless, the French page prints the SayWhat? replacement (in English of course)…
In the meantime, I solve this issue by using the following code in function.php, which works with WPML :
function change_my_theme_text( $translated_text, $text, $domain ){
if( $domain == ‘mydomain’ && $translated_text == ‘Alert me to jobs like this’ )
$translated_text = ‘Alert me to mandates like this’;
return $translated_text;
}
add_filter( ‘gettext’, ‘change_my_theme_text’, 20, 3 );Forum: Plugins
In reply to: [Say What?] WPMLI am making replacements of English words of my default Jobify theme, and trying to find these replacements in WPML in order to translate them in French.
Do you have an alternative mind ?