UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Easyblog and Falang

Martin · ·
12:57 AM Saturday, 08 October 2016
None
Hi!
Im an old user of Easyblog, since v3.
Then, i used Falang (marvellous) to provide same content in Spanish and English in my website.
Stephane Bouey, creator of Falang, made a plugin to be able to translate Easyblog with his component.
http://faboba.com/en/composants/falang/extensions/alphaindex/content-element/e.html

Some days ago i had to update to new Easyblog v5, and for some reason Falang couldnt show translated content on the frontend. So Stephane made a fix, that if applied to Easyblog it allows to be translated again.

in this file:
administrator\components\com_easyblog\includes\post\post.php


Arround line 560, just bellow
$workbench = $this->revision->getContent();


you have to add:
//sbou
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_falang/classes/FalangManager.class.php')) {
$default_site_language =JComponentHelper::getParams('com_languages')->get("site","en-GB");
$JLang = JFactory::getLanguage();
$currentLanguage = $JLang->getTag;
if($currentLanguage != $default_site_language ){
$workbench=null;
}
}
//fin sbou


With this fix the content of EB now it shows translated on frontend again!

As its an easy fix, and im sure there is more that 1 user using Falang with EB, it would be nice if Stackideas team could include this in their code. So we dont have to manualy fix this every time we update.

Regards!
The replies under this section are restricted to logged in users or users with an active subscription with us