Closed (won't fix)
Project:
Vote Up/Down
Version:
6.x-1.0-beta6
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2009 at 12:46 UTC
Updated:
8 Jun 2010 at 21:11 UTC
Hello,
I'm using Vote Up/Down for rating comments. Whatever the number of votes (at least one), the score displayed is "1 point". As far as I understand the way things work, it should display the sum of the votes the comment has received. Am I right ? If so, there is a problem with the format_plural function or the way it is used in function theme_vote_up_down_points.
I have made the following replacement :
$vote_result->value . ' ' . format_plural($vote_result->value, 'point', 'points')
instead of :
format_plural($vote_result->value, '1 point', '@count points')
It works fine but is it the best answer to the problem ?
Comments
Comment #1
allon commentedHi, I'm having the same problem, but not for comments. Voting on the main post itself is stuck at "1 point" and no change to any configuration helps.
Questions:
1. In your workaround above, where do I implement it (in which file), and does it work only for comments or also for main posts?
2. Have you come across an official fix for this by any chance?
If you can, please post your reply to drupal at allon.com
Thanks,
Allon
Comment #2
parrottvision commentedsame problem for me - all nodes are stuck on 1 point.
Comment #3
parrottvision commentedreinstalled from scratch and it came right. had to delete all references in variables and system also.
Comment #4
marvil07 commentedI can not reproduce the problem on 6.x-1.x, and I think format_plural is used on the right way.