Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: robinrobin - maaliskuu 14, 2009, 03:01:46 IP

Otsikko: Modify length of percentage-bar for polls?
Kirjoitti: robinrobin - maaliskuu 14, 2009, 03:01:46 IP
2.0 RC1

The whole poll-area covers the entire page from left to right, but the percentage-bars of the results are only around 100px, which looks rather off. I'm using OrangeLine by Crip but this theme uses the Default theme's files almost entirely so consider me using the default one.

Anyone who knows how to change this? Would appreciate some help!
Otsikko: Re: Modify length of percentage-bar for polls?
Kirjoitti: greyknight17 - maaliskuu 15, 2009, 12:46:44 AP
Does it look ok on the default theme? If so, you might want to try posting in that OrangeLine theme's support topic instead to see if any users there know what changes to make.
Otsikko: Re: Modify length of percentage-bar for polls?
Kirjoitti: robinrobin - maaliskuu 15, 2009, 02:14:47 IP
I checked, and it looks exactly the same in the default theme. So does this mean that the default width of the result-bars is very short? I'd love to be able to choose their width.
Otsikko: Re: Modify length of percentage-bar for polls?
Kirjoitti: onepiece - maaliskuu 16, 2009, 10:19:39 AP
Sources/Display.php

Koodi (Find) [Valitse]
$barWide = $bar == 0 ? 1 : floor(($bar * 8) / 3);

Increase 8 to suit your needs. Changing it as 16 will make it two times wider.
Otsikko: Re: Modify length of percentage-bar for polls?
Kirjoitti: robinrobin - maaliskuu 16, 2009, 10:34:29 AP
Fantastic! Thank you miss Tenma. *Bowing gratefully*