@white_rajah: have you checked the xml syntax of the file? you can replace line 36-43 with
Code:
<installfile>install.performs.php</installfile>
<uninstallfile>uninstall.performs.php</uninstallfile>
Hello Ian you are right with the xml file but there are several other problems.
For the following work i used the version com_performs 2.4.0
First of all you should change the xml as Ian wrote.
Then you have to replace the function ExtensionInfo in the includes/installer.php file at line 706 with
Code:
function ExtensionInfo($elementtype, $elementname, $elem, $publish) {
global $mosConfig_absolute_path, $mainframe;
$this->elementType = $elementtype;
$this->elementName = $elementname;
if(isJ10())
require_once( $mainframe->getPath( 'installer_class', $elementtype ) );
else
jimport('joomla.installer.installer');
switch ($elementtype) {
case "mambot": {
$this->elementInstaller = new mosInstallerMambot();
break;
}
case "module": {
if(isJ10())
$this->elementInstaller = new mosInstallerModule();
else
$this->elementInstaller = JInstaller::getInstance();
break;
}
case "plugin": {
$this->elementInstaller = JInstaller::getInstance();
break;
}
}
$this->elem = $elem;
$this->publish = $publish;
$this->elementDir = $mosConfig_absolute_path."/administrator/components/com_performs/plugins/".$this->elementName;
}
Now the component should install without any errors.
Now we have to do two changes in lib/myLib.php
First at line 36 replace the function isJ15() with
Code:
function isJ15 () {
return ( defined( '_JEXEC' ) );
}
And the line 569
Code:
JCommonHTML::loadCalendar();
replace with
Code:
JHTML::_('behavior.calendar');
Now the most things should work but if you see the list of a form, you'll see some language errors.
Therefore you'll have to add the following lines in the file admin.performs.php after line 25
Code:
// Language Errors
if(isJ15())
{
define("_CMN_NO", JText::_("NO"));
define("_CMN_YES", JText::_("YES"));
define("_BACK", JText::_("BACK"));
}
The last problem depends on the Data Bindings.
In the file admin.performs.html.php you have to remove two lines
line 1182
Code:
}
and line 1187
Code:
if ($row->tablename) {
Now the component should work with J!1.5
Best regards
Chris