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 
No bars shown on Poll  XML
Forum Index » Support Forum
Author Message
Anonymous



Installed Advanced Poll without problems, Whenever a poll is voted on blank.gif is *always* put into the results page. I dont get any bars shwoing up at all.

Any ideas??

Thanx
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Make sure you uploaded all the images and specified the location of the images folder in the Admin Panel under General Settings I had the same problem modify it there to what it should be. Eg. poll/images

Its not exactly difficult if you had looked a little harder.

Auron
[Email] [WWW]
Anonymous



I've got the same issue. I have everything working good except the bar for the images.

I took the suggestions of the image directory in the admin section general settings.

Actual Dir:
www.(myserver).com/poll/image

I have tried:

/poll/image
poll/image
/poll/image/
poll/image/

Also:

http://www.(myserver).com/poll/image

Same result with both.

I even tried using absolute server path:

/www/a/(myname)/htdocs/poll/image

nothing still

I checked the SRC of the output HTML and it shows:

<img src="/poll/image/blank.gif" width="50" height="10"> 75.0%</font></td>

blank.gif

Of course all the gif files are there. /poll/image

anything else that could be the cause? any other way to notate the dir?

When i change it to a bogus DIR:

/blah/blah

All my Admin Icons get broken Image links.

I refresh like crazy too.....

Hmmmm...
Anonymous



It took me a while to spot it, but on each pol you need to select *which colour* bar you will use. Sounds mad, but if you don't then it shows nothing!
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Its not mad at all. If you don't specify a colour then how will it know which image to use for the bars and if it doesn't know it WILL show nothing.

Auron
[Email] [WWW]
Anonymous



thank you gentlemen.
c_house
Beginner

Joined: 28/10/2005 01:23:23
Messages: 6
Offline

how do you select a colour guys i cant seem to figure that out
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

I believe you set the colours when making the poll.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
wicked
Newbie

Joined: 20/03/2007 15:53:43
Messages: 4
Offline

i did select colors for my bars, and i checked the image directory location in the admin section under general settings (and verified by typing the image location in a browser)....but my bars still aren't showing up.

i see in the template for result_loop:
img src="$pollvars[base_gif]/$poll_color.gif"
so i think resolving these variables will help determine why the bars aren't showing up, but I'm not sure how to resolve these variables.

anyone know?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Look at the HTML of the results to see what it is currently pointing at to give you an idea of what to change.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
wicked
Newbie

Joined: 20/03/2007 15:53:43
Messages: 4
Offline

thanks, carbonize. the html source says width and height are 0.

the template says: width="$img_width" height="$pollvars[img_height]"

the images themselves are 2x10 pixels, so they shouldn't be 0x0

do you know why the template variables for width and height are resolving to 0s? if i hardcode the template to say width="2" height="10", then the images show up, but they aren't multiplied by the number of votes, and all bars show one color image even if they got no votes.
wicked
Newbie

Joined: 20/03/2007 15:53:43
Messages: 4
Offline

found out a little more...

include/class_poll.php is doing this:

$img_width = (int) ($this->options[$poll_id]['votes'][$i]*$this->pollvars['img_length']/$maxvote);

and when i echo $this->pollvars['img_length'], it gives me zeroes for each option, no matter how many votes they have...so $img_width is multiplying zero times the number of votes. and of course, 0 x anything = 0...hence no bar.

not sure why $this->pollvars['img_length'] is returning 0 and not the actual length of 2?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

Send Auron a message as he knows more about AP than I do.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Has the max bar length been set in the options?

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
SteveF2
Newbie

Joined: 05/04/2007 20:02:36
Messages: 2
Location: Darwen, Lancs, UK
Offline

I'm trying to debug this problem with my setup. The html for one line of my poll contains the following line

<td height="22"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="1">Getting into the straps</font></td>
<td nowrap height="22"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="1"><img src="/poll/image/darkgreen.gif" width="28" height="10"> 6</font></td>

However the bar shows in white.

The image darkgreen.gif exists in the /poll/image directory. The poll directory is in the root and these are set in the General Settings.

I'm using v2.03. IE7 installed.

Any ideas anyone?

Regards Steve
[WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum