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 purchase

Development and Programming

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

I’ll try and push out the latest version of LG Polls in the next week. In the mean time PM me your email address and I’ll send you a beta copy.

       
Bluebloc's avatar
Bluebloc
111 posts
16 years ago
Bluebloc's avatar Bluebloc

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

       
Bluebloc's avatar
Bluebloc
111 posts
16 years ago
Bluebloc's avatar Bluebloc

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

       
jtnt's avatar
jtnt
137 posts
16 years ago
jtnt's avatar jtnt

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.

       
aircrash's avatar
aircrash
293 posts
16 years ago
aircrash's avatar aircrash

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.

       
sipkhoon's avatar
sipkhoon
1 posts
16 years ago
sipkhoon's avatar sipkhoon
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.

       
Argyll's avatar
Argyll
67 posts
16 years ago
Argyll's avatar Argyll

We cannot view statistics on one of our polls, I presume due to a high number of votes - over 40K. Is there any way this can be fixed?

       
Alli's avatar
Alli
158 posts
15 years ago
Alli's avatar Alli
I always use relationships to attach a poll to an entry. That should solve your problem. Cheers

Hi 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

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
15 years ago
Leevi Graham's avatar Leevi Graham
I always use relationships to attach a poll to an entry. That should solve your problem. Cheers
Hi 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?

       
Alli's avatar
Alli
158 posts
15 years ago
Alli's avatar Alli

Yes and I can choose the correct poll from the drop down.

       
Alli's avatar
Alli
158 posts
15 years ago
Alli's avatar Alli

Sorry to bump this but I am still having problems getting the Polls to attach and display to a related entry.

Leevi could you show me an example?

Thanks

Alli

       
lonelytraveller's avatar
lonelytraveller
38 posts
15 years ago
lonelytraveller's avatar lonelytraveller

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.

       
Chuck Norton's avatar
Chuck Norton
106 posts
15 years ago
Chuck Norton's avatar Chuck Norton
I think e-junkie looks pretty cool,
E-Junkie sound nice ….

Leevi, just curious here - can I ask what you ended up doing on your site? I bought something from you and liked the checkout process.

Did you go with e-junkie? Or simple commerce?

       
brittanyA's avatar
brittanyA
184 posts
15 years ago
brittanyA's avatar brittanyA

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

       
franxx's avatar
franxx
33 posts
15 years ago
franxx's avatar franxx

Hi Leevi,

will there be an EE2.0 version of lg_poll?

Kindly Frank

       
First 6 7 8 9

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.