peterbisset
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Language Switcher] Automatic Post Match by TitleHappy to do that. Not very familiar with Github, just took a look and couldn’t work out how to do that?
Forum: Plugins
In reply to: [Multisite Language Switcher] Automatic Post Match by TitleWould it be possible to have this as a feature of the plugin? Happy to pay…
Forum: Plugins
In reply to: [Multisite Language Switcher] Automatic Post Match by TitleOr alternatively is there a way to have the posts matched up automatically if I duplicate the site?
Forum: Plugins
In reply to: [Multisite Language Switcher] Custom locale for specific site.I’ve done the same, works great thanks!
Forum: Plugins
In reply to: [Multisite Language Switcher] Custom locale for specific site.Hi tjdunklee, did you get a solution to this? I have a very similar problem in that there is no Austrian-German de_AT translation.
- This reply was modified 8 years ago by peterbisset.
Forum: Plugins
In reply to: [Multisite Language Switcher] Really Simple SSLIf anyone else experiences this issue then here is a temporary fix from the Really Simple SSL plugin which fixes it too:
add_filter( 'home_url', 'rsssl_fix_https_urls' ); function rsssl_fix_https_urls($url, $path, $orig_scheme, $blog_id){ $ssl_enabled = false $options = get_blog_option($blog_id, "rlrsssl_options"); if ($options && isset($options)) { $site_has_ssl = isset($options['site_has_ssl']) ? $options['site_has_ssl'] : FALSE; $ssl_enabled = isset($options['ssl_enabled']) ? $options['ssl_enabled'] : $site_has_ssl; } if (!$ssl_enabled) { $url = str_replace("https://","https://",$url); } return $url; }
Thanks that worked perfectly! Incidentally I’ve spoken to the author of Multisite Language Switcher and they are going to be working on a fix for this apparently: https://github.com/lloc/Multisite-Language-Switcher/issues/103
Forum: Plugins
In reply to: [Multisite Language Switcher] Really Simple SSLSorry php isn’t my strong point, where would I need to drop the else statement? And the else statement looks like this?
else ( ‘de_DE’ != $language ) {
$url = str_replace( ‘https://’, ‘https://’, $url );
}- This reply was modified 8 years ago by peterbisset.
Forum: Plugins
In reply to: [Multisite Language Switcher] Really Simple SSLOK that works for all of the pages except the homepage of the https site still has https links. All of the internal pages are now fine!
- This reply was modified 8 years ago by peterbisset.
I dropped it in there but got a syntax error: Parse error: syntax error, unexpected ‘$options’ (T_VARIABLE)
Forum: Plugins
In reply to: [Multisite Language Switcher] Really Simple SSLThanks for the prompt response, I will do that now. So this code would go in MslsOptions.php? Would it override some of the code that is already there?
- This reply was modified 8 years ago by peterbisset.
Forum: Plugins
In reply to: [Multisite Language Switcher] Can’t configure plugin with 9 langsA half Swiss half French flag etc. would do the trick. Incidentally fr_CH and it_CH aren’t options in the WordPress language settings how do you configure them for this plugin?
Thanks for your prompt reply, would the below code need to go into the theme’s functions.php file or somewhere else?
add_filter( 'home_url', 'rsssl_fix_https_urls' ); function rsssl_fix_https_urls($url, $path, $orig_scheme, $blog_id){ $ssl_enabled = false $options = get_blog_option($blog_id, "rlrsssl_options"); if ($options && isset($options)) { $site_has_ssl = isset($options['site_has_ssl']) ? $options['site_has_ssl'] : FALSE; $ssl_enabled = isset($options['ssl_enabled']) ? $options['ssl_enabled'] : $site_has_ssl; } if (!$ssl_enabled) { $url = str_replace("https://","https://",$url); } return $url; }
Solution: go to Network Admin -> Sites -> edit a site -> Settings -> change “site url”
Ok so after several hours of searching, scratching my head looking at all kinds of solutions and hacks I have found the answer and it could not be simpler!
I just needed to go to Network Admin -> Sites -> edit a site -> Settings -> change “site url” to the corresponding site. I had no idea that this setting existed and it wasn’t mentioned in the instructions for installing domain mapping!
Hope this helps someone else!
Thanks for your help though.