Other Plugins

site speed and cb plugin problem in registration

  • saman سامان
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • samansamani2[at]yahoo.com
More
7 years 3 weeks ago - 7 years 3 weeks ago #11 by saman سامان
Replied by saman سامان on topic site speed and cb plugin problem in registration
hi again...i find new thing please say me whay use :
Code:
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?
Last edit: 7 years 3 weeks ago by saman سامان.

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

More
7 years 3 weeks ago #12 by Antonio Durán
Replied by Antonio Durán on topic site speed and cb plugin problem in registration
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.

  • saman سامان
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • samansamani2[at]yahoo.com
More
7 years 3 weeks ago - 7 years 3 weeks ago #13 by saman سامان
Replied by saman سامان on topic site speed and cb plugin problem in registration
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.
Last edit: 7 years 3 weeks ago by saman سامان.

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

More
7 years 3 weeks ago #14 by Antonio Durán
Replied by Antonio Durán on topic site speed and cb plugin problem in registration
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.