Universal Poll Bars

Shelley

Tazmanian
Joined
May 11, 2005
Messages
4,101
Preview

ai34.tinypic.com_2lw5dlh.png

Software: vBulletin (though the bars I'm sure can be adapted for other forum scripts).
Installing Info

Unzip the contents and upload the (.gifs) into /polls Directory. Because the left & right pollbar images are slighty bigger in dimension you will need to make an edit in the pollresult template. Find the code in the pollresult template (highlighted in red below) and change the dimensions width to 5. If you choose to use the .png bars then you'll need to change the format extension from .gif to .png (highlighted in blue)

Code:
<tr>
    <td class="alt1" width="75%">
        <if condition="$option['uservote']">
            <em>$option[question]</em>
        <else />
            $option[question]
        </if>
        <if condition="$show['pollvoters']"><div class="alt2 smallfont" style="border:inset 1px; margin-top:$stylevar[cellpadding]px; padding:$stylevar[cellpadding]px">$names</div></if>
    </td>
    <td class="alt2" nowrap="nowrap">
        <img src="$stylevar[imgdir_poll]/bar$option[graphicnumber]-$option[open].[COLOR="Blue"]gif[/COLOR]" alt="" [COLOR=red]width="5"[/COLOR] height="10"
        /><img src="$stylevar[imgdir_poll]/bar$option[graphicnumber].[COLOR="Blue"]gif[/COLOR]" alt="" width="$option[barnumber]" height="10"
        /><img src="$stylevar[imgdir_poll]/bar$option[graphicnumber]-$option[close].[COLOR="Blue"]gif[/COLOR]" alt="" [COLOR=red]width="5"[/COLOR] height="10"
        /><img src="$vboptions[cleargifurl]" alt="" width="$option[remainder]" height="10" />
    </td>
    <td class="alt1" width="12%" align="center" title="$vbphrase[votes]" nowrap="nowrap"><strong>$option[votes]</strong></td>
    <td class="alt2" width="13%" align="$stylevar[right]" nowrap="nowrap">$option[percent]%</td>
</tr>

Brought to you by vBSmiley.com
 

Attachments

  • Poll Bars (White Matted).zip
    4 KB · Views: 30
  • Poll Bars (Black Matted).zip
    4 KB · Views: 33
  • Poll Bars .PNG (Transparent).zip
    5.5 KB · Views: 48
Last edited:
Top