Posted by Oleksa on September 4, 2009 at 8:34pm
| Project: | Vote Up/Down |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
| Issue tags: | vud-2-blocker |
Issue Summary
In comments it is ok, they see total vote count, but in teaser or full node it is not be displayed
Comments
#1
I am also getting this problem anyone got a solution?
#2
please specify the widget you're using and probably last changes(working around visibility) solve the problem
#3
Hi 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
#4
I'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.#5
Permissions 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.
#6
May 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
<?php
global $user;
if (!$user->uid) {
exit();
}
?>
to function vud_vote() in vud.module and now i have what i need.
#7
HI,
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.