rplc wrote:Hi,
I've installed uddleIM 2.2 on Joomla 1.6
Nearly everything works fine.
Could you try to replace
[code:1]if ( defined( 'JPATH_ADMINISTRATOR' ) )
$mainframe->registerEvent('onPrepareContent', 'uddeIMpmsLink15');
else
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink' );[/code:1]
with
[code:1]if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
$ver = new JVersion();
if (!strncasecmp($ver->RELEASE, "1.6", 3)) {
jimport( 'joomla.plugin.plugin' );
$_PLUGINS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink15' );
} else {
JApplication::registerEvent('onPrepareContent', 'uddeIMpmsLink15');
}
} else {
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink' );
}
[/code:1]
Does it work?
If you get an error that an object cannot be found please also try
[code:1]if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
JApplication::registerEvent('onPrepareContent', 'uddeIMpmsLink15');
} else {
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink' );
}
[/code:1]
Post edited by: slabbi, at: 2011/01/03 22:52