I'm using Vote UpDown, Voting Actions, Actions, Voting API modules and they work fine on nodes(promoting, unpublishing).
But I couldn't make them work on comments. I can see the widget, I can use it, my vote is cast but no action is done.
I wanted to unpublish comments when one has lower points than -10, so I set up an action like:

value type
Points

tag
empty

function
average

comparison
is less then

value
-10

Actions

action
Unpublish comment

Voting actions seems to work fine with nodes, so i think there is a bug with comments.

Any suggestions?

Comments

eaton’s picture

I'll take a look. What versions of votingapi and voting_actions are you using?

formicin’s picture

Voting Actions 4.7
Voting API 4.7 (I was using the CVS version, but I uninstalled it by disabling, then dropping the tables created by voting api and dropping the columns that belong to voting api. Then I uploaded the 4.7 version and enabled it)

formicin’s picture

Is there anyone that can use voting with comments?

skor’s picture

Works for me on a fresh 4.7.2 install with the latest version of voting api, voting actions, actions, and vote up/down.

however, I have another install (4.7beta6 I think) with some previous versions of voting api, and actions that I'm having trouble upgrading properly.

skor’s picture

here are my settings:
value type
Points

tag
empty

function
average

comparison
is less then

value
0

Actions

action
Unpublish comment

skor’s picture

Status: Active » Closed (fixed)

Updated my non-working site to 4.7.2 and it seems to work. No idea why that should make a difference

formicin’s picture

Status: Closed (fixed) » Active

I use the latest versions, but they are updated ones. I'll try to install fresh versions of them and post a follow up.

skor’s picture

Actually, mine is broken again. Was working for a single action to un-publish the comment per my above config. But then I added a 2nd action to try to send an email notification (triggered by the same contitions) and now neither action triggers.

formicin’s picture

Were you able to make it work?

skor’s picture

no, not even when I delete all the actions, and then re-implement just the un-publish action. The voting api is clearly working properly, since the score appears to update properly. Seems like the first step should be to figure out whether the voting-actions module is actually making the call to the actions module. Then we'd at least know which module to look at. Is there any better method for de-bugging than putting print-statements in the code to check which branches are being executed?

formicin’s picture

you can use the devel module as an option, but I don't know if it can help.

ksoonson’s picture

I experience similar issues.

Could you check http://drupal.org/node/107735 ?

I also am having trouble with automatic comment deletion.

stafford’s picture

Hi,

Same problem here. Voting comments works fine. But the voting actions don't work. Modules: vote up/down, actions, vote actions.

Settings:

value type: Points

tag: "emtpy"

function: sum

comparsion: is less than

value: 0

We have a lot of comments with negatives, but they are still published.

Did I make a mistake?

duaelfr’s picture

Status: Active » Closed (won't fix)

This version of Voting Actions is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.