Closed (works as designed)
Project:
Vote Up/Down
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Sep 2009 at 20:34 UTC
Updated:
3 Jun 2011 at 08:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
beauz commentedI am also getting this problem anyone got a solution?
Comment #2
marvil07 commentedplease specify the widget you're using and probably last changes(working around visibility) solve the problem
Comment #3
nightowl77 commentedHi Guys
Glad to see there's a "revival" here - let's keep this going and get this incredibly useful module going.
I've attached a patch that needs review - I'm sure it's not perfect but a lot of grunt work was done. It adds the permission "view vote up/down" which compliments the existing "use vote up/down". That allows you to give certain users the ability to view the widget, but not use it.
If they do not have permission to vote and they try to click "up" or "down" it will take them to a login page. (Suggestion: it might be a good idea to have a admin option that the site admin can set, something like - If user doesn't have rights to vote, A) Forward to this node [textfield] or B) Forward to login page).
VERY IMPORTANT: This patch was done against merlin's ctool patch #615548: Integrate with CTools for AJAX and plugins. You must first patch VUD2 with his patch, and then this patch will work. I can confirm that his patch works perfectly and I've been using it on some of my sites
Hope this helps
Comment #4
marvil07 commentedI've just uploaded an updated patch on #615548: Integrate with CTools for AJAX and plugins
I think you are working with an old vote up/down, please try
DRUPAL-6--2last version, since all validation have changed a little in the last commits.Comment #5
marvil07 commentedPermissions were splitted on #670146: display voting widget even if user doesn't have permission to vote?
the problem here is that it assumes anonymous can never vote, but they can if admin decide it.
nightowl77: please let me know if there is something more to do here.
Comment #6
Oleksa-1 commentedMay be it will help.
For me it was important that all user roles can see widgets and results, but for anonimous users it is not allowed to vote.
I solved it this way:
I added this code
to function vud_vote() in vud.module and now i have what i need.
Comment #7
boran commentedHI,
Any update on this? I'd like anonymous users to see votes, but not be able to vote.
There is a permission "view vote up/down count on nodes" which allow the count to be seen, but not the widget icon.
For comments, there is no such permission.
The patch in #5 does not seem to have been integrated into the stable code?
#6 is not ideal either, doesn't work for me.