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

[SOLVED]LG Polls, Link to "Add another answer" does not work

Development and Programming

nickfoti's avatar
nickfoti
7 posts
17 years ago
nickfoti's avatar nickfoti

I’ve been messing around with the LG Polls module and have come across one small problem. When editing a Poll entry, I cannot add another Answer field. Clicking the link just reloads the page.

I’m sure I’m just missing something stupid, as I haven’t been able to find a solution on my own.

I have setup everything per Leevi’s instructions, I created a new field group with two custom fields (one for detail, one for question), I created a new weblog called LG Polls and assigned it to use the new field group.

I have no problem displaying the poll, editing, or creating new polls. The issue is not being able to create additional answer fields (I also don’t understand how to re-order the fields, the “Drag me to reorder” text doesn’t seem to do anything either).

Thanks in advance for any help or suggestions, Nick

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

I can pretty uch guarantee that your javascript isn’t working. The primary reason for this is that your config.php has the wrong value for your sites system folder.

Check that value and let me know how you go.

If that’s not the issue check your page source to see where the lg polls javascript files are being requested.

Cheers

       
nickfoti's avatar
nickfoti
7 posts
about 17 years ago
nickfoti's avatar nickfoti

Thanks for the suggestion, I’ve checked my config.php file and the source file for the edit page of an LG Polls entry.

The config file:

$conf[‘system_folder’] = “system_hidden_from_you”; $conf[‘cp_url’] = “http://www.westcoastgreen.com/ee/system_hidden_from_you/index.php”

Excerpt from the source file (I think these are the javascript lines you were mentioning):

script type=’text/javascript’ charset=’utf-8’ src=’/system_hidden_from_you/modules/lg_polls/scripts/jquery-1.2.1.pack.js’/script

script type=’text/javascript’ charset=’utf-8’ src=’/system_hidden_from_you/modules/lg_polls/scripts/jquery.ui-1.0/jquery-ui.min.js’/script

script type=’text/javascript’ charset=’utf-8’ src=’/system_hidden_from_you/modules/lg_polls/scripts/lg_polls_publish.js’/script

link rel=’stylesheet’ type=’text/css’ media=’screen’ href=’/system_hidden_from_you/modules/lg_polls/styles/lg_polls_admin.css’ /

I tried changing the configuration of LG Polls to /ee/system_hidden_from_you/modules/lg_polls/scripts/jquery-1.2.1.pack.js and other variations but still have the same result.

Thanks in advance for any additional help, Nick

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

Are you getting any js errors when you load the publish page?

       
nickfoti's avatar
nickfoti
7 posts
about 17 years ago
nickfoti's avatar nickfoti

No, the page loads without errors. I’m at a loss, is there any other information I can provide for you?

Thanks very much for the help.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

Can you pm me a login so I can take a look?

       
nickfoti's avatar
nickfoti
7 posts
about 17 years ago
nickfoti's avatar nickfoti

Thanks to Leevi, my problem is solved. Here’s how:

EE is installed in a subfolder on the webserver.

…change your config.php to: $conf[’system_folder’] = “ee/system_hidden_from_you”;

I also had to change the module configuration javascript path to /ee/system_hidden_from_you … to get things to work.

I’ve never had better, quicker support.

Thanks again.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

No worries Nick,

Glas we got it sorted out 😊

Cheers

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

Not totally solved yet!

I just ran into this same issue…and the culprit was LG Twitter! I disabled LG Twitter and I was able to add a poll answer and rearrange, etc.

Using: LG Twitter 2.0.1 LG Polls 2.0.6

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

Ah… yes, I imagine there may be a conflict with the JS. I do have an upgrade of LG Polls in the works if you would like to test it?

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

I had both Polls and Twitter calling the google AJAX API, and I think that was messing things up. I re-enabled Twitter, and made the jQuery line blank in the Twitter extension. That solved it! I’m glad that the Twitter Extension allowed me to leave the jQuery line blank.

I’ve never used the polls module before, so I’m just getting used to it and I’m up to my eyeballs in sitemaps and wireframes - I’d love to try something new, but I’ll wait for an official release - unless there is a reason I shouldn’t resist!

       
Richard Frank's avatar
Richard Frank
200 posts
16 years ago
Richard Frank's avatar Richard Frank

Thanks for sharing this. I had exactly the same problem, and your solution worked.

       
NewSpring Church's avatar
NewSpring Church
3 posts
15 years ago
NewSpring Church's avatar NewSpring Church

I had the same problem in version 1.0.6 due to some white space in the script tags printed by ext.lg_polls_controller.php (lines 760 and 761). Removing the white space fixed the problem.

       
Joelle's avatar
Joelle
272 posts
15 years ago
Joelle's avatar Joelle

Thanks for pointing that out, Ryan! I had LG Twitter installed, just disabled. Once I removed it, the js works again. 😊

       
Joelle's avatar
Joelle
272 posts
15 years ago
Joelle's avatar Joelle

I take that back – it’s not working for me, either. I removed the whitespace that NewSpringChurch recommended – no change. I also completely uninstalled LG Twitter and I thought it had fixed it, but no… it’s still just reloading the page. The paths to my file seem to be fine. Everything else is working just fine on the site, js n’ all.

Any other ideas? 😊

Thanks! Joelle

       

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.