120 likes | 249 Vues
The User Points API for Drupal offers a comprehensive system to manage user points, enabling users to gain or lose points based on actions performed. Designed to incentivize participation, it integrates seamlessly with Drupal Commons, allowing for web services integration, rules functionality, and views for dynamic content display. Key features include point retrieval and updates, user point reports, and custom hooks for adjusting user points. Complete with tutorials and examples for easy implementation, the User Points API enhances community engagement and activity. Explore further at our demo links.
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