vote for anonymous user
Kiev1.org - June 25, 2006 - 01:44
| Project: | Node Vote |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Description
anonymous user is not in a position to vote
however for anonymous user - checkbox "Use nodevote" is on

#1
I'm having the same issue with Version 6.x-1.0 of this module. I have a clean install of D6 with only this module added. Is this by design or a bug?
#2
I don't have time at the moment to submit a patch but here's a temporary fix:
Currently, line 448 says:
if ($user->uid) {Change that line to this:
if (($user) && ($user->uid >= 0)) {You might also consider deleting line 447 altogether...
#3
Well, I once did this for the 5.x version and I needed back again on a D6 site, so I took the time to submit a proper patch.
This changes the schema and provides an update for users already running this module, so run update.php after applying this patch.
It basically adds the following:
- A different new primary key to the table (nvid - node vote id) so anon users can vote on a node.
- A setting to select if anon users can vote or not
- There's a per session limit, meaning that a single anon user will only be able to vote once per node.
What's the changes that this can get committed? Any words from the developer, is this module actively supported? Interested in co-maintainers?
Thanks,
a.=
#4
Committed.
Thanks.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.