We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Polls ready for immediate commercial release!

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
I think Leevi may have gone missing… Does anyone know if LG Polls can show the same poll at two different locations using different CSS? I’m baffled where this div tag comes from:
<div class='lg-poll' id='lg-poll-22'>
I do not see anything like that in my template. Each poll is shown inside this div.
I think Leevi may have gone missing… Does anyone know if LG Polls can show the same poll at two different locations using different CSS? I’m baffled where this div tag comes from:
<div class='lg-poll' id='lg-poll-22'>
I do not see anything like that in my template. Each poll is shown inside this div.

LG Polls can show the same poll twice. They tag you are referring too is generated by the {exp:lg_polls:poll} tag. Obviously you’ll have duplicate ID’s which is bad for validation and Javascript. I’ve added a new param to a hot fix I am preparing now which will remove the wrapper div.

The new parameter must have the value set as no to remove the wrapper div:

add_wrapper_div="no"

I’ll let you know when the hotfix is ready.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
I’m having an issue with LG Polls no longer allowing more than two answers. For some reason it doesn’t work any longer. I haven’t added any new modules or extensions, so I don’t see a conflict. Running EE 1.6.7 Build: 20090515 Polls version 1.0.6

I’m guessing this is a JS issue. Have you upgraded your version of jquery or installed the CP jQuery extension?

Are you getting any javascript errors in Firebug?

You might also want to checkout this comment: http://ellislab.com/forums/viewthread/70157/P36/#517869. I’m adding this to the hotfix as well.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
Leevi, any idea I’d be getting these error messages + my config settings for LG Polls won’t ‘stick’? (I’ve checked the lg_cache permissions and they’re fine, I have the two default fields configured…):
Notice: Undefined index: Lg_polls_CP in /path/to/system/modules/lg_polls/mcp.lg_polls.php on line 184

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /path/to/system/modules/lg_polls/mcp.lg_polls.php on line 413

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /path/to/system/modules/lg_polls/mcp.lg_polls.php on line 413

[...repeated 12 times]
Any ideas?

Are both the Polls extensions installed as well as the module?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Hot fix is available now. No version number change, available from your “purchases” section.

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

That’s the ticket. Thanks man!

       
Todd D.'s avatar
Todd D.
460 posts
16 years ago
Todd D.'s avatar Todd D.

Does anyone know if the styling for the polls ‘Bar Chart Results’ as seen here come with the module? I have it installed and it seems to be working fine… but the styling is non-existent. Am I missing something or do I need to set the styling from scratch?

I’m using Leevis example code here to display results.

       
eyevariety's avatar
eyevariety
158 posts
16 years ago
eyevariety's avatar eyevariety

@Todd D. No you have to add the proper styles to your CSS file.

       
First 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.