Hi Leevi
We are thinking of purchasing LG Polls for use on a current job. One question I had before proceeding is can you add an image to a poll question in the normal way using the upload file button?
I know it s a simple question but it is something that is important for us on this job.
Thanks
Well, images seems to work fine when not using the AJAX templates in LG Polls.
Has anyone been able to use images in Poll Questions while utilising AJAX?
What’s happening is that the <img> tag is not being rendered and is broken.
The rendered code is:
The template code for my main template is
<html>
<head>{exp:lg_polls:head}</head>
<body>
{exp:weblog:entries
weblog="lg-polls"
show_future_entries="yes"
show_expired="yes"
}
{embed="embeds/poll-embed"
entry_id="{entry_id}"
poll_question="{poll_question}"
entry_date="{entry_date format="%D, %F %d, %Y - %g:%i:%s"}"
expiration_date="{expiration_date format="%D, %F %d, %Y - %g:%i:%s"}"
ajax_return="embeds/poll-ajax-embed"
return=""
}
{/exp:weblog:entries}
</body>
</html>
And the poll-embed is
The ajax-poll-embed is
{exp:weblog:entries
weblog="lg-polls"
entry_id="{post_entry_id}"
show_future_entries="yes"
show_expired="yes"
limit="1"
rdf="off"
disable="categories|category_fields|member_data|pagination|trackbacks"
}
{embed="embeds/poll-embed"
entry_id="{entry_id}"
poll_question="{poll_question}"
entry_date="{entry_date format="%D, %F %d, %Y - %g:%i:%s"}"
expiration_date="{expiration_date format="%D, %F %d, %Y - %g:%i:%s"}"
ajax_return="embeds/poll-ajax-embed"
}
{/exp:weblog:entries}
Any help greatly appreciated.
You can see the template in action here
I updated LG_Poll to the latest, 1.0.6, but still get the errors listed above by Tux Kapono and the answers not showing up upon Preview or final save/update. These are things that I think are supposed to be fixed in this version, yeah?
Do I need to do anything special to update the module besides copy all the new files in? It lists 1.0.6 as the version in the Module page, but just not sure why these things don’t seem to be fixed.
I just installed LG_Poll, and it broke my control panel. I uploaded all of the files as specified in the instructions, and clicked the link to install the module. When I click the install link, it just loads a blank page. If I go back, it shows the module is not installed, and when I try to load the extensions manager, I also get a blank page.
Edit: I’m running EE 1.6.7, and it is installed on a subdomain.
Seems to be a problem with the ext.lg_polls_controller.php file. If I remove that from the extensions manager, the page comes back.
In EEPolls, polls could be presented so that two buttons appeared, one for submitting a vote, the other for viewing the results before voting. A reader of our site initially would see the poll question, the possible answers and two buttons. If they chose not to vote, by clicking on “View” they could still see the results. LG Polls has the same functionality, but – if I’m understanding the documentation correctly – the only way to accomplish this is to display the poll question, the possible answers and the “Submit” button along with the poll answers repeated with their respective results. In other words, the reader sees the answers twice, which is redundant. Would it possible to include an “either-or” function in LG Polls so that someone who has not voted has the choice of either voting or viewing the current results, but not both at the same time?
When rendering the poll you display the question and answers in one div (div 1) and the existing poll results in another hidden div (div 2). Now add a link inside div 1 which when clicked hides div 1 and shows div 2.
Hi Leevi, If my polls is set at “After vote is cast”, the
{results_answers}
tag can’t display the result after the expired date.
I put
{results_answers}
inside
{if expired}
tag, but I can’t get the results (only manage to show total votes).
What is the right way to show result for both “After vote is cast” and “After vote has expired”?
Thank you.
I always use relationships to attach a poll to an entry. That should solve your problem. CheersHi Leevi Can you show me the code you use to do attach a poll to an entry. I seem to be having a few problems and wonder is it the embed components that is causing the problems. Thanks
Does your parent entry have a relationship custom field?
Hello everyone, I’ve just installed LG_Polls, and everything seemed to work.
As Levi said in a previous post in this thread, adding custom fields to my poll weblog was as easy as with any other weblog. However I’ve been trying to display a comment form too, but I had no luck. The code snippet is correct, if I paste it in any other weblog I get a fully functioning comment form. I checked the weblog settings, and comments are allowed, so apparently there’s no reason why comments shouldn’t show on my polls page.
Does anyone have a clue about what could be causing this error? I’m sure I must be doing something wrong…
Solved: I made some changes to my template and now I have comments on my page. Still don’t know what caused the problem, but it must have been some missing tag.
Hey Levi,
I posted about a strange quirk I’m having in this thread. Wanted to repost here in case this is a better way to reach you.
First, thanks for a great module! It’s been a popular part of our site, and well worth the money.
One problem: When I display an index of all my polls, the “Loading…” animation appears no matter which poll you’re voting in, but it always appears within the box of the first poll. This is a difficult problem to describe, so check it out here: http://uvamagazine.org/polls/
Take the second or third poll, and once you vote, notice how the “loading” animation appears on the FIRST poll.
Is there any way I can fix this?
Thank you!
Brittany
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.