Restore previous votes
gte451f - January 30, 2006 - 03:05
| Project: | Voting |
| Version: | 4.6.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Ben,
Great module and I love your http://www.saccf.com/ website. I installed the module with little trouble but I am having one minor problem. On your website, a person previous vote appears to be restored when navigating away from and back to a node that a user already voted on. That isn't happening on my site. Sure the vote gets saved, and when a user votes on the same node twice, the existing vote is updated but the user will return to the node at a later date, and they will not see their vote, just a set of empty stars.
What am i missing?

#1
Are the users logged in when this is happening? Or are these anonymous users?
If they are logged in this definitely shouldn't be happening. Every individual vote for every user is saved. If they're anonymous, cookies and the IP address are used to try to stop the user from voting again. However, the IP address is only used for a little while (one hour, if I remember correctly) since many IP addresses change. The cookie method isn't guaranteed to work either because some browsers may be set to reject cookies.
#2
Yes this is when a user is logged in. You can see a live example over at add-vantaged.com.
The demo account is User/User. I navigate to a Blog entry (This is the only type enabled for voting at the moment) and vote on somthing. Then I go to another page and come back only to find my vote gone as if I never voted.
****Important****
Even though the vote doesn't appear on the screen, it is being recorded in database. Also, when I go back to a blog I already voted on and vote again the previous vote is updated correctly.
Jim