We are trying to allow users to vote on comments (NOT vote for the parent node of a comment, but to add a rating to the actual comment itself).

It seems pretty easy to do with Voting API, but I noticed that Fivestar doesn't do it, I was told that Voting doesn't do it, etc.

So, I was about to implement it myself in my own module using Voting API and was wondering if there is some issue with comment voting that I don't know about, since no one else is doing it? Is there a problem I should be aware of?

Thanks.

Comments

awolfey’s picture

I am also trying to do this. I'm using Extra Voting Forms, which allows comment voting. I see all the votes in the tables, but I can't get the "VoteAPI points" sort options in Views. I only see the "VoteAPI percent" options. I am not using user_karma, but Extra Voting Forms refers to comment voting as karma. I'm guessing that's just a confusing choice of words. I just want to see the number of votes/points.

SolomonGifford’s picture

Any update on these? Would be willing to make a donation for a simple comment moderation module.

awolfey’s picture

I got this to work using voting_api, extra voting forms, and a custom module to create a block that displays the comments with the top votes. It's just voting, not moderation, though. You can see the block here: http://www.velocitynation.com/node/2073. Let me know if you're interested in the details.

Unfortunately I couldn't make voting_api and extra voting forms work with views, or I would have gone that route.

SolomonGifford’s picture

Thanks.

I ended up writing a module for comment moderation based on voting (http://drupal.org/project/comment_modr8).

I need to update the instructions, but its a pretty small module that uses the power of fivestar to moderate comments. Commenting out a few lines of code would make the module essentially just voting on the comments. What *should* be done is use actions, but it seems voting_actions is not stable.

mitchell’s picture

Version: 5.x-1.6 » 6.x-2.0-rc2
Status: Active » Closed (fixed)

Marking this issue as closed, because the Voting API project description says you can vote on comments.

@solomongifford and others interested in Actions integration with Voting API: development is underway here,
#319094: Integration with Rules
#79266: Actions Integration