Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
# Summary
This module provides an API for users to gain or lose points for performing certain actions on your site.
# Project URL
https://www.drupal.org/project/userpoints
# Where is the code?
# Estimated completion date
# Dependencies
# Who's doing the port?
# What help do they need?
# D8 roadmap
https://www.drupal.org/node/2139777
# Background and reference information
(Links to any other helpful information, documentation, etc.)
Comments
Comment #2
giorgio79 CreditAttribution: giorgio79 commentedSome major changes were discussed in this issue #1258032: Allow to attach a points field to any entity and migrate the current hardcoded assignement to users The idea is that the module could take the drupal.org/project/points space and provide an upgrade path from D7 userpoints.
Comment #3
chx CreditAttribution: chx commentedUserpoints at this point is dead. 7.x-2.x saw zero activity for three years, 7.x-1.x in the last four have seen 8 commits which aside from adding migration support added less than 50 lines of code and removed 18 -- in other words, minor fixes.
The codebase is close to 200KB making a port quite the endeavor. The API has tests which help. I do not know how to proceed, to be honest.
This is not a critique of anyone, this is a summary of facts.
Comment #4
chx CreditAttribution: chx at Smartsheet commentedAfter talking to Berdir, a good approach would be to write a new module from the ground up focusing on basic functionality at first and a migration path and then gradually add functionality as needed.
Comment #5
giorgio79 CreditAttribution: giorgio79 commentedAlso, most of the use case can be covered natively with Drupal.
Add an integer field to the User Accounts, and you do whatever you want with it in Rules...
Comment #6
chx CreditAttribution: chx at Smartsheet commentedRudimentary D7 handbook is at https://www.drupal.org/node/1538402
Comment #7
manuel.adanA few days ago, I published a first -dev version of the userpoints module that can be found here: #2139777-19: Port User Points to Drupal 8. In previous comments on that issue, there is some background about the implementation approach. Basically, with reusability and generalization in mind, I based userpoints on another module, transaction, that provides an abstract base for transactional flows attached to content entities.
At this point, some feedback from the community is needed. I've also applied to co-maintain the userpoints module at #2944046: Apply for co-maintainer.
Comment #8
mmjvb CreditAttribution: mmjvb as a volunteer commentedComment #9
manuel.adan8.x-1.0-alpha1 release available for testing, review & feedback.
Comment #10
Graber CreditAttribution: Graber as a volunteer commentedHi all, I needed a more comprehensive functionality in one of my current projects so here it is: https://github.com/graber-1/userpoints
It has an option to attach points to any entity, logs and UI for user entities and point types management. I'll add rest resources for headless stuff soon. Please review anyone that has time or is actually interested.