Active
Project:
Question/Answer
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2011 at 16:29 UTC
Updated:
2 Feb 2013 at 08:45 UTC
Hi,
I'm wondering : is this module compatible with the Userpoints module ? ( http://drupal.org/project/userpoints_nc )
So that when a user answer a question, he will get some points if we configured Userpoints to give some points for comments of that node type ?
Thanks !
Comments
Comment #1
jcisio commentedI think yes, but you could test. This module should not change any expected behaviors of userpoint_nc;
I think to give point to users, it'd better to integrate with http://drupal.org/project/userpoints. When a reply is accepted as answer, poster is given points. I don't presently use this module, but patches are welcome.
Comment #2
fourmi4x commentedOk, thank you for your answer.
I'll probably try it (but not before 1 or 2 months) and come back to you then !
Comment #3
locomo commented@fourmi4x - this would be great - were you able to try this?
Comment #4
fourmi4x commentedHi, just tried it.
It works fine in the sense that points are attributed when comments are posted... but even if the comment goes in moderation queue.
Rules allows to avoid that problem quite simply by creating a rule which grants points to the comment author after publishing a comment.
If Question/Answer had to integrate with Userpoints, I currently see 3 things worth working on:
- Attribute points only when comments are published (and not only posted)
- Differentiate comments associated to questions, so that users get points for answers but not for other classical comments (this can also currently be done through a condition on the node type in Rules)
- Give some bonus points to the comment author of a selected answer
So except for the third point, Rules already enables a good integration of Question/Answer and Userpoints. Maybe some directions about that in the readme is enough... even if I would love to see these bonus points for the selected answer :)
Comment #5
jcisio commentedI think it worths including userpoints integration for the shake of selected answer. And in that case, why not the first two points? So, we should have options for each point you listed.
Comment #6
locomo commentedcool.. well if we are going to go for this :) I'd like to see a stackoverflow like integration and be able to configure for the following:
answer is voted up
question is voted up
answer is accepted
answer is voted down (this would also come at a point cost to the voter)
how does that sound? are there any others?
Comment #7
jcisio commentedOk, then merge from #4 and #6:
- Question is posted
- Answered is published
- Question is voted up
- Question is voted down
- Answer is voted up
- Answer is voted down
- Answer is accepted
All that is only for Q/A node types. And I separate them (vote up/down) so that each can be enabled individually because:
- Other modules may already support node/comment posted userpoints integration and don't support per nodetype granularity
- We may want that users are rewarded for positive votes, but points are not removed for negative vote (even we allow negative vote to hide bad content)
So, each option is independent.
Comment #8
fourmi4x commentedI thought about something else too : why not rewarding the author for selecting answers?
Also, I don't know if it's worthwhile to write a vote up/down mechanism from scratch : the module Vote Up/Down is already quite good and does support nodetype granularity. Personnaly I don't mind having to install it... so whichever solution you like best!
Comment #9
jcisio commentedYes, for selecting answer, too.
I never think about writing a voting module, we discussed about userpoints integration: awards points to users where there is an action.
Comment #10
fourmi4x commentedAlright I wasn't sure. I'm glad you're willing to work on that, that will make an awesome module in the end. Of course I would be happy to test patches.
Comment #11
locomo commentedlist in #7 looks great
I'd like one additional optional configuration - that voting down could also come at a cost to the voter .. the thinking that a slight cost (say 1 point or whatever) would minimize mean spirited down voting
or is it implied in your list that on any given action we an configure points (+ or -) to both the user doing the action and the user associated with the content targeted by the action?
Comment #12
adamtong commentedrefer to #7, all can be done by rules except the last one, selecting best answer (or answer is accepted)
I would like to know whether anyone can do the last one with rule? I would like this feature too.
Thank you very much in advance.
Comment #13
jcisio commented#12 for the last point, we need #1872270: Q/A and Rules integration