Page 2 of 2

Re: FJs for the 6/27/11 week

Posted: Tue Jul 12, 2011 2:30 pm
by Uncle Jeff
alietr wrote:I believe this is the code that calculates the percentages. If someone who knows code better than me is able to figure out how to get the percentages to calculate like they used to, I will implement the change. Thanks for any help!

Code: Select all

foreach ($poll_info as $poll_option)
   {
      $option_pct = ($poll_total > 0) ? $poll_option['poll_option_total'] / $poll_total : 0;
      $option_pct_txt = sprintf("%.1d%%", round($option_pct * 100));
      ...
      );
   }
The fix requires more data. Where is poll_total counted? Maybe it needs to count one per voter instead of one per option. Either that, or there might be another variable called something like voter_total. I'd need to hunt around in various parts of the polling code to suggest the best way to fix it.

Re: FJs for the 6/27/11 week

Posted: Fri Jul 15, 2011 12:04 am
by Volante
:mrgreen: :( :mrgreen: :mrgreen: :mrgreen:
:( :mrgreen: :mrgreen:

Grr...28th not up on the Archive yet, DVR failed to record it, I was hoping I'd've gotten it right so I'd have a 17 straight FJs...but no...down to 12 straight now.

Re: FJs for the 6/27/11 week

Posted: Mon Jul 18, 2011 11:33 am
by BoK
:mrgreen: :mrgreen: :mrgreen: :mrgreen: :x
:mrgreen: :mrgreen: :mrgreen:
Jane Austen was an instaget on Friday. Unfortunately, I convinced myself to change to George Eliot before the music ended.

Re: FJs for the 6/27/11 week

Posted: Mon Jul 25, 2011 2:15 pm
by cinemaniax7
:) :) :) :) :)
:) :) :)