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

Creating polls on the fly with EEPoll

Development and Programming

Andrew Hedges's avatar
Andrew Hedges
12 posts
17 years ago
Andrew Hedges's avatar Andrew Hedges

Is it possible, using EEPoll 1.7, to allow front-end site users to create new polls when they are creating a new weblog entry (and, have it be associated with the entry)? If so, could someone run through how to make this happen? Thanks!

-Andrew

       
ms's avatar
ms
274 posts
17 years ago
ms's avatar ms

I don’t think so - at least not without hacking. EE Poll isn’t storing the polls as weblog entries, so you would need to write your own entry form to submit poll data into the database.

Have you seen Leevis LG Polls? This one stores Polls in a separate weblog as regular entries and should be able to do what you want.

       
Andrew Hedges's avatar
Andrew Hedges
12 posts
17 years ago
Andrew Hedges's avatar Andrew Hedges

I’ve started developing my own module that fits the client’s needs. This is all going well, except that I am a bit unsure if there is a way to call methods on my class when the user creates a new weblog entry. I see the weblog_standalone_insert_entry extension hook, but that only seems to allow you to alter post data. I need to call a class method whenever a weblog entry is created.

Any ideas?

Edit: The submit_new_entry_end hook appears to do what I need, but it looks like it only applies to standard entries, not weblog entries. Is that right or will it work for weblog entries, too?

       
Andrew Hedges's avatar
Andrew Hedges
12 posts
17 years ago
Andrew Hedges's avatar Andrew Hedges

For whoever is interested, I ended up building a module/extension combo (called Vote for Pedro and Hooked on Pedro, respectively) for the client. I’m thinking of open sourcing it, putting it on Google Code. The advantage of VFP is that it was purpose built to allow front-end users to create custom polls associated with weblog entries when they’re created. If that’s something you’d be interested in, let me know and I’ll put it in the public domain.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi Andrew,

Welcome to the forums. Just took a look at the PHP widget that you have on your site. Looks like that may come in really handy.

I think I can speak for everyone when I say that if you are going to release something for ExpressionEngine then the answer would have to be a big resounding

Yes

we would be interested in seeing what you have made 😉 It’s always nice to learn from other programmers and see how they go about things so this would be very much appreciated.

Best wishes,

Mark

       
kjdekoning's avatar
kjdekoning
19 posts
17 years ago
kjdekoning's avatar kjdekoning

Also a big YES!!

       
ms's avatar
ms
274 posts
17 years ago
ms's avatar ms

YES, please.

       
gridonic's avatar
gridonic
231 posts
17 years ago
gridonic's avatar gridonic

+1 on open source!

       
kjdekoning's avatar
kjdekoning
19 posts
17 years ago
kjdekoning's avatar kjdekoning

Any news on this?

       

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.