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

jcisio’s picture

Version: 6.x-1.6 » 6.x-1.x-dev

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

fourmi4x’s picture

Ok, thank you for your answer.
I'll probably try it (but not before 1 or 2 months) and come back to you then !

locomo’s picture

@fourmi4x - this would be great - were you able to try this?

fourmi4x’s picture

Hi, 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 :)

jcisio’s picture

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

locomo’s picture

cool.. 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?

jcisio’s picture

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

fourmi4x’s picture

I 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!

jcisio’s picture

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

fourmi4x’s picture

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

locomo’s picture

list 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?

adamtong’s picture

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

jcisio’s picture

#12 for the last point, we need #1872270: Q/A and Rules integration