Closed (fixed)
Project:
User Points
Version:
6.x-1.2
Component:
Code: userpoints
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Apr 2011 at 21:09 UTC
Updated:
10 May 2011 at 05:11 UTC
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)):
endif;
Comments
Comment #1
berdirYou 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).