Dennis Ploetner
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Language Switcher] Add MSLS Menu to OceanWP HeaderSorry, I did indeed oversee that you already use MslsMenu. You’ll find a before_element and after_element in the plugin’s configuration in the part especially for MslsMenu. For my website: https://lloc.de/ I use similar settings to the screenshot here: https://ps.w.org/mslsmenu/assets/screenshot-3.png (using an additional CSS-class
<li class="menu-item">).I hope this was more helpful,
DennisForum: Plugins
In reply to: [Multisite Language Switcher] Where is the Admin Language?This option was removed in Version 1.2
https://github.com/lloc/Multisite-Language-Switcher/blob/master/Changelog.md#12-2018-02-01
because you can set the user language in your profile.
Forum: Plugins
In reply to: [Multisite Language Switcher] Add MSLS Menu to OceanWP HeaderAny chance that MslsMenu could be helpful here?
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 6 years 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,
Dennis