The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Poll Voting Percentage Problem
Hi all,
In my forum,when someone voted in a multiple choice poll, it displays as follows; Attachment 138135 The percentages are allocated as 100% for each option. But I need it to be like this: Attachment 138136 (i.e. as an overall percentage for the whole poll) I guess my problem is clear to all of you. Anyone knows how to get the result I wanted? Please help me with this.. |
#2
|
|||
|
|||
I think all you need to do is find this block of code:
Code:
else if ($pollinfo['multiple']) { $option['percentraw'] = ($value < $pollinfo['voters']) ? $value / $pollinfo['voters'] * 100 : 100; } and remove it or comment it out (by putting // at the beginning of each line). Unfortunately for some reaosn it appears in three different files: poll.php, showthread.php, and forumrunner/get_thread.php (assuming you have vb4.1.12 or later), so it needs to be done in each place. |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
Great. Fix Works to fix the issue with VB 3.8 percentage calculation in multiple votes. When the Mod Multiple Votes is installed.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|