Member Home not working on multilanguage site [FIXED]

More
8 months 19 hours ago #395 by gpalmas
Hi.
I found that Member Home is not working on a multilanguage site.
I investigated about and I found this: https://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page
Then, I applied the fix in plugins\system\memberhome\memberhome.php

In the last lines, I changed

$defaultMenu = $menu->getDefault();

to

$defaultMenu = $menu->getDefault($lang->getTag());

I also added $lang = JFactory::getLanguage(); to the top of the file.

The plugin is working now also in my multilanguage file.

Hope it could be useful!

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #396 by joomladds
Thanks for the info. I have a revised version with your tweaks. If you would be so kind to test for me? I do not currently have a multi-language site available. I made a slight change based on updated documentation for including the language file:
protected $autoloadLanguage = true;
instead of:
$lang = JFactory::getLanguage();

Please let me know if you are interested.

I'd love to change the world... but they won't give me the source code!

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds

Sign up to stay in touch!  * Required

Thanks for your interest in joining our mailing list. Please complete the information below and click Sign Up.

By submitting this form, you are granting: JoomLadds @ River Media, USA, https://www.joomladds.com/ permission to email you. You can revoke permission to mail to your email address at any time using the SafeUnsubscribe® link, found at the bottom of every email. We take your privacy seriously (to see for yourself, please read Constant Contact's Email Privacy Policy). Emails are serviced by Constant Contact.