× Other Plugins

site speed and cb plugin problem in registration

6 years 6 months ago 6 years 6 months ago by saman سامان.
saman سامان
Posts: 253
More
Topic Author
site speed and cb plugin problem in registration #11
hi again...i find new thing please say me whay use :
function onAfterUserCreate(&$hikauser){
$userClass = hikashop_get('class.user');
$user = $userClass->get($hikauser->user_id);
$username = $user->username;
$this->sync_user ($username);
}
in the :
\plugins\hikashop\joomdle\joomdle.php:35

hikashop can not create user , why use this code?

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

6 years 6 months ago
Antonio Durán
Posts: 7815
More
site speed and cb plugin problem in registration #12
This plugin reacts to Hikashop events, so Moodle profile data can be updated when you change address/user info in Hikashop.
If you are not using Hikashop as data source, you should not be using this plugin.

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

6 years 6 months ago 6 years 6 months ago by saman سامان.
saman سامان
Posts: 253
More
Topic Author
site speed and cb plugin problem in registration #13
i say why use onAfterUserCreate ?
we use hikashop for one of my course, but i say why use this event when user create means why need to trigger in user create step? we can not create user in hikashop.

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

6 years 6 months ago
Antonio Durán
Posts: 7815
More
site speed and cb plugin problem in registration #14
Again: if you are not using Hikashop for profile data, don't use this plugin.

> i say why use onAfterUserCreate ?
Because this is the event triggered by Hikashop when an user is created.

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