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
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
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
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.
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!
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.