Hi, I have a minor support request: I can not figure out how to make a report based on node types. eg, User X has ten points, 6 from forum topics created and 4 from book content created. Currently my reports simply show 'uncategorised' which is unhelpful to users since I told them they get different points for different content types.
I am using Views Integration, but see no possible fields for creating a table that shows Node Type and teh associated amounts of earned points.
I also created some taxonomy/categories, but all that appears to do is require the user to select the terms in the userpoint category that I created, eg, Forum Topic, Book Content. This adds a redundant step to the create content workflow and also is prone to error since a user may select Book when creating Forum content.
Have I missed a fundamental creative feature of userpoints and the reporting thereof?
Comments
Comment #1
kbahey commentedYou can use several approaches:
1. Assign each node type a separate category, then display each and a sum of all.
2. Go through the userpoints_txn table and extract the data from there, but that can involve a lot of rows to process.
Comment #2
general need commentedThanks for the reply. For #1, does that mean the user must select a userpoints category each time they add content? That's a workflow step I'd like to avoid.
#2 sound beyond my means.
Comment #3
kbahey commentedBoth require coding.
For #1, no, the user does not have to do anything. The module will route points for node type X to category 1, node type Y to category 2, ...etc. A modified userpoints_basic module for your own use is required.
For #2, it could be a new module that does the appropriate SQL queries from the userpoints_txn table.
Comment #4
general need commented#1 sounds great, but I think I will have to miss out. Thank you for replying though.
Another problem I have with user-driven Category allocation of points is that they will post a forum topic yet select say "Blog" in the mislead hope that they will earn more points (assume: Blog > Forum). All that will happen is the reports will be inaccurate.
Comment #5
jredding commentedThis is a common misconception and maybe one that needs to be address with an update to userpoints_basic. Categorization only happens with code placing the userpoints category/taxonomy on the node type won't cause points to be allocated to that category.
This has been discussed before and I disagreed with adding that functionality into userpoints_basic but maybe I should be willing to concede and just add that as a feature. Sadly I don't have the time to add this now but..
Please read this thread and reply to it if it was what you were expecting to happen.
http://drupal.org/node/185172
I'm closing this thread.