When "Anonymous vote rollover" (votingapi_anonymous_window) is set to "Immediately", I would think that anonymous users would be able to vote over and over again without having to wait between the votes. This doesn't seem to work like it should..

I have Vote up/down module and Fivestar installed and they both seem to work the same. First they select the votes that match the criteria for anonymous voters by calling votingapi_select_votes() and then delete all those votes and then cast a new vote. votingapi_select_votes() seem to be the problem here, because when the votingapi_anonymous_window is set to 0, it doesn't add the timestamp criteria at all and thus selects all the votes that match the content_id and IP.

So, if I have the votingapi_anonymous_window set to something else than 0, our anonymous visitor "George" with IP 127.0.0.1 can make multiple votes to content_id X. Over few weeks he has voted X 67 times.
Then when I change the votingapi_anonymous_window to 0 and that same George from IP 127.0.0.1 votes the same content X again, all his previous 67 votes are overrun and replaced with the newly casted one vote.

Is there something that I'm seriously missing on the logic of that setting, or should there be something done with votingapi_select_votes()? http://drupal.org/node/621578 seems to suggest changing the line "if (!empty($criteria['vote_source']) && $anon_window > 0) {" into "if (!empty($criteria['vote_source']) && $anon_window >= 0) {", but I'm not 100% sure that this is a duplicate.

Comments

brei9000’s picture

I'm seeing the same issue. Have you found any more information on this?

truyenle’s picture

Same issue here, any solution?

mabho’s picture

Same issue here, any solution found for this so far? Thanks.

mabho’s picture

I know this is a hack, but I have edited the file named "votingapi.admin", line 13, inside function votingapi_settings_form. I have added an option for 1 second. After selecting it in my configuration interface, it works perfectly.

suffering drupal’s picture

On our site fivestar simply doesn't work for anonymous users. And as a block it does not even show up..
I'll try to see if using your settings and suggestion there is an improvement.

loparr’s picture

Hi,
Great this works. My only problem is that the count won't stay added. After refreshing page or returning from other page to my voting page - the count is unchanged. Until I flush cashes. Is there any workaround?
Thanks

legolasbo’s picture

Status: Active » Closed (won't fix)

Drupal 6 is no longer supported. Closing old issues to clean up the issue queue.

Please reopen and update this issue if this is still an issue in the D7 or D8 version.