Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Ajax Poll panel bug in Mozilla

Asked Modified Viewed 2,587 times
D
DarukasLT
D
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
asked
Junior Member

Hello,

Im using ajax poll voting panel in my website, everything is just fine, except that in Mozilla browser instead of poll column it shows text.

Any suggestions? Thank you
DarukasLT attached the following file:
poll.jpg [No information available / 70 Downloads]
0 replies

8 posts

K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

DarukasLT,
Is this the addon that you're seeking assistance towards?
https://php-fusion.co.uk/infusions/ad...ddon_id=26

Perhaps you question should be logged within that thread. Confirm if this is the addon, I can take a look at a resolution, possibly someone else will as well.
0 replies
D
DarukasLT
D
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
answered
Junior Member

yes, this one, thank you
0 replies
K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

Ok so I'm just guessing here, since I can't see what CSS has been applied to your website.

But in this situation, logically I'd imagine that you do not have a defined pollbar.gif image on your theme folder. Try to update your styles.css file that is within your active theme.

styles.css and find .poll
add these attributes:

Quote

border: 1px solid #bbb !important;
background-color: #000 !important;

Change the color as desired. If you are having a hard time and want to test if this is even the problem, try switching to Stylo theme and view in FireFox. If that doesn't work, then provide me your URL where the poll is located.
0 replies
D
DarukasLT
D
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
answered
Junior Member

Hi, I have tried your solution but it doesn't work. When I change theme to Stylo everything works fine, currently I'm using Aer theme.

My website URL is: http://www.kaunopriesgaisrine.lt/
and the poll is on the right
0 replies
K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

Ok no problem. Here is the working solution, which is similar to my original suggestion.

Open styles.css and replace .poll:
.poll {
   height: 1em;
   border: 1px solid #ccc;
   background-color: #eee;
   color: transparent;
}

The reason why this issue exists, is due to the fact that the theme was created many years ago. Back then, the original CSS syntax may have been correct. But the Mozilla FireFox browser evolves over time, like any other software would. Let me know if you have any other issues.
0 replies
D
DarukasLT
D
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you very much, it works now.

But still there is another problem with the poll columns (bars). In Mozilla they are the same with the text length, but in Stylo theme it works perfect, probably problem is again with the Aer theme.

Merged on Feb 05 2015 at 09:01:08:
Thank you very much, it works now.

But still there is another problem with the poll columns (bars). In Mozilla they are the same with the text length, but in Stylo theme it works perfect, probably problem is again with the Aer theme.
Edited by DarukasLT on 05-02-2015 10:01,
DarukasLT attached the following file:
poll_1.jpg [No information available / 72 Downloads]
0 replies
K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

Ok, not trying to give you the run-around here..

After I probed into this further, it's really not a theme issue. It's more of a panel issue. When you check the theme Aer theme.php file, you'll see this line of code:
set_image("pollbar", THEME."images/navbg.jpg");

Which shows that it's not being declared as the typical filename of "pollbar.gif".

Now, having that said and reviewing the ajax_poll_panel.php file, in the showresult() function:
echo "<div><img src='".THEME."images/pollbar.gif' alt='".$poll_option[$i]."' style='height:12px;width:".$opt_votes."px;' class='poll' /></div>\n"

pollbar.gif has been hard-coded as the filename..

To overcome this tyrant of a problem
Revert the original styles.css back to it's original integrity.
Open ajax_poll_panel.php.
Replace this:
echo "<div><img src='".THEME."images/pollbar.gif' alt='".$poll_option[$i]."' style='height:12px;width:".$opt_votes."px;' class='poll' /></div>\n";

With this:
echo "<div><img src='".get_image('pollbar')."' alt='".$poll_option[$i]."' style='height:12px;width:".$opt_votes."px;' class='poll' /></div>\n";

And you should then be all set. Sorry I didn't catch that originally. Let me know if it works out.
0 replies
D
DarukasLT
D
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
answered
Junior Member

thanks it works,

one more question: Is it possible to turn off ip/cookies checking? I wanna let my visitors to vote as much as they wish
Edited by DarukasLT on 09-03-2015 07:53,
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

K
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
D
D
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet