Dennis Ploetner
Forum Replies Created
-
You can thank me with a 5 star rating. 😉
Forum: Reviews
In reply to: [Multisite Language Switcher] Disaster, why?Forum: Reviews
In reply to: [Multisite Language Switcher] Disaster, why?There is nothing destroyed because the saved relationships are still there. You can just wait some hours and the next fix will be online.
I think I don’t have to comment the rest.
Forum: Plugins
In reply to: [Multisite Language Switcher] Update from MSLS 1.1 to 2.0.2 broken?Thanks for the analysis, Arno … I will check that. I’m sure there is a problem with en_US right now – and that can be fixed today. I’m quite sure that MSLS saved de_DE but I will certainly control it too.
There are at least two options because the code is outdated:
1. You could use the addon MslsMenu -> https://ww.wp.xz.cn/plugins/mslsmenu/
2. or rewrite the code a bit:add_filter( 'wp_nav_menu_items', 'zw3_lang_switcher_menu_item', 10, 2 ); function zw3_lang_switcher_menu_item( $items, $args ) { if ( class_exists( lloc\Msls\MslsOutput::class ) && 'Primary' == $args->menu->name ) { $obj = lloc\Msls\MslsOutput::init(); $arr = $obj->get( 1 ); if ( ! empty( $arr ) ) { $items .= '<li class="menu-item lang-switcher menu-item-type-custom menu-item-object-custom">' . implode( '</li><li class="menu-item menu-item-type-custom menu-item-object-custom">', $arr ) . '</li>'; } } return $items; }Please, write me a mail (in German): [email protected]
Just to be sure: This a multisite (configured with subdirectories) with two sites – one English and one German – and not to single sites, right?
I guess you have still an unsupported version of PHP installed. Please, update your PHP version at least to 5.6.
Forum: Plugins
In reply to: [Multisite Language Switcher] Der MLS benötigt die Installation einer ….Das ist sozusagen der erste Schritt. Danach muss man im WordPress Admin unter Werkzeuge -> Netzwerk-Einstellungen den nächsten Schritt machen und sich den Rest der Konfiguration ausgeben lassen.
Ich hab nur eine englischsprachige Anleitung hier: https://codex.ww.wp.xz.cn/Create_A_Network
Forum: Plugins
In reply to: [Multisite Language Switcher] Your Changelog Link in the description is wrongThanks a lot!
This is kind of strange but let me understand what’s going on:
– Is that in every site the case? Like A does not see B and B does not see A?
– Do you use custom code for filters or action provided by MSLS?
– Does return back to 1.0.8 (the latest stable here) or 1.2 (at Github https://github.com/lloc/Multisite-Language-Switcher/releases) resolve that problem?Forum: Plugins
In reply to: [Multisite Language Switcher] Menu entry issueDo you have set it in the menu section of the German page?
Forum: Plugins
In reply to: [Multisite Language Switcher] After last updateYou have probably MslsMenu installed. The problem was how the addon called the options page. I could correct this in MSLS directly.
You can set the user language for every user (that’s why I removed it from the plugin). There is just one cave-eat: You should not go to the permalinks-section to not to refresh them with the language of the user.
Forum: Plugins
In reply to: [Multisite Language Switcher] Replacement for msls_head() in version 2.0Is this a page?
Forum: Plugins
In reply to: [Multisite Language Switcher] css class of widget output wrong?OK, try the new release! 😉