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