ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Web Poll in an EE page

June 23, 2007 7:16pm

Subscribe [1]
  • #1 / Jun 23, 2007 7:16pm

    Briggs

    111 posts

    Hello there,

    I am trying to create a simple, 3 radio button poll in an EE web page.

    I figured I would just use hidden fields for all the required fields in the EE Contact email form (and give them all values so it sends), and then present the 3 radio buttons normaly with html, thinking that would work, and have the results sent to my email address (as per a normal ee contact form)

    Unfortuantely it doesn’t. Is it possible to use radio buttons in the contact form, or ee web form?

    Thanks

  • #2 / Jun 23, 2007 8:30pm

    Sean C. Smith

    3818 posts

    Why not use the EE poll (3rd party) polling module? http://expressionengine.com/wiki/Modules/

  • #3 / Jun 24, 2007 2:17am

    Briggs

    111 posts

    Oh excellent!

    Hmm.. no real examples on how to use it, other then sticking {poll} in there! Am I just suppose to make a regular form now or somethign with my 3 radio buttons?

    Thanks!

  • #4 / Jun 24, 2007 6:31am

    Sean C. Smith

    3818 posts

    add the code to your site and then in the poll module admin page make your three answers to the question and the buttons will be automatically generated. YOu can see polls at the first 2 sites in my signature.

  • #5 / Jun 24, 2007 9:08pm

    Briggs

    111 posts

    The “Let’s Learn Korean” poll is the one I am trying to create.

    I unfortunately still dont get it.

    Do I hardcode a normal html form in my template, (minus the radio buttons of course), and then copy/paste the EEpoll code into it, where I want the radio buttons to go?

    <form name="" action="" method="">
    {exp:eepoll poll_id='1'}
    {poll}
    {/exp:eepoll}
    <input type="submit" value="vote" />
    </form>

    Also, if that is how its suppose to be done, do I ahve to put something special in the action and method attributes?

    This is somewhat embarassing, I figured out EE on my own with little help, weblogs and templates and all and I’m not a programmer, but I can’t figure out a poll module! HAha, embarassing!

  • #6 / Jun 24, 2007 9:37pm

    hothousegraphix

    851 posts

    It’s actually fairly simple.

    First, I assume you’ve downloaded the module and installed it.

    If not, you will have three items to upload. There is a “lang.eepoll.php” file which will go in your EE install: system > language > english directory. You also have a folder named “eepoll” which belongs in your system > modules directory. Lastly, there is an image with the name “pollimg.gif” which gets installed in your domains images folder. Please note, this is the images folder in your root directory, not the images folder for your EE install (I have no idea why it was done this way). Sorry if I’m reviewing stuff you’ve already figured out.

    Then, go into you EE CP under the “modules” tab and look for the eepoll listing. Select install. Once installed, you may have to exit the “modules” section and re-enter to see it active. You’ll notice it active by the very fact the the module title is also a link.

    Select this link to access the eepoll module controls. Here you will see four (I think) options, each of which is fairly self-explanatory. From here, I’d suggest messing around with the modules controls. The last option in the list provides some documentation but it also includes each of the polls classes to enable customization visually. 

    To include the poll feature in your pages simple add the following.

    {exp:eepoll poll_id='1'}
    {poll}
    {/exp:eepoll}

    Hope this is helpful.

  • #7 / Jun 25, 2007 12:49am

    Briggs

    111 posts

    Thanks to IE, when I originally tried that, I didnt see anything, because of horrible caching. What a waste of time this was!

    Anyways, thanks guys.

    One more question, how do I apply these CSS classes to the polls? I can’t find any examples, and since the only thing I seem to be able to work wtih is the {exp:eepoll} code i am unsure as to how to do this.

    Thanks again

  • #8 / Jun 25, 2007 1:27am

    Oxygen Smith

    120 posts

    I’m a few days away from tinkering with EEPoll, but I have read up on it. It doesn’t come with a stylesheet; what you are supposed to do is add styles to your stylesheet that will format the poll the way you want.

    A good way to do it might be to look at others’ websites who are using EEpoll. There’s discussion and examples over in this thread.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases