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

allon’s picture

Version: 5.x-1.x-dev » 6.x-1.0-beta4
Component: Miscellaneous » User interface
Category: bug » support

Hi, 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

parrottvision’s picture

same problem for me - all nodes are stuck on 1 point.

parrottvision’s picture

reinstalled from scratch and it came right. had to delete all references in variables and system also.

marvil07’s picture

Version: 6.x-1.0-beta4 » 6.x-1.0-beta6
Category: support » bug
Status: Active » Closed (won't fix)

I can not reproduce the problem on 6.x-1.x, and I think format_plural is used on the right way.