How to make votebar.png shorter
error 232
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: How to make votebar.png shorter
Philipp Esselbach
From: -
Editor
0From: -
Open blocks/news_poll.php in an editor and find:
Then replace it with:
You can adjust the bar length here:
$poll_bar_length = ($poll_percent) ? $poll_percent - 50 : 0 ;
For example, to make it even shorter you need to increase the highlighted value:
$poll_bar_length = ($poll_percent) ? $poll_percent - 75 : 0 ;
$news_poll .= htmlspecialchars( base64_decode( $input_poll_array[ $i ] ) ) . "<br />";
$news_poll .= "<img src=\"images/votebar.png\" width=\"" . $poll_percent . "\" height=\"9\" alt=\"\" /><br />";
$news_poll .= $poll_percent . "% (" . $poll_votes . " votes) <br /><br />";
Then replace it with:
$poll_bar_length = ($poll_percent) ? $poll_percent - 50 : 0 ;
$news_poll .= htmlspecialchars( base64_decode( $input_poll_array[ $i ] ) ) . "<br />";
$news_poll .= "<img src=\"images/votebar.png\" width=\"" . $poll_bar_length . "\" height=\"9\" alt=\"\" /><br />";
$news_poll .= $poll_percent . "% (" . $poll_votes . " votes) <br /><br />";
You can adjust the bar length here:
$poll_bar_length = ($poll_percent) ? $poll_percent - 50 : 0 ;
For example, to make it even shorter you need to increase the highlighted value:
$poll_bar_length = ($poll_percent) ? $poll_percent - 75 : 0 ;
1 Re: How to make votebar.png shorter
error
OP
232
From: -
From: -
Yes. Sorry for missing info about that.
1 Re: How to make votebar.png shorter
Philipp Esselbach
From: -
Editor
0From: -
Where? In the side block?
I cant implement poll in my design because of length of votebar.png. Is it possible to make it shorter?