If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Johncr
Forum Index » Profile for Johncr » Messages posted by Johncr
Author Message
Auron wrote:A link to the page would be useful along with the code you used and
the options for people to choose from on the poll and maybe how
many people have voted for each one either in nums or as a % figure.


Hi Auron.

Sorry, I was too busy the past week.
The problem is that I'm running the Poll at my local machine for a while. I hope I'll be able to upload the poll into a server in a week or so. However, it is very easy to reproduce the bug, if you have the time.

Using Admin, create a new 3 options poll.
Make them:
Red = 15 -> 1.5%
Orange = 490 -> 49.2%
Green = 490 -> 49.2%

It doesn't matter if you use nums or percent.

The resulting 1.5% red-pie-sector shows green instead of red.

Now, increase red by 1 so that it is now 1.6%.

The resulting 1.6% red-pie-sector is now red which is right.
I have 20 polls.

What shall I do to display two lists: 1 to 10 along with results in one page and 11 to 20 into another.

Any idea other than using static links?
http://www.cartapacio.com/pie.jpg

Please note the two smaller sectors.
I forgot to mention that I wish to manage the pic size at the source and not shrinking while rendering.
Anonymous wrote:edit the template


Which one? I have messed everything up and down and still the pic is 202x202 px
Yeah, I wanna make it smaller, say 150x150. It is always 202x202 px.
Thanks Auron,

Pretty easy: poll_list.html

First in my 'wish list': a technical manual or a FAQ
Nice site,

I almost forgot how bad the world is nowadays. Love the cat and the 96FM joke.

Well done.
I don't wish the creation date displayed in the list. How? Where?
Solved!

I placed all includes on the top.
I wish to place the poll list (as shown at Demo 3) along with the pie graphic template (Demo 6).

I setup a two column table so that the right column displays the poll graphic and the left column displays the poll list.

I coded the suggested code at Demo 6 and works fine. However as soon as place the code for the list I get a Fatal error. Class plist Cannot inherit from undefined class poll comment in class_plist.php

The code I inted to use for the list is:



Any help?
Thanks Auron. I already solved the problem.
For a reason I don't know, a /poll/textfile/ was defined as URL to poll directory (Admin's General Settings). I deleted the textfile/ and now it works as expected.
Same problem here. There is no pie displayed.

Using this URL:

http://www.mysite.com/poll/myfile.shtml?action=results&poll_ident=10&tpl_set=graphic

I see graphics and no pie picture. And using:

http://www.mysite.com/poll/myfile.shtml?action=results&poll_ident=10&tpl_set=simple

Displays normal. The demo_6.php shows no picture too.
 
Forum Index » Profile for Johncr » Messages posted by Johncr
Go to:   
Based on the open source JForum