# 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

jhedstrom created an issue. See original summary.

giorgio79’s picture

Some 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.

chx’s picture

Userpoints 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.

chx’s picture

After 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.

giorgio79’s picture

Also, 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...

chx’s picture

Rudimentary D7 handbook is at https://www.drupal.org/node/1538402

manuel.adan’s picture

A 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.

mmjvb’s picture

Status: Active » Needs work
manuel.adan’s picture

Status: Needs work » Needs review

8.x-1.0-alpha1 release available for testing, review & feedback.

Graber’s picture

Hi 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.