Here is what you should do, in order to make Hot Property and Joom!Fish to work together.
This guide is posted with the permit of
Mosets Consulting as it contains parts of commercial code. Consider that the guide is related to Joom!Fish 1.7 and Hot Property 0.98, anyway it is expected to work in the same way with different versions.
How to make Hot Property to work with Joom!Fish?One of the weaknesses of the great commercial component Hot Property provided by Mosets Consulting is that it doesn’t operate properly on Multilanguage sites.
What you could do is to make several hacks in order to make the component Multilanguage.
1. Open the file components/com_hotproperty/hotproperty.php and find on row 37 the following code:
Code:
if ($hp_language=='') {
$hp_language='english';
} else {
$hp_language=$mosConfig_lang;
}
include_once('components/com_hotproperty/language/'.$hp_language.'.php');
and replace it with:
Code:
if (file_exists($mosConfig_absolute_path . '/components/com_hotproperty/language/' . $mosConfig_lang . '.php')) {
include($mosConfig_absolute_path . '/components/com_hotproperty/language/' . $mosConfig_lang . '.php');
} else {
include($mosConfig_absolute_path . '/components/com_hotproperty/language/english.php');
}
2. Open the file components/com_hotproperty/pdf.php and find on row 25 the following code:
Code:
if ($hp_language=='') {
$hp_language='english';
}
include_once($mosConfig_absolute_path.'/components/com_hotproperty/language/'.$hp_language.'.php');
if ( $mosConfig_lang == '' ) {
$mosConfig_lang = 'english';
}
include_once ( $mosConfig_absolute_path.'/language/'.$mosConfig_lang.'.php' );
and replace it with:
Code:
if (file_exists($mosConfig_absolute_path . '/components/com_hotproperty/language/' . $mosConfig_lang . '.php')) {
include($mosConfig_absolute_path . '/components/com_hotproperty/language/' . $mosConfig_lang . '.php');
} else {
include($mosConfig_absolute_path . '/components/com_hotproperty/language/english.php');
}
3. Open all files of the modules and the search mambot, which you have installed and find the code:
Code:
if ($hp_language=='') {
$hp_language='english';
}
include_once('components/com_hotproperty/language/'.$hp_language.'.php');
and replace it with:
Code:
if (file_exists($mosConfig_absolute_path . '/components/com_hotproperty/language/' . $mosConfig_lang . '.php')) {
include($mosConfig_absolute_path . '/components/com_hotproperty/language/' . $mosConfig_lang . '.php');
} else {
include($mosConfig_absolute_path . '/components/com_hotproperty/language/english.php');
}
Now the component is ready to be Multilanguage, what else you must do is to add the necessary content elements, so the Joom!Fish will be able to translate the database.
The content elements can be downloaded from:
http://forge.joomla.org/sf/go/projects. ... t_propertyUpload them to administrator/components/com_joomfish/contentelements/ and you are now able to translate the entries.
You can easy upload the content element files with the special component names Joom!Fish Content Element Installer. Download it from:
http://forge.joomla.org/sf/frs/do/downl ... s4992?dl=1