Dennis Ploetner
Forum Replies Created
-
Forum: 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?
Forum: Plugins
In reply to: [Multisite Language Switcher] Clone site within network – auto-assign pagesThere is nothing build-in that would handle such a relation automatically. There is a hook that could probably be helpful but you would still have to create the functionality.
http://msls.co/developer-docs/hook-reference.html#msls-main-save
Or you add something to this hook when you create a link:
http://msls.co/developer-docs/hook-reference.html#msls-options-get-permalink
Years ago I created an importer which is probably not working right out-of-the-box:
https://github.com/lloc/msls-importer/blob/master/msls-importer.php
Cheers,
DennisForum: Plugins
In reply to: [MslsMenu] Compatibility with Divi themeHi Thorsten,
the addon uses get_nav_menu_locations. You could check if those menues share the same locations (just a longshot).
I’m still vacationing for some days but I can try next week to understand why this can fail.
Cheers,
DennisPS I’m fine, thank you! I hope we can meet at a real (not virtual) WordCamp soon!
Right now not … but I added the filter “msls_output_no_translation_found” to the version at Github.
Something like
add_filter( 'msls_output_no_translation_found', function() { return 'No translations'; } );should do the trick.
Forum: Plugins
In reply to: [Multisite Language Switcher] syntax error on updatePlease, check if your web content is served with PHP 7. The line 263 contains this:
public static function plugins_url( string $path ): string {which wants clearly at least PHP 7.
Forum: Plugins
In reply to: [Multisite Language Switcher] Missing Language abbreviation (es_ES)Any chance to get the line from the error.log? Also as mail to re@lloc.de if you prefer…
Forum: Plugins
In reply to: [Multisite Language Switcher] syntax error on updateI’m quite sure that PHP7 is not running there. The indicated line uses a return type declaration that came with 7.0.
Let me know!
Forum: Plugins
In reply to: [Multisite Language Switcher] Missing Language abbreviation (es_ES)I need more context. Please, provide screenshots.
Forum: Plugins
In reply to: [Multisite Language Switcher] Missing Language abbreviation (es_ES)Please check the reference user first … it should be the same as in the other sites.
Forum: Plugins
In reply to: [Multisite Language Switcher] Multiple administratorsYou probably need network admin privileges or you should be an admin in all of those websites. This is how multisites work and is outside of the plugin’s scope.
Forum: Plugins
In reply to: [Multisite Language Switcher] I get Notice on HrefLang.phpThanks, good catch! I deployed version 2.4.6 to address that.
Forum: Plugins
In reply to: [Multisite Language Switcher] Remember language selectionNo there is no such functionality build in the plugin. Some days ago I made some tests within a primary site to decide where to send a visitor based on his browser language. There was already a proposal for that but I never started any development…
Forum: Plugins
In reply to: [Multisite Language Switcher] Get ID associated post/pageOK, I get the problem. I wasn’t focussed to a particular thing here. MslsOptions works much better with its factory where it decides how to call the specialized subclasses. It’s quite simple:
$mslsOption = \lloc\Msls\MslsOptions::create(); echo $mslsOption->en_US; echo $mslsOption->get_arr()->en_US;As you can see in my example, calling the magic getter or the get_arr method should return the same result.