if ($saveSuccess)
{
CFactory::load('libraries', 'userpoints');
CUserPoints::assignPoint('profile.save');
}
CUserPoints::assignPoint('profile.save', $this->joomlaId);
if ($saveSuccess)
{
// @rule: increment user points for registrations.
$my->_points += 2;
// increase default value set by admin (only apply to new registration)
$config = CFactory::getConfig();
$default_points = $config->get('defaultpoint');
if (isset($default_points) && $default_points > 0) {
$my->_points += $config->get('defaultpoint');
$my->save();
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.