hi,
I'm creating plugin that is gonna to add new code at the moment of adding and later updating users via CB users admin panel.
Unfortunately, it seems like triggers don't fire or maybe I can't catch them..
Here is how I'm trying to do that:
after turning on 'legacy mode' code for joomla 1.5 and CB 1.7.1 in plugins dir is:
Code:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');
global $_PLUGINS;
$_PLUGINS->registerFunction('onAfterUpdateUser', 'updateUser');
class plgUserJoomlaUserContact extends JPlugin
{
function plgUserJoomlaUserContact(& $subject, $config)
{
parent::__construct($subject, $config);
}
function onAfterUpdateUser (&$row) {
breakPage();
}
function updateUser(&$rows)
{
breakPage();
}
function onAfterStoreUser($user, $isnew, $success, $msg)
{
breakPage();
}
}
?>
both updateUser and onAfterUpdateUser are not fired, only onAfterStoreUser works, but it's standard Jooomla and I want to handle this job via CB events.
Any advice welcomed!