Support » Plugin: YOP Poll » Result bars the same length after refresh

  • Resolved merkuriel

    (@merkuriel)


    Hi there!

    I’m having a slight issue over display of result bars.

    After casting vote by my anonymous voters, they are shown results

    like in result_bar.png. I block voting simply by cookies.

    After I refresh page, my result bars look different, they are of same length and intensity, there is no difference. Red bar is exactly the same in all of chosen answers.

    result_bar_after_refresh

    Is this by design or is something wrong? My WP is 4.2.2. I can re-create issue in both Firefox and Chrome.

    Thank you in advance,
    Alen

    https://wordpress.org/plugins/yop-poll/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter merkuriel

    (@merkuriel)

    Further information:

    When my vote percentage is round, like 30% or 25% my result bars are displaying properly (are calculated properly), but when my vote percentage per answer is like 33,3 or 33,33%, that particular result bar extends through like 80% width of result bar. There is no difference between 33,3 or 25.2%. All percentages with decimals are not calculated properly after I refresh poll results.

    I’m blocking double vote with cookies.

    Initially, I as said, result bars after votes are cast are fine, but when I refresh page with poll on it, I get scrambled results bar and wrong colored width to represent certain percentage.

    Please help!

    Plugin Author YOP

    (@yourownprogrammer)

    Hello

    Please update to version 5.7.4 and let us know if you still have this issue.

    Best
    YOP Team

    Thread Starter merkuriel

    (@merkuriel)

    No change after update. Same problem persists.

    Same weird thing. First time i get results bar are normal, percentages are displayed normal. But after I refresh result page, I can’t vote because I already voted, but results shown are different. It is as if calculation of percentage after refresh gone wrong.

    In resultbar.png You can see first two results. Both had the yellow bar of same length which doesn’t make sense.
    But when I manually removed comma and put point instead from percentage in Firebug, suddenly the yellow result bar came to senses.

    Plugin Author YOP

    (@yourownprogrammer)

    Hello

    Please send us a link to your poll so we can look into this issue.

    Best
    YOP Team

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Result bars the same length after refresh’ is closed to new replies.