TinyPortal

Development => Support => Topic started by: agent47 on December 07, 2010, 09:42:20 AM

Title: SSI Poll Function issue
Post by: agent47 on December 07, 2010, 09:42:20 AM
http://www.superheroalliance.net
Powered by SMF 2.0 RC3
TinyPortal 1.0 beta 5.2
English
Noize
Google Chrome 8.0

Here's the issue I'm having; I seem to create a poll and then I get it to display on the homepage using the SSI function block and it displays perfectly but then once the vote has been CASTED, it displays nothing (check the two images below to understand it more clearly). Please help me out here guys. Why exactly is this occuring :|


POLL BEFORE VOTE HAS BEEN CASTED
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fdl.dropbox.com%2Fu%2F915297%2FPoll_b4.cast.jpg&hash=1ab36054067a390f9d029cb6169e0e64d2f58370)

POLL AFTER VOTE HAS BEEN CASTED
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fdl.dropbox.com%2Fu%2F915297%2Fpoll_after.cast.jpg&hash=94d2c54f8f5652a1d50c2c5805452eabd82fda53)


Do you guys think it's the width of my left panel thats causing this to happen. The width of my left panel is set to 188px?
Title: Re: SSI Poll Function issue
Post by: Ianedres on December 07, 2010, 04:50:02 PM
Move the block to a center box and you can quickly see if it is a width problem. But I would think 'something' would have appeared.
Title: Re: SSI Poll Function issue
Post by: agent47 on December 08, 2010, 12:02:33 AM
You're right. I moved the block to the center and the same thing occured. I could really use some help here. :)
Title: Re: SSI Poll Function issue
Post by: lurkalot on December 08, 2010, 12:32:37 AM
 agent47

Just tried this on two of my test sites, and it does the same as your's.   ???

Give us some time to get to the bottom of it please.  ;)
Title: Re: SSI Poll Function issue
Post by: IchBin on December 08, 2010, 02:51:55 AM
If I remember right, this was something to do with the way SMF's query works for the Poll function. Thurnok posted a fix IIRC a LONG time ago. I can't find it...
Title: Re: SSI Poll Function issue
Post by: lurkalot on December 08, 2010, 08:18:39 AM
Brad, was it this one? http://www.tinyportal.net/index.php?topic=9623.0

Tried the method on the first post, second page of that thread,

Adding this to a php block ssi_showPoll(06.0);  and changing the number to reflect the topic the poll is posted on.

Works nicely, and shows result on home page.  ;)
Title: Re: SSI Poll Function issue
Post by: agent47 on December 08, 2010, 11:58:07 AM
Hey that actually worked. Thanks a lot bud.
And I'm glad I was able to point out a bug :) I feel so special already.
Title: Re: SSI Poll Function issue
Post by: lurkalot on December 08, 2010, 06:28:39 PM
Quote from: agent47 on December 08, 2010, 11:58:07 AM
Hey that actually worked. Thanks a lot bud.

Glad it worked.  ;)

Was going to mark this solved, but,

What should also happen is, when you submit your vote from the front page block the page should redirect to the forum poll.  Not sure if was doing that for you, looking at your screen grabs. 

It was redirecting for me though.  ;)

I believe that was also the issue in the thread I pointed you to above.
Title: Re: SSI Poll Function issue
Post by: agent47 on December 08, 2010, 08:27:31 PM
Quote from: lurkalot on December 08, 2010, 06:28:39 PM
Quote from: agent47 on December 08, 2010, 11:58:07 AM
Hey that actually worked. Thanks a lot bud.
What should also happen is, when you submit your vote from the front page block the page should redirect to the forum poll.  Not sure if was doing that for you, looking at your screen grabs.

You may mark this as "solved" because it's re-directing me to the poll's thread as well. So all is good. :)
You guys are da best!