// This makes the footer appear again
unsetGetRequestParameter('frame');
} elseif ((isGetRequestParameterSet('frame')) && (getRequestParameter('frame') == 'stats')) {
- // Get total points amount
- $points = countSumTotalData(getMemberId(), 'user_points', 'points') - countSumTotalData(getMemberId(), 'user_data', 'used_points');
-
// Prepare content
$content = array(
- 'points' => $points,
+ 'points' => getTotalPoints(getMemberId()),
'reload' => (getConfig('surfbar_stats_reload') * 1000)
);