Currently the author panel prints (shows) the current points of a user. How would I print (show) max points also?

/* Points */
if (isset($userpoints_points)):

print t('!Points', userpoints_translation()); : print $userpoints_points;

endif;

Comments

berdir’s picture

Status: Active » Fixed

You can always call the API function (userpoints_get_max_points()) to get that information.

Be aware that the max points are broken by design in Drupal 6 and will lead to wrong results (They are in fact the sum of all positive points a user ever had and *not* the highest amounts of points he ever had).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.