Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We've however just included 2 more triggers for this since you're saying this needs specific RSTickets!Pro triggers (which shouldn't normally matter as your third party product could had used these Joomla! triggers and then further modify that else they may need in the database).
Nevertheless, you'll need to download RSTickets!Pro once again from our website and install it over your current one (this acts as an update and will include 2 new extra triggers; we haven't officially released a new version for this since we're still working on the next one) - note that if you've made source code to RSTickets!Pro, such changes will be lost.
After the manual update, the component will include these 2 triggers:
$app->triggerEvent('onRsticketsproBeforeCreateUser', array($user));
$app->triggerEvent('onRsticketsproAfterCreateUser', array($user));
Within your third party plugin where the user is being manipulated, you could use these as (examples):
public function onRsticketsproBeforeCreateUser($user)
{
//overriding the name property before creating the user:
$user->set('name', 'Jean');
}
public function onRsticketsproAfterCreateUser($user)
{
//after the user is created, this dumps the user's data within the respective pointed out file:
file_put_contents(JPATH_SITE . '/user.txt', print_r($user, true));
}
For example, data user dump:
Joomla\CMS\User\User Object
(
[isRoot:protected] =>
[id] => 96
[name] => Jean
[username] => nuexist
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.