Dennis Ploetner
Forum Replies Created
-
You probably get the error “function is already defined” or similar. Try this here (it gets in one function):
function my_msls_options_get_permalink( $url, $language ) { if ( 'es_ES' == $language ) { return str_replace( '/shop/', '/tienda/', $url ); } elseif ( 'en_US' == $language ) { return str_replace( '/tienda/', '/shop/', $url ); } return $url; } add_filter( 'msls_options_get_permalink', 'my_msls_options_get_permalink', 10, 2 );Forum: Plugins
In reply to: [Multisite Language Switcher] Multisite brutalement déconnecté sur erreur PHPYes, version 2.3 should work in your case: https://github.com/lloc/Multisite-Language-Switcher/releases/tag/v2.3.0
Forum: Plugins
In reply to: [Multisite Language Switcher] Multisite brutalement déconnecté sur erreur PHPI don’t speak french but I would suggest updating PHP to version 7 or higher at least.
Forum: Plugins
In reply to: [Multisite Language Switcher] Critical Error with last MLS updateI’m glad it helped!
Forum: Plugins
In reply to: [Multisite Language Switcher] Critical Error with last MLS updateI’m sorry but these lines don’t help much. They are just warnings and no error-messages.
BTW Version 2.4.8 is the last one. Please try to update to that version.
- This reply was modified 5 years, 9 months ago by Dennis Ploetner.
Forum: Plugins
In reply to: [Multisite Language Switcher] Critical Error with last MLS updateOK, very good. Do you have more detailed information coming from the error.log of your webserver?
Forum: Plugins
In reply to: [Multisite Language Switcher] Critical Error with last MLS updateThe minimum for PHP version is 7 since 2.4.0 … please, what version is installed on your webserver!
Let me know,
DennisJust a longshot but it is very often a translated slug – a problem that can be solved like so: http://msls.co/developer-docs/hook-reference.html#msls-options-get-permalink
Forum: Plugins
In reply to: [Multisite Language Switcher] Hint showing? / Current language link?There is of course support. And there is also documentation 😉 http://msls.co/user-docs/plugin-configuration.html#main-settings
Forum: Plugins
In reply to: [Multisite Language Switcher] Cannot update custom URL for flag imagesI guess that you have just to set different languages for each site in your multisite: http://msls.co/user-docs/plugin-configuration.html#choose-the-blog-language
You can have a custom site of flags if the shipped one doesn’t suit your needs. In that case, you can create a directory elsewhere and set this in the plugin’s settings. You have to use the same naming for the flags though.
Cheers,
DennisForum: Plugins
In reply to: [Multisite Language Switcher] Admin bar (toolbar) always links to ‘en’Interesting problem. I would say that there is a chance that there is another plugin involved. Can you exclude this?
BTW msls_options_get_permalink has also a second parameter. 😉
/** * @param string $postlink * @param string $language * @return string */ function my_msls_options_get_permalink( $url, $language ) { if ( 'de_DE' == $language ) { $url = str_replace( '/products/', '/produkte/', $url ); } return $url; } add_filter( 'msls_options_get_permalink', 'my_msls_options_get_permalink', 10, 2 );The problem here is that you don’t have exactly the same CPT that has maybe a translated slug. Those are 2 different CPTs without relation to each other.
Cheers,
DennisForum: Plugins
In reply to: [MslsMenu] Compatibility with Divi themeThanks a lot for your research on this topic!
Cheers,
DennisForum: Plugins
In reply to: [MslsMenu] Compatibility with Divi themeThanks for your help!
Forum: Plugins
In reply to: [Multisite Language Switcher] Admin bar (toolbar) always links to ‘en’Are there any filters/actions in use that are provided by MSLS. In the functions.php for example?