120 likes | 236 Views
User Points. 6 th Dec 2011 – Hackerspace.SG. User Points. API for users to gain or lose points for performing actions Accumulate Incentive to participate, be more active Included in Drupal Commons. Provided in User Points. Web Services integration: retrieve/update points
E N D
User Points 6th Dec 2011 – Hackerspace.SG
User Points • API for users to gain or lose points for performing actions • Accumulate • Incentive to participate, be more active • Included in Drupal Commons
Provided in User Points • Web Services integration: retrieve/update points • Rules integration • Views integration • Block displaying the user’s point count • Block displaying top users • A status message when earning/losing points • Point report for the user • Total point report for all users
User Points API • Callable interface • Hook system for adding or subtracting points to a user account • Functions for querying a user's account for how many points they currently have. • Tutorial and examples online • Drupal 5/6 http://drupal.org/node/198548 • Drupal 7 / Userpoints 7.x-1.xhttp://api.worldempire.ch/api/userpoints.
User Points API • UserpointsTransaction class • userpoints_get_categories() • userpoints_get_current_point() • userpoints_get_max_points() • userpoints_grant_points()
Thanks! Sven Berg Ryen @svenbergryen sven.ryen@maxus.com.sg