Skip to Content Skip to Menu

problem with onAfterUpdateUser and other events

  • mhandze
  • mhandze
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
12 years 9 months ago - 12 years 9 months ago #188564 by mhandze
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!
Last edit: 12 years 9 months ago by mhandze.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum