WolfieZero/simply-poll — pull request #11 by Seriouslysean (2012-05-16 15:11:09+00:00)
Title: It's me again!

Hey man -- I know I'm sending you another pull request, but I've been working on modding your plugin for a project I'm working on so I thought you'd be interested in it.

I added a bunch of new stuff:
* Added some jquery to the admin section (backed up by some php) to allow any number of questions/answers. Buttons are added to the right of the answer fields that allow you to add/remove them.

* Added some PHP logic to allow you to update the schema of the database. I also added a new column to the table called 'answersother', this preps the plugin for the ability to allow an 'other' field on a poll.

* Added the 'other' poll setting. When this is enabled (on a per poll basis) any user can add their own answer that gets sanitized and added to the poll as an answer (with a vote appended when voting). This functionality also recognizes when a duplicate answer is added and will instead not add it and append a vote to the existing answer instead. All new elements added have styles added to them following your general naming convention.

* Fixed a bug that was causing all votes to be lost when a user updated a poll. When updating a poll you can now have more than 10 answers and can add/remove fields when updating instead of just when you're adding the poll.

I hope you like the additions. Let me know if you have any questions and I'll be more than happy to answer them as soon as I can.

Seriously,
Sean