Is there a way to allocate multiple sets of points for each user? From what I understand as it is, every user only has one set of points for their account. For example, is it possible for each user to have say "Gold points", "Silver points" and "Bronze points" that can all have different amounts?
Comments
Comment #1
kbahey commentedYes.
Use the 5.x-3.x version and use categories.
Comment #2
mscdex commentedAfter reviewing how categories work, it appears that categories are made up of manually created vocab terms? I was hoping to be able to use my own category strings created on the fly, since for my situation the points wouldn't be tied to a certain term for each user. For example, being able to create a new category for the user by way of a function like userpoints_addcategory($categoryname, $uid=NULL). So I could specify something along the lines of: userpoints_addcategory("Gold") which would create a category "Gold" for only the currently logged in user. Then being able to also programatically add/subtract points from the newly created category. Also, ideally there would be a userpoints_deletecategory function as well.
Is something like this possible with userpoints?
Comment #3
jredding commentedhttp://drupal.org/node/206558
2 possible methods
1)
categories are taxonomies therefore you can use taxonomy_save and taxonomy_delete to add/subtract categories, check the code in userpoints or api.drupal.org on how to use these functions.
2) use the reference field in the D.B to save your custom module's "categories" and leave all of the points in the same tid(category). That is an easy way to "tag" the points with an arbitrary string but you have to create all of the functions to react to the new function (i.e the existing summary pages don't look at reference but only at category.
in reference to userpoint_addcategory("gold") or userpoints_deletecategory() doing this would be a bad idea as taxonomy_save and taxonomy_delete already exists you can use userpoints_get_vid for use in the taxonomy_* functions.
The pieces are there.. good luck!
Comment #4
jredding commentedclosing as this is currently possible.