Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
6 registered members (Ruben, Gizmo, JAISP, isaac, Outdoorking, jbergmann), 39 guests, and 391 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Posts: 756
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 53
Gizmo 42
Geoff 32
Morgan 30
ECNet 17
Ruben 12
Mark S 11
JAISP 10
Bert 8
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Poll bars miss-aligned [NOTABUG] #110706
02/13/02 09:31 PM
02/13/02 09: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 12:00 AM
02/14/02 12: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 01:41 PM
02/14/02 01: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 01:42 AM
04/05/02 01: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
Upgrading from 7.6.0 to 7.6.1
by Baldeagle. 01/20/18 01:07 PM
Odd behavior with marking forums as read
by Baldeagle. 01/20/18 12:51 PM
Subscription Pending Auto Update to Active
by Geoff. 01/18/18 09:04 AM
7.6.1.1 Custom Tag Editor (YouTube)
by Mark S. 01/15/18 02:58 PM
Enable Spider Friendly Urls Issues
by Geoff. 01/15/18 11:32 AM
Forum Statistics
Forums36
Topics35,049
Posts190,782
Members12,051
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1.1