Member Home not working on multilanguage site [FIXED]

3 years 7 months ago #395 by gpalmas
I found that Member Home is not working on a multilanguage site.
I investigated about and I found this:
Then, I applied the fix in plugins\system\memberhome\memberhome.php

In the last lines, I changed

$defaultMenu = $menu->getDefault();


$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.

3 years 7 months 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.128 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, 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.