Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (Ruben), 52 guests, and 217 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
JPG
JPG
Posts: 62
Joined: February 2004
Show All Member Profiles 
Top Posters(30 Days)
Ruben 29
Gizmo 26
fuzzy47 24
isaac 24
Morgan 12
Basil 5
Latest Photos
Testing to drag photos
Comfortable Cats
Test
BSA photos
Chinese Buddhist temple.
Previous Thread
Next Thread
Print Thread
Poll bars miss-aligned [NOTABUG] #110706
02/13/02 10:31 PM
02/13/02 10:31 PM

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A


The poll bars in the bar graph are miss-aligned. Why is the winner going all the way to the end? Shouln't that only be if the result is 100%?

BRIAN HUGHES, WAYMAN TISDALE, DAVE KOZ, AND ALL THE PREETY-PINK JAZZ MEN ARE AS ULTIMATE AS ULTIMATE BULLETIN BOARD

BORING BROWN COUNTRY MUSIC STINKS


[This message was edited by Charles Capps on August 23, 2002 at 10:50 AM.]

Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Poll bars miss-aligned [NOTABUG] #110707
02/14/02 01:00 AM
02/14/02 01:00 AM

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A


No, it's X% compared to the others.

So if 66% is the biggest, 66% -> 100%, 33% -> 50%, 6% -> 10%, etc

Re: Poll bars miss-aligned [NOTABUG] #110708
02/14/02 02:41 PM
02/14/02 02:41 PM

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A


Correct. This is the designed behavior.

--
Charles Capps
Programmer, Infopop Corporation
Please do not contact me privately for support - post on the board or open a support ticket instead!

Re: Poll bars miss-aligned [NOTABUG] #110709
04/05/02 02:42 AM
04/05/02 02:42 AM

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A


I'm with you, PJ.

I want my bars to be representative of the number, so if the width of the cell is:

********** (100%)

Then results of 50%, 30%, 20% and 10% would look like:

*****
***
**
*


If you want to change the code to behave that way, it is in public_polls.pl in the "Templates" directory.

Find:
Code
 			print qq( style="border: 1px solid black; background-color: $this_color; width: 

$width_percentage%"> ); 
and replace it with:
Code
			print qq( style="border: 1px solid black; background-color: $this_color; width: 

$vote_percentage%"> );
That's it!


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Backgroud colors in posts
by fuzzy47. 04/16/18 08:27 PM
Avatar Upload Issue
by fuzzy47. 04/15/18 11:58 AM
Forum database - Table prefix question
by Morgan. 04/15/18 06:45 AM
Old Forum Archives
by TGCsanderson. 04/13/18 06:05 PM
Gallery
by fuzzy47. 04/12/18 09:48 AM
Forum Statistics
Forums36
Topics35,104
Posts191,183
Members12,068
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180410)