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 displaying multiple statuses on main Polls page

Development and Programming

Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

Wondering if anyone else has sen this and if it might be indicative of a larger problem that I may not have discovered yet. I’m getting multiple statuses listed for my polls - some of which have no votes. This has been a pretty basic install so far (mostly testing out LG Polls) and I’ve changed a couple polls from Open to Closed. See the attached pic.

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

Here’s your answer. It’s a hot fix for now but it will keep you out of trouble.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

Ah, cool, thanks.

One other thing: LG Polls isn’t checking for Cp_jquery, meaning that jQuery can load more then once in the header, breaking it. I’ve had to change the show_full_control_panel_end function in ext.lg_polls_controller.php to add that check, which fixes things.

Approximately line 755 (edited way down here, the complete lines are the ones I added):

$r = '';
            
if (isset($EXT->version_numbers['Cp_jquery']) === FALSE && empty($SESS->cache['scripts']['jquery']) === TRUE)
{

 [...] LG Polls jQuery and jQuery UI calls here [...]

$SESS->cache['scripts']['jquery'] = TRUE;
}

 [...] LG Polls lg_polls_publish.js here [...]
 [...] LG Polls lg_polls_admin.css here [...]

  $out = str_replace( [...]
       

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.