You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a custom plugin for my site. I'm trying to add badges for my users. It award points to user but the it never awards badges. In fact the method onAfterPointsIncrease in Badging/Leveling/Ranking is never called.
I tested with the plugin GamificationPoints. And it works. But when I'm calling $userPoints->increase($pointsType["value"], $options); from my plugin, the observer methods are not called though the increase function is called.
public function increase($value, $options = array())
{
// Implement JObservableInterface: Pre-processing by observers
$this->observers->update('onBeforePointsIncrease', array(&$this, &$options));
$this->points += abs($value);
$this->store();
// Implement JObservableInterface: Post-processing by observers
$this->observers->update('onAfterPointsIncrease', array(&$this, &$options));
}
I've no idea why the observers are not triggering the methods onBeforePointsIncrease or onAfterPointsIncrease
Please help
The text was updated successfully, but these errors were encountered:
I'm developing a custom plugin for my site. I'm trying to add badges for my users. It award points to user but the it never awards badges. In fact the method onAfterPointsIncrease in Badging/Leveling/Ranking is never called.
I tested with the plugin GamificationPoints. And it works. But when I'm calling $userPoints->increase($pointsType["value"], $options); from my plugin, the observer methods are not called though the increase function is called.
I've no idea why the observers are not triggering the methods onBeforePointsIncrease or onAfterPointsIncrease
Please help
The text was updated successfully, but these errors were encountered: