Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (Alento), 62 guests, and 193 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Outdoorking
Outdoorking
Sydney, Australia
Posts: 322
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 18
isaac 16
Ruben 15
Morgan 6
M4TT 2
driv 2
Alento 1
Latest Photos
Test
Testing to drag photos
Comfortable Cats
Test
BSA photos
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

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

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

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

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
Upgrade from a really really old version
by Alento. 10/18/18 06:16 PM
Subscription Feature
by M4TT. 10/16/18 09:34 PM
PHP 7.2 compatibility
by Pak. 10/16/18 06:00 PM
UBB.threads 7.7.0 - Progress Reports
by isaac. 10/13/18 09:34 AM
Can't Reply to Global Announcements
by M4TT. 10/06/18 08:29 PM
Forum Statistics
Forums36
Topics35,151
Posts191,514
Members12,109
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2