![]() |
Proper poll percentages
This mini mod is made because vB didn't calculate the percentages in a poll by looking at the total number of voters, but by looking at the total number of votes. In multiple choice polls this number is not the same and it seems intuitive to me that the interesting percentage number is the percentage of people who have chosen that particular option.
In poll.php, substitute: Code:
if ($option['votes'] == 0) Code:
if ($option['votes'] == 0) Code:
if ($value == 0) Code:
if ($value == 0) Best wishes, |
|
Oh dear, didn't see that.
|
damn, KirbyDE will have to go to the doctor... about one time a week, someone release a hack he already coded... he will die from caughts...
|
Quote:
|
From what?
|
caughts
|
Quote:
|
All times are GMT. The time now is 12:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|