This page is for Democracy 1.2 and has been preserved for archival reasons. Democracy 2.x has been released and fixes security problems, allows in-post polling, and a much better interface.
And Installation is a piece of cake. Just upload it to your server, activate it, and place a template tag in your theme where you want the poll to appear.
NOTICE: Democracy 2.0 is in development. It is being rebuilt from scratch to be more flexible. Make your feature suggestions on my democracy 2.0 post.
- Uses AJAX for sending and loading the results, but is fully accessible in non-js environments
- Complete admin panel
- When someone votes, they receive a cookie with what poll they voted in and what their vote was. It also logs their IP, so the same person can’t vote twice even if they delete the cookie
- Allows users to see current results without voting. Also, detects if there are no votes and announces it…
- After voting, the choice you made is highlighted.
- Automatic database table installation.
- Displays winners of each poll in the admin panel.
- Delete old polls in the admin panel.
- Edit existing polls.
- Graphs the results of the poll beautifully and without images.
- Select an active poll.
- jal_democracy() takes poll ID arguments. Use < ?php jal_democracy(10); ?> to display poll 10. However, I recommend you use the ‘activate’ feature instead.
- Allow your users to add their own choices.
- Uses the date format you set in the Options panel for the Date Added column.
- Support for rich HTML. Make your polling options be images!
Please report any errors you encounter with it in the comments below. If you like it, saying thank you is all I ask.
Update July 11
New in Democracy Alpha 4 (plugin diff):
- Added a few options to the head of the plugin file.
- Added CSS file and
id / classhooks that allow for easy manipulation of the design. At the top of the plugin file, you can set the HTML that the question will be wrappd in.
- New graphing feature makes everything look much nicer when viewing results
- Fixed HTML validity bug.
- Cleaned up the checkIP() function for better performance.
- Cleaned up some
if...elsestatements to use ternary operators
- Added deactivation feature, so if you want no poll to display, you may. Also, the default poll is no longer active.
- Archiving function to view past polls.
Update August 2: Version RC 1 is here. I believe this one to be stable and ready for consumption. Here are some notes:
- Fixed glaring bug that made IP checking completely not work.
- Added a field for ‘added by user’, for answers added by users. This helps differentiate any ‘silly’ answers from your ‘official’ answers.
- Bugfixes and code cleanups everywhere
- Support for Blix theme. The Blix CSS is poorly written to make all inputs and labels be for table-like forms.
- Got rid of a couple of IE Bugs that gave console errors.
- Fixed or improved the flash between voting and receiving new poll data.
- More FAQs and readme goodness.
Update August 15: Releasing RC 2. Bugfix release
- HTML validity fixed
- Rich (HTML) poll answers and questions re-allowed
- i18n improvements.
- Cookies now operate on local level instead of domain level. Useful if you have more than one blog in a domain.
- More code beautification
If you’re updating from a version before RC 1, you’ll need to deactivate the plugin and reactivate it again.
Update August 27: Releasing 1.1. Feature release
- Adds archiving functionality. Use the
jal_democracy_archives()function. Documented in the readme.
- Changed the graphs to use percentages instead of pixels.
- Changeset 3215
- Shaved a query for total votes
Update September 26: Releasing 1.2 Feature release
- Shaved quite a few queries in admin panel and elsewhere.
- Now uses correct charset
- Code restructuring and optimization
- No maximum for the number of answers. Cleaner editing and adding screens
- Fixed CSS comments
- Corrected link to my blog from the plugin page
htmlspecialchars()on unencoded links
- Added 2 new FAQs to the readme
German users, you can grab a localized version of Democracy at http://www.bueltge.de/wp-plugin-ajax-umfrage-plugin/32/ . I would like to offer a localizable .pot file so that other languages can easily be done, but I have yet to find a tool for Mac that can do this. If you know of any please let me know!