Könnte es vielleicht am Dispatcher liegen und dass ein Event-Trigger weitergereicht wird? Mein Plugin basiert auf dem /plugins/user/example.php
Code:
...
jimport('joomla.plugin.plugin');
...
class plgUserMyTest extends JPlugin {
...
function onAfterStoreUser($user, $isnew, $success, $msg)
{
global $mainframe;
// convert the user parameters passed to the event
// to a format the external application
$args = array();
$args['username'] = $user['username'];
$args['email'] = $user['email'];
$args['fullname'] = $user['name'];
$args['password'] = $user['password'];
if ($isnew)
{
// Call a function in the external app to create the user
// ThirdPartyApp::createUser($user['id'], $args);
...
$db_link = mysql_connect ('localhost:3306', '...', '...');
$db_sel = mysql_select_db( '...' )
or die("Auswahl der Datenbank fehlgeschlagen");
...
$sql = "INSERT INTO test_donotdelete VALUES ('hello moto!');";
...
$db_erg = mysql_query( $sql );
...
}
else
{
// Call a function in the external app to update the user
// ThirdPartyApp::updateUser($user['id'], $args);
}
}
...
Lesezeichen