protected function onLogin()
{
$this->settings->set('import_avatar', 1);
parent::onLogin();
}
protected function onRegister()
{
$this->settings->set('import_avatar', 1);
parent::onRegister();
}
protected function setAvatar($socialAvatar)
{
$dest = JPATH_SITE . '/tmp/avatar_' . $this->joomlaId . '.jpg';
JFile::copy($this->getAvatarPath() . '/' . $socialAvatar, $dest);
}
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.