Forums

Wp-polls: using relative lengths (most popular=100%) in result bars? (3 posts)

  1. LostInNetwork
    Member
    Posted 2 years ago #

    This great plugin produces a result page where the result bars are relatively short. If the most popular answer gains a 10% share, its bar will only be 10% long. I want ten times more...

    I love this plugin, btw.

  2. GamerZ
    Member
    Posted 2 years ago #

    Hi LostIn Network,

    Open up polls.php

    Find:
    $poll_answer_imagewidth = round($poll_answer_percentage);
    if($poll_answer_imagewidth == 100) {
    $poll_answer_imagewidth = 99;
    }

    Add Below It:
    $poll_answer_imagewidth = $poll_answer_imagewidth*1.5;

    You can play with the 1.5 in numbers

  3. LostInNetwork
    Member
    Posted 2 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags