anonymous user is not in a position to vote
however for anonymous user - checkbox "Use nodevote" is on

CommentFileSizeAuthor
#3 70677_nodevote_anonymous.patch4.69 KBhanoii

Comments

blueflowers’s picture

Version: 4.7.x-1.x-dev » 6.x-1.0

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?

jerdiggity’s picture

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...

hanoii’s picture

Assigned: kiev1.org » Unassigned
Status: Active » Needs review
StatusFileSize
new4.69 KB

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.=

kbahey’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Needs review » Fixed

Committed.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.