Closed (fixed)
Project:
User points Nodes and Comments
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2007 at 12:55 UTC
Updated:
29 Sep 2009 at 21:30 UTC
Jump to comment: Most recent
Comments
Comment #1
kbahey commentedComment #2
(not verified) commentedI think this is the same as http://drupal.org/node/171344
Comment #3
jgoldfeder commentedThat's a circular reference fuzzy. :)
jredding advised posting here from the dupe node you are linking to... That makes this the 'official' revision request node imho (for v2). That said, I'm interested in this feature too, but for version 3.
Also, in that node he posted that it was not possible for v2.
Comment #4
fuzzy_texan commented@majorxp: so it is :)
Happy for this to be for version 3. Also happy to help with testing any patches for this.
Comment #5
Vuds commentedSubscribing...
If someone can give me some coordination (files and functions to work on mainly, and basic workflow to make it work), I'd try to do a patch about this.
Thanks!
Comment #6
jredding commentedeverything you need is in userpoints_basic.
In short these steps are
1) Add a setting to allow for points on revisions (maybe a checkbox next to the node?
2) in the hook_nodeapi function check for a new revision being created and then grant a point for that. You would do it on $op == update instead of $op == insert. (as it is now)
Comment #7
Anonymous (not verified) commentedThanks jredding - has anyone tried this?
Comment #8
jredding commentedmoving this over to the new project for possible inclusion over there.
Comment #9
highvoltage commentedWas about to request this functionality for the 6.x version myself. It's quite necessary for wiki type pages.
Comment #10
Anonymous (not verified) commentedJust checking in to see if this is still in the works. It would be a very useful addition for our collaboration sites for teaching and learning.
Comment #11
BenK commented+1 for this feature.... I really need this as well.
Comment #12
fuzzy_texan commentedYou can use rules for this. Set up a triggered rule where
IF updated content is of type = (whatever content types you want to be included in this)
DO grant points to a user
User: Acting user
Number of points: whatever you want.
Then the user updating the content gets points for updating the content (much the same as creating a revision really - achieves what I wanted out of this.)
Comment #13
BenK commentedHey fuzzy_texan,
Thanks for the suggestion to use Rules. Were you able to get your configuration actually working? When I try to use the configuration you specified, points get awarded to the admin (User #1) instead of the user updating the content.
Appears to be a bug in the rules integration with userpoints....
Cheers,
Ben
Comment #14
fuzzy_texan commentedYep I did actually. It awards points to the user that updates the page. I can't check now, but later tonight will be able to look into it and see if I can post some more details about how I did it. Get back to you shortly BenK.
Comment #15
fuzzy_texan commentedOK I've checked mine. It's definitely working, and seems to be just from the settings I listed above. I've exported the rule here. I don't think you will be able to striaght import it as my rules for a few custom content types, but at the least it's here to look over now.
Comment #16
BenK commentedThanks.... I ended up using a combination of the Revisioning module (http://drupal.org/project/revisioning) and Rules. The advantage of using Revisioning is that you don't have to award points on the node update, but rather when the update is actually approved.
Thanks again!
--Ben