Democracy AJAX Poll

By Andrew | June 29th, 2005 | 482 Comments | Code | Internet

Extremely Important:

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.

I’m announcing my second ever WordPress plugin, Democracy. Democracy adds polling functionality to your WordPress blog. It grew out of frustration with the only other WordPress polling option, WP-poll. It didn’t have valid markup, it was clunky, and it required one heck of an installation process. So I decided to create my own, using WP-poll as a reference. This plugin uses AJAX for quick sending and loading of poll data, although it doesn’t depend on javascript to function, like my other plugin. It is fully functional in non-javascript environments, meaning it will work in ALL browsers. The AJAX part is tested to work in Safari, Opera, Firefox, and IE6/Win. The poll is in my sidebar, so go ahead and see for yourself.

It also has a full-featured admin panel, which allows one to manage their polls. You can activate, edit, delete, and add new polls from the admin panel. It is also harder to ballot-stuff than WP-poll. It uses cookies as well as IP logging to prevent users from working spamming the ballot box.

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.

Download: Version 1.2. It is released under the CC GPL 2.0. If you are upgrading, read the upgrade instructions in readme.txt

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.

ESPAÑOL: Download version 1.0 RC 2. Many thanks to Javier Albert for providing a translation
Features:

  • 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.
  • AJAX is compatible with IE 6, Safari, Firefox, and Opera. All the other browsers, and those with javascript turned off, are supported as well.
  • 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

Just updated to Alpha3. It’s lot more robust, and there are plenty of new features. Check out the democracy.php Diff and the js.php Diff. The javascript file no longer conflicts with my other plugin, WordSpew. It also allows you to allow users to add their own answers if they don’t like yours.

New in Democracy Alpha 4 (plugin diff):

  • Added a few options to the head of the plugin file.
  • Added CSS file and id / class hooks 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...else statements 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: Releasing Beta 1, very small update. Allows users to set if they want to order the results by votes or by id. Gets rid of big bug that creates errors in wordpress if javascript is off/not running. It should work with and without javascript now. Also tweaked the CSS for Explorer.

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 header().
  • 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!

 

There've been 329 whole comments

5:51 pm on 6/29/2005 1. Andrew

Hi,
I’ll check out the plugin… looks great on your site. I found out about it from the WordPress support forum (http://wordpress.org/support/topic/37853#post-213586), but the link you provided comes up with a 404 error. You may wish to fix! :)

11:42 pm on 6/29/2005 2. Karl Bedingfield

What a great and easy to use plug-in. Thank you!

Is there a way to display the current poll in the sidebar and older polls (all polls) on another page?

Just wondered .

Thanks again
Karl

11:03 am on 6/30/2005 3. SuperDave

I assume by “regular readers” you mean people that “regularly read” things on your site. Well it’s not coincidence that the shoutbox post thing has the highest popularity of anything that has ever been put on this site, so I think it’s safe to say that it would be a bad idea to tell these “regular readers” to stay the fuck away from this post, because this post seems like the sort of thing your “regular readers” would “read.”

I suppose you could also mean by “regular readers” people that are usually reading the blog, but once again those people are the plug-inners.

Besides, those people that are not interested in the Plug-ins would defiantly realize while reading the above post, that it was not something which applies to them, and then would move on to Kevin’s post about sex.

Therefore, I make a motion to have that italicized line stricken from the record due to its contradictory nature.

[ed. note: fuck you. Motion carried. ]

8:50 am on 7/3/2005 4. Mario

Andrew,

Thanks for the plug-in. I already implemented it in my blog without any problems.

4:54 pm on 7/5/2005 5. Chad

A question and a suggestion. Why does the total # of votes not match the total of the two options?
I have 10 votes for A (37%), 14 for B (52%) but the total votes is 27? Where did the other ones go?

And also, can you have the jal_democracy() function take an optional argument, being the # of a poll to display? such as jal_democracy(11) will display poll 11? You would still have a primary poll designated for when the argument isn’t set.

Then, I was planning on writing a complimentary plugin, so you can insert polls into the posts themselves. One post could be for poll #7, and another one for poll #8.

Chad

10:46 am on 7/7/2005 6. Sam

Well, this plugin was a clever idea since the last poll plugin you could vote as many times as you wanted. I was kind of a fan of that feature, cuz than whatever you wanted to win, you could make win.

But I guess it’s not a bad idea to have a poll plugin that you can only vote once on.

Nice job.

6:25 pm on 7/10/2005 7. XeroCool

ANyone having problems between Firefox and IE? I can only see it in IE and not firefox. even after I voted.

7:03 am on 7/11/2005 8. dOn

Thanks to your Democracy plugin, my friends are now coming up with the silliest polls ever! It makes things much more interesting!

Well done!

5:04 pm on 7/11/2005 9. Andrew

Updated to Alpha3. Some of the above comments have been addressed and problems should be fixed. Enjoy!

1:13 am on 7/12/2005 10. kalico

Thanks for a great plugin!! Only probs were related to having had WP-polls on my site before…. I recommend fully uninstalling WP-polls (just follow the directions, backward :-)), including the tables in the database, prior to installing Democracy!

The only thing I don’t see is how to make a page that shows past (inactive) polls, and their results. Is there a way that I’ve missed?

Thanks again. :)

1:27 am on 7/12/2005 11. Andrew

kalico, that is definitely good advice. Some people have come to me wondering why the admin panel wasn’t working, only to realize that it was the remnant WP-polls admin panel. One simple way to get rid of its remnants is upgrade to the latest version of Wordpress (1.5.2). If you haven’t done it already, it’s a perfect reason to upgrade.

I agree, I’d like a polls archive. I guess it’ll be another day of intensive coding tomorrow. *sigh* … I’ve got some small fixes for Alpha3 already written down. Be on the look out tomorrow!

4:17 pm on 7/13/2005 12. Jason

Replying to your post at my site here so you see it.

The error I got on install was about an Insert failing as I think it had more values then there were columns in the table, sorry but I didn’t grab the error as I was just leaving work when I did it and it doesn’t look like it made the logs.

Then when I added the first poll assumedly because the demo poll wasn’t added properly I ended up with a bunch of extra answers (good, bad etc) added into those that I selected.

4:43 pm on 7/13/2005 13. Jason

Also you might want to look at HTML escaping questions and answers those ampersands in my answers broke my XHTML, it would be a pain to always type &amp; in such a scenario.

Also at least the View Results link broke XHTML as well as it uses get parameters with an ampersand, you should switch that any other links with get parameters to use &amp; as well to avoid similar problems.

7:21 pm on 7/13/2005 14. Andrew

Yes, I’ve fixed all internal validation errors for the next version. It would be a pain to account for user-inputted XHTML invalidness, but maybe I should. Are there functions in WordPress that do that?

Thanks for the heads up.

9:02 pm on 7/13/2005 15. Jason

Just use the bult-in php function htmlspecialchars and that should be enough.

7:53 am on 7/14/2005 16. Kevin

Hello, I’m trying out this poll for FirstPersonShow.net at http://FirstPersonShow.net/beta1

Seems like after voting the choice I made is highlighted, but the number is not incremented. (I’ve voted a number of times from different browsers and PCs but still only seeing one as total votes.)

I’ve take the references to GamerZ poll out of the header.php and leftcolumn.php and deactivated the plugin, but do I need to do something else to get this working?

cheers,
Kevin
http://FirstPersonShow.net
“celebrating the uncelebrated”
(Interview Podcast)

12:43 pm on 7/14/2005 17. Andrew

Kevin, that’s a feature of Democracy. It doesn’t allow people to vote multiple times because it logs IP addresses. If you’ve voted from one IP, you can’t vote from it again no matter how many browsers or computers you use.

12:58 pm on 7/14/2005 18. Jason

Another heads up, in FF 1.0.X setting innerHTML in XHTML pages (with MIME type application/xhtml+xml) fails and just sets it to blank as per:

http://www.quirksmode.org/bugreports/archives/2004/11/innerhtml_in_xh.html

This will be fixed in 1.1 and was working for me from home where I’m running a nightly build but on my work laptop with FireFox 1.0 the div was just getting blanked out.

3:13 pm on 7/14/2005 19. Andrew

I was waiting for someone to point that out :)

I’ve just spent the day getting the data to load with proper XHTML pages. This is how far I got:

I get the response from AJAX and convert it to XML, then appendChild() it into the democracy box. This gives me all the text nodes and all the structure, but none of the HTML behavior. That means: links don’t work. CSS doesn’t work. Etc. If I apply some css like:

#democracy li {
display: list-item;
}

Then the list items will look like list items. I’d basically have to rewrite all the behavior of all the elements involved.

Alternatively, I could parse the XML and use DOM createElement() to make the HTML parse happily. But that would create a lot of bonus code that probably isn’t worth it for supporting such a fringe case of FF 1.0.x with XHTML headers.

So, I think I’ll just suck that up and wait for 1.1 to bring innerHTML support. If you want to work on the code I had and see if you can improve upon it, I’ll be happy to send it to you. It just doesn’t seem worth my time.

9:34 pm on 7/16/2005 20. Christopher Camacho

I’ve implemented this today, and it’s great. I’ve got a feature request, however. How about making it so that it can display a random poll?

3:33 am on 7/18/2005 21. Rich

Hi. Installed and setup, but no admin link in the manage section. Using 1.5.1.3 of WP, with lots of other plugins….any idea where admin is? Thanks…

Rich

9:57 am on 7/18/2005 22. dbt

Rich, are you sure you’re looking under manage and not options? also, make sure it’s enabled. works fine for me in 1.5.1.3

11:48 am on 7/18/2005 23. Rich

DBT,

Yes, looking in the right place. Do get an error in javascript though….a problem in wp-admin/edit.php.

Two in fact…both say “expecting ‘}’” I haven’t editing the edit.php, so I assume its having an issue loading something up in the admin menu bar. As per instructions, I installed the entire Democracy file folder in the plugins folder. No files go directly in the plugins folder, only the plugins/democracy folder, right?

Thanks, Rich

8:33 pm on 7/18/2005 24. Andrew

Rich, that’s strange. You seem to have gotten the installation right. You could try upgrading to Alpha4 that was released a couple days ago, and if the problem is still there, that is indeed weird. Perhaps if you’d allow it you could let me poke around your admin screen and see if I can’t find the problem. Alright, let me know what happens. Thanks

2:40 pm on 7/19/2005 25. Jessica

Very cool plugin! Much easier to install than the WP poll plugin I tried before.
Unfortunately I cannot use it for my purpose, for I need a poll ystem that allows more than one active poll. :,-( For example if user should rate the layout of the blog and other things that will not expire. Is there a chance that this feature can be added in a release later? You would make me very happy. :-)

3:00 pm on 7/19/2005 26. Andrew

Jessica, I’m not sure I understand. So when a user votes, it takes them to the next poll? Just displays random polls until they’ve taken them all?

I’ll work on that for the next version… ;)

8:23 am on 7/20/2005 27. Matt

Excellent, excellent plugin! Much more elegant than the previous polling plugin. One issue though: the progress bars look wierd in IE. No problem in FF, but in IE they’re huge–like 30 pixels tall, with a little blue strip on the top and bottom of each bar and plain white in between. I’m going to look into it (probably just IE being crappy with CSS), but I wanted to make you aware.

11:38 am on 7/20/2005 28. Jessica

Hi Andrew!
No, that’s not what I meant. ;)

It would just be great if you can have more than one active poll. The user can vote in all polls he want to: none, all, just one etc. ;)

For example I would create a poll where you can vote which WP theme one prefers. This is a poll which can be active as long as the blog exists, but of course I want to add other polls later without disabling the first poll.

I hope I made it clear, sorry for my English and thanks for reading. ;)

11:44 am on 7/20/2005 29. Andrew

I’m still not quite sure I got it :s .. You want to be able to create new polls on the backend, but still be displaying the old one? That should be simple, just create a new poll and then reactivate the old one.

Or, do you want to see a kind of “results” page where it shows the standings of old polls that have been made before?

12:25 pm on 7/20/2005 30. Matt

OK well it’s not exactly a real fix, but by adding “background-color: #06c” to the .democracy-choice class in democracy.css I at least filled in all the white space in IE. The bars are still 25px or so tall, but at least they look somewhat presentable now. http://3xmk.com

11:18 pm on 7/21/2005 31. Max Ischenko

Hi Andrew,

I installed your plugin and it works great…except then a problem with i18n. My site is russian-language (UTF8) and so are the polls.

I can setup questions in russians OK, and they are displayed just fine but when user answers, the results displayed as gibberish instead of russian symbols. The same with “add your answer” feature.

I suspect the problem lies in DHTML (i’m using Firefox) but I’m no expert in Js to fix it.

If you could let at it I’d be grateful. Thanks.

1:30 am on 7/22/2005 32. grandMasterKrust

Hi Andrew !

Wow - great plugin ! Its worked like a charm on my personal blog, i am currently setting up another and i am getting a strange conflict with a template !

the layout is all mangled and the options are next to each other in a horizontal structure , but if you vote it reverts back to how the poll should look !

10:01 pm on 7/25/2005 33. Dave

When attempting to put this into a post using David Chait’s QuickPHP I’m getting all sorts of extra

Anyone have any idea how to get around this?

10:02 pm on 7/25/2005 34. Dave

I guess the code tag isn’t working above, but I’m seeing extra breaks put in between the radio button and the answer.

10:11 pm on 7/25/2005 35. Andrew

Dave, you could try pastebinning it, post it in my shoutbox or something. Not really sure what the problem is here..

10:56 pm on 7/25/2005 36. Dave

sent you email with the details

2:45 pm on 7/28/2005 37. Kenzo

Nice plugin :)
Just a question: on IE the progress bars is very big… I tried to change it in css file but no result :(. Can you help me to correct that plz?
http://dreamgirls.globbo.org/

2:54 am on 7/31/2005 38. Dedge

To fix the tall bars in IE, add the following to the .democracy-choice entry in democracy.css:

font-size:0.3px;

9:10 am on 7/31/2005 39. Carlos Maldonado

thanks a lot for such a wonderful piece of software, might be helpful to put somewhere a quick start to know that the two directories deep .zip, needs to be unzipped and the internal “democracy” directory put into wp-content/plugins

other than that, cool!

regards

12:11 pm on 7/31/2005 40. Jackie

Hello! I have installed your democracy plugin and it works great! I am having trouble with the styles though, seems it is not accessing the css file or something, and everything is coming out a bit messy looking.

Trying to remove the bullets, position the choices to the left, style the heading to match my site headings, and remove the extra space at the bottom.

The only way I could figure out to get the white box around the whole thing was a table in my sidebar with the code snip inside of it.

Please let me know what I am doing wrong!!

12:23 pm on 7/31/2005 41. Andrew

Jackie:

It isn’t opening the file because a vital part thing for your theme is missing. You need (in the tag) in your header.php file. That code is a hook for plugins that need to add things like css files and javascript files.

Dedge, I’ll twiddle with that, thanks!

Carlos, I think my plugins could use a few more FAQs in general. Thanks.

1:59 pm on 7/31/2005 42. Jackie

My theme calls for the header.php file, I guess I’m not quite sure what you are referring to… could you be more specific on what I am missing and where/which file it is missing from?

Thank you

6:12 pm on 7/31/2005 43. Jackie

Nevermind, I got some other help with it :) Thank you!

11:56 am on 8/1/2005 44. Natai

Whenever someone votes AJAX refreshes but I get a 404 error.

1:22 pm on 8/1/2005 45. Andrew

Natai, are you using the latest version, Beta 1?

I need to see the error myself. Could you reactivate Democracy for a bit so that I can diagnose your problem?

3:22 pm on 8/1/2005 46. CaveCulture

I’ve got a slight validation problem. I’ve installed the plugin and pasted the required code into my side bar. When it comes to validating my page I get a fair few problems.

Now I’ve had validation problems when installing new plugins before but all it took to fix them was to insert/correct a few tags.

I don’t want to paste the list of problems because it will clutter everything up, but it looks like the problem lies within the code. I’m just wondering wether or not you know about it.

Apart from validation problems it looks and works great. I use your shoutbox aswell. Good work on it btw :)

3:23 pm on 8/1/2005 47. PRpoet

Andrew, first of all Thx for doing all the hard work and coming up with this cool poll plugin.

I’m having the same issue that grandMasterKrust is having:

the layout is all mangled and the options are next to each other in a horizontal structure , but if you vote it reverts back to how the poll should look !
====

I’ve tried tweaking the php code but nothing seems to work. Help! I really want to use your poll.

Thx, PRpoet

P.S. You can see what I mean at http://prpoet.com

3:42 pm on 8/1/2005 48. Andrew

CaveCulture, I’m not aware of any validity problems. From your message, there is no way for me to help you and fix the problems. I need a link to the site having problems with, what kind of error it was, and all that.

PRpoet, I can’t help you if I can’t see what’s happening. It looks like you’ve disabled the poll. Could you re-enable it so I can have a look at the problem?

A note to future support questions:

PLEASE post your URL, do not deactivate the plugin, and I’ll get to it ASAP. It’s incredibly hard to help you when all you tell me is “There is an error. What should I do?”

Thanks.

4:04 pm on 8/1/2005 49. PRpoet

Hi Andrew, here is the link to see the poll:
http://prpoet.com/?page_id=6

I’m using the ‘Blix’ theme and coding the poll code into the sidebar.php template.

After answering the poll, it looks ok. Before that, there seems to be some problems with table elements.

Thx for your help - PRpoet

5:43 pm on 8/1/2005 50. Andrew

CaveCulture, I found you by googling ‘CaveCulture’ … google is my friend!

That XHTML problem is indeed a bug, one that I have fixed in my next version that’ll be released soon.

PRpoet, ah. I played around with the css and found that it was a problem with Blix’s css, not mine. But in any case, you can just add this code and it should be all fixed. I’ll add it to the next version as well.

#democracy label {
float: none;
display: inline;
}

#democracy ul {
padding: 0;
}

10:43 pm on 8/1/2005 51. PRpoet

Thx Andrew, how do I make the radio boxes shorter so they fit within the sidebar? Also, you’ll see an underlined ’s’ under the last link on the main template, how do I get rid of this? This character only appears after installing the poll.

http://prpoet.com/?page_id=6

Thx again, PRPoet

11:35 pm on 8/1/2005 52. Andrew

strange I didn’t catch that.

#democracy input { width: auto; }

12:45 am on 8/2/2005 53. PRpoet

Andrew, Thx - U Da Man =D

Looks and works great now, I’ve put it on my landing page:

http://prpoet.com

Cheers, PRpoet

12:46 am on 8/2/2005 54. PRpoet

Andrew, Thx - U Da Man =D

Looks and works great now, I’ve put it on my landing page:

prpoet.com

Cheers, PRpoet

2:41 am on 8/2/2005 55. Vlad

Hm. I don’t understand, but if browser don’t save cookie, I can vote any times as I want.

But, at your site, I vote, then I clean cookie, and try to vote again, and I see:

“Warning: in_array(): Wrong datatype for second argument in /home/.mafalda/jalenack/blog.jalenack.com/wp-content/plugins/democracy/democracy.php on line 376

Warning: Cannot modify header information - headers already sent by (output started at /home/.mafalda/jalenack/blog.jalenack.com/wp-content/plugins/democracy/democracy.php:376) in /home/.mafalda/jalenack/blog.jalenack.com/wp-content/plugins/democracy/democracy.php on line 654″

Comments? How turn on IP storing? it’s does not working :(

2:52 am on 8/2/2005 56. Andrew

** New version of Democracy **

Vlad,

I’ve just been working on this plugin a lot and I’ve found this error. Thanks for the update. You can download the latest version that correctly stores IP addresses now.

The new version addresses a lot of bugs and adds a couple new features. Have fun!

6:37 am on 8/2/2005 57. Vlad

You don’t leave link to RC1 ;-)
Link in top of page (Version 1.0 RC1 rote to {…}downloads/download.php?id=6 and I get Beta 1.
;-)

I’ll be wait ;-)

7:05 am on 8/2/2005 58. CaveCulture

i got rc-1 but it doesn’t validate. I turn it on and it doesn’t validate unfortunately. Did you address this bug in this version?

7:38 am on 8/2/2005 59. PRpoet

Andrew, you forgot to put this Blix fix into the Aug 2 democracy.css release:

#democracy input { width: auto; }

PRpoet

11:31 am on 8/2/2005 60. Andrew

Vlad, that is indeed Version 1.0 RC 1. I know in the past people have had problems with their browser caching the file.

Alternative download:
http://www.redalt.com/External/plugins.php?p=democracy

And download the in-development version. That is actually RC 1, and it is stable.

1:13 am on 8/4/2005 61. Michael

Quick little bug:

It took me awhile to figure out why I was getting a parse error on line 454 of democracy.php.

Line 343 uses a short open tag, and our university’s servers have short open tags set to false.

12:23 am on 8/5/2005 62. Lu

Hello! I loved this plug-in!! I’ve installed before “wp-poll”, but I couldn’t customize it, so I’ve looked for another plugin for polls and found yours! It’s too good AND too easy, congrats!

I’d like to erase the number of votes, leaving just the percents. Is it possible? Where can I do this?

Thanks!

12:32 am on 8/6/2005 63. Kenzo

Hi, Thank you Andrew for the new update :)
I have no problem with alpha4 version, however when I update to RC1 (overwrite democracy.php, js.php, admin.js), I receive this: http://img211.imageshack.us/img211/8889/democracyerror2qe.png

12:35 am on 8/6/2005 64. Kenzo

Forgot to say thanks to Dedge and PRpoet for the nice css fix ^^

1:31 am on 8/6/2005 65. Andrew

Kenzo, READ THE UPGRADE INSTRUCTIONS. I thought it was clear enough by putting that in bold right next to the download link. That oughta fix it :)

Michael, sorry! Careless error that should be fixed in the next version

Lu, sure. Just delete line 586 of democracy.php:

$output .= " (".$r->votes.")";

3:30 am on 8/6/2005 66. Luigi

Hi from Italy :D Eheheh Great Plugin this one! I need to use it on my blog, so I translated it in Italian. This localized version is available on my website, I only wanted to let you know :)

Uhhh, nice blog :P

10:12 pm on 8/6/2005 67. Kenzo

Thank you, It work now :)

I have now just a small problem with the xhtml validator on this line in democracy.php:

jal_no_js=true&poll_id=id; ?>”>View Results

Here is the error code (6 times):
Line 461, column 78: cannot generate system identifier for general entity “PHPSESSID”
…href=”/?jal_no_js=true&poll_id=2&PHPSESSID=441ef9267e7fd7e9f352d8f7e16ed5

3:47 am on 8/8/2005 68. Jackie

When I placed the whole folder into the plugins directory it didn’t show up in the plugin manager. I moved the democracy.php file outside the folder and it appeared and I was able to activate it. Now it works fine except I am unable to add another question. Any ideas?

9:08 pm on 8/8/2005 69. Lu

Done!
With your hint, I removed also the “Total Votes”.
Thanks a lot! :)

3:12 am on 8/13/2005 70. RyanHawke

Hey there:

I think I ran across a bug related to the not voting more than once feature.

On my site, I have 2 blogs using the same database (appended the prefix for one).

Anyway, I installed on both my blogs and it is AWESOME. Easy installation.

However, when I went to install on the second blog, it already shows me as having voted, since I did a test vote on the first blog. Could it be both blogs are sharing the same table? If so, do I need to append a prefix somewhere in one so it uses its own table?

Here are the blogs:
http://unfilterednewsnetwork.com/North_South_Blog/
http://unfilterednewsnetwork.com/Gay_Agenda_Blog/

3:13 am on 8/13/2005 71. RyanHawke

Oh yeah, I forgot to mention on the second blog, it does not allow me to vote but shows as no votes. I also checked the database and the tables were created with the correct prefixes.

3:27 am on 8/13/2005 72. RyanHawke

OK I went ahead and completed two completely different polls since I was using the “starter poll” on both. Still same issue. North_South_Blog shows no answers and inability to vote for me, since I voted on the other one first.

This time, I created 2 new polls but voted on NS first. Then, the GA poll was unavailable.

Any other info you need, feel free to email me.

2:54 am on 8/15/2005 73. Andrew

RyanHawke, the behavior of the site has to do with the way cookies were being set. I had them being set at the root, so a vote was logged for the entire domain, instead of just the WP directory. Regardless, I believe I’ve fixed this in RC 2. Let me know if I haven’t

Err…announcing RC 2! (main changeset and small fix)

I think I’ve fixed some i18n issues, as well as re-adding HTML support.

Kenzo, I’ve added htmlspecialchars() to that bit, so the validity problem should go away. But it does seem a bit odd. You had javascript off and you’re using PHP sessions?

Jackie’s problem has been fixed elsewhere. Just don’t use that confounded plugin manager and you’ll be fine.

11:13 pm on 8/15/2005 74. Matt

Hi Andrew,

I’d like to use Democracy to run a poll, but I want it not in the sidebar, but on a post or a page. How would I go about doing that? (in draft form, at least, both posts and pages just echo “”)

Also, the poll I want to run requires users to judge among a series of images; ideally, each poll option would display an image and some text under the image. Would including an image tag in the poll options work for that?

thanks for your help, and for this plugin.

best,

Matt
Matt

11:15 pm on 8/15/2005 75. Matt

the code in my comment disapperaed…the text that is echoed is simply the php jal_democracy() line …

3:49 am on 8/17/2005 76. marco garcia

hello, i’ve installed your excellent Poll “encuesta” plug in on a site i’m building and was really satisfied with the quality of the script. It installed like a breeze and the admin panel is perfect. I have a quick question. A tiny little problem i can’t get figured out. I’m using the Connection theme and have the Category separated by the question so that the box is not connected. could you or somebody take a quick peek. i’ve played with css and tried somethings in the code but can’t seem to find the solution. i would also like to have the question set flush to the right, how or where do i edit this and what should i enter?

3:49 am on 8/17/2005 77. ryanhawke

Ahh thanks. Yes, this is fixed.

1:01 pm on 8/18/2005 78. Andrew

Marco, try this:

<h2>Encuestas</h2>

<ul>
 <li><?php jal_democracy(); ?></li>
</ul>

Connections is a little weird about sidebar stuff, but that should work.

1:59 pm on 8/21/2005 79. gutielua

Wow! DEMOCARY ROCKS!!!

I have problems whit wp-poll, on Firefox works but not on IE.

Democracy works for IE & Firefox!!

Regards from Monterrey, MEXICO!

7:24 am on 8/22/2005 80. gutielua.com

What I need to con center the VOTE bottom on sidebar?

I will like do to same for TGA question…

Tnx

12:03 pm on 8/23/2005 81. Andrew

Democracy is now available in Spanish! Download link above
Gutielua, try adding this style rule to your css file:

#democracy p { text-align: center; }

1:42 am on 8/24/2005 82. Ash Haque

Awesome plugin! Using it right now and it looks really good. Maybe in a future release there could be a way to generate all the polls into somewhat of an archive like wp-polls.

12:19 pm on 8/26/2005 83. Ross

Thanks for your excellent plugin, I implemented it on my site without any issues! You rock!

8:25 pm on 8/26/2005 84. Finhawke

I really enjoy your plug-in … especially the flexability and single voting feature. It would be great if the polls could be archived to a single category that could be recalled by visitors to view all past polls and their results. This was a feature in the wp-polls plug-in that I would like to see in Democracy. Any chance this will happen?

Thanks again for an excellent plug-in.

John

1:14 am on 8/27/2005 85. Kelley Chambers

I would give it to a solider for private mail to his family, friends, significant other… along with the other 37 I’ve donated in the last 3 months…. I love you Subscriptions for Soliders…. we gave tonight. Long live the US!

2:06 am on 8/27/2005 86. Andrew

Update: Version 1.1 now has archiving functionality!

Well SOOO many people have asked for this archiving feature, so I’ve gone ahead and done it :)

Tell me what you think of http://blog.jalenack.com/poll-archives/ . Does it need anything more? I’ll release soon.

12:46 pm on 8/29/2005 87. Finhawke

Right on the money. Outstanding!
Thanks, Andrew.

5:58 pm on 8/29/2005 88. Patrick

Just saying thank you as requested! This plugin is up to the excellent standard you set with the shout box.
No problems, no issues. It worked fine first time.
I love it.

6:39 am on 8/30/2005 89. James Moore

Thanks! Just what I needed, and installation was pretty easy!

9:31 am on 8/30/2005 90. Titanas

Translating the strings from english to greek results in a mess when ajax is reloading to display the results. ???? appear where greek words should be. this is an encoding issue i guess. any ideas?

4:30 am on 8/31/2005 91. Rich

So… how do I upgrade from RC 2? The heading of the readme.txt Upgrade section makes me think it doesn’t apply to me: “All versions previous to Democracy RC 1 MUST follow these simple upgrade instructions:”

Just wondering if upgrading from RC 2 means I should follow those same directions or different ones.

1:58 pm on 9/3/2005 92. Alan Köninger

Hi, Thanks for the plugin. Any chance you could allow for multiple polls being active as part of the archive section?

Currently you can only have one poll active, and this is a real disadvantage for someone who wants to keep their polls running concurrently over time and have users voting on multiple polls.

If you did allow for multiple polls being active, then there would be an issue about which poll would display on the non archive section ie. <?php jal_democracy(); ?> section - that could be solved by either adding another button called ‘hightlight’ on the poll admin page, or by displaying the first in the order (order by ID).

Thanks, Alan

3:01 am on 9/5/2005 93. little_china

hey andrew! nice plugin and thank you for making it a lot easier to install than the other polls plugin :D

i got a question tho, can i edit the number of polls? i really want this coz i’ve already got a poll question and some answered, but i still didn’t have the poll plugin at that time.

click my site to see my blog. hoping to hear from you soon! ;) cheers!

4:26 pm on 9/8/2005 94. Matt

I have the Bad Behavior plug-in installed on my website. Democracy seems to work fine with Firefox, but when I tried to vote with IE 5, Bad Behavior blocks the computer as a spammer with the error message:

Required header ‘Accept’ missing

10:16 pm on 9/8/2005 95. Patrick

Andrew, I was just wondering if there is a way to allow people be able to vote every 24 hours?

11:55 pm on 9/8/2005 96. Andrew

OO looks like I’ve got some catching up to do.

Titanas, strange. Encoding issue most likely. I’ve been having a lot of trouble with that stuff.

Alan, I’m working on something like that. It’s pretty hard getting multiple instances of polls on the same page. You can call a specific poll by using its ID like: jal_democracy(2); …

James: glad you like it :)

Little_china, I have no idea what you;re talking about o_o

Matt, very very weird. Try contacting the Bad Behavior author. Are you using the latest version of BB?

Patrick, no. No plans for that. Sorry

1:56 am on 9/10/2005 97. little_china

sorry…i mean, can i edit the number of votes?

thanks!

2:18 am on 9/10/2005 98. Andrew

Oh right. Well not really. If you *really* wanted to you could use something like PHPmyAdmin to change the `votes` column of the appropriate answer. Look in the DemocracyA database.

8:56 pm on 9/11/2005 99. little_china

oh alright, thanks man!

10:30 am on 9/13/2005 100. Jani Tarvainen

I’m absolutely loving this plugin. Great work!

10:08 am on 9/15/2005 101. Heiner Neuling

Dear Andrew,

I’ve tried to make your plugin run on my site, placing the code

on a PAGE (use exec-php plugin for running code inside Pages).

All I can see than is just a kind of code from democracy.php.

Could you please visit the PAGE called POLLS on my above site, to see what could be wrond.

I’m running your Wordspew too, and it works great.

thnx in advance

heiner

8:31 pm on 9/15/2005 102. tony

hi!i like your plugin, can you tell me how to change the color and width of the button and button text? thankyou!

10:56 am on 9/16/2005 103. ZEO

I’ve got a questions,
I dunno why but the spammer kept hitting the js.php.
it’s on my access logs.
and i can confirm that.

any idea?

10:04 pm on 9/18/2005 104. Seth

I was hoping to use this plugin to let visitors vote for specific Wordpress posts by using template tags to fill in the info for a poll (post title & URL) within a Wordpress Loop. That way, I could put the poll into the Wordpress Loop and have a “vote for this post” button for every post, with the rest of the poll inputs determined from template tags and hidden. It looks like this is almost possible, but there is a minimum of 2 answers for a poll and that there can be only one instance of a poll on a page (does this mean putting the poll in the Loop is not allowed?). Is there a way to get around these limitations? In other words, is there a way to have a write-own-answer-only poll in the Loop? Thanks.

6:21 pm on 9/19/2005 105. David

Remove the line “// BLIX fixies” from the css
or comment it: /* BLIX fixies */

It makes the css declaration under it invalid. In this case the input:

#democracy input { width: auto; }

Great plug btw :)

4:02 pm on 9/20/2005 106. Andrew

Whooppps. I suck. I’ve committed a fix. All that php and javascript mixed in the same package got me mixed up. Doh!

Seth, I don’t think Democracy is the right choice for what you want. I think there are some post-rating plugins around. I’ve never used one though.

Zeo, weird. I can’t think of any reason for them to do that. Let me know if you find out a good reason. thanks

Tony, you can edit the democracy.css file. It has all the color and styling information. If you don’t know CSS, good luck. I just don’t have enough time to help with individual design problems. The WP support forums are usually helpful with CSS issues.

Heiner, it looks alright. The only problem is with the blix CSS. Hopefully this fixes it. Just delete that comment in democracy.css, and it should work.

7:48 pm on 9/23/2005 107. charmaine

hi…i can’t figure this out, please help…

the php jal_democracy(); code was placed in between the ul code from my sidebar. The problem is that the ul code will place an image at the bottom (please check my blog). therefore the last “poll answer” has the ul-footer image.

Is there somewhere in the democracy file where I can remove the ul codes so that it wont have the footer image?

i hope you understand where im coming from…

7:01 am on 9/25/2005 108. David

HEllo All,

I have an issue with UTF-8 chareacters in democracy polls since I upgarded from RC-1 to 1.1.

Accented characters are replaced by strange characters but only in the result page!

To see the pbm in action:
http://82.153.160.104/blog/

Any idea what’s wrong?

Thanks

5:40 pm on 9/25/2005 109. Andrew

I just spent a little while debugging and I think I’ve found the solution. The text was not being sent with the right headers. I’ll be releasing a new version shortly (hopefully), but in the meantime you can try this:

if (!$javascript)
echo “\n\n\t”;
else
header(’Content-Type: text/html; charset=’.get_option(’blog_charset’));
?>

In your democracy.php file. Around line 520 (I think), there is a function called jal_SeeResults(). You’ll be replacing this, and all the whitespace above it between ?> and ‘; } ?>

If you don’t think you can do this, have patience and I’ll be releasing a new version soon

4:57 pm on 9/26/2005 110. Andrew

Just updated to 1.2. Check it out.

4:41 am on 9/27/2005 111. David

Installed 1.2 - It’s working now!
Many thanks.

1:45 pm on 9/28/2005 112. Jeremy Abramson

First off, let me say thanks for such a great pluging! But like a couple of others, I’d like to have polls associated with posts, not in the sidebar. Is there a quick/easy way of doing this? (I’d even settle for a not quick or easy way).

Thanks again!

6:46 pm on 9/29/2005 113. Andrew

Well, not really. Check the 1.2 readme!

6:58 pm on 9/29/2005 114. Jeff

Didn’t want the poll on my main site (busy traffic) so I put it on a secondary page, at the bottom. Same issue:

http://celticsblog.net/cheapseats/

wp-content/plugins/democracy/democracy.php?jal_nojs=true

The page cannot be found

Help? Thanks very much.

9:01 pm on 9/29/2005 115. Andrew

Jeff, it appears that the files are all in the wrong place.

First, deactivate democracy. Then delete all the democracy files you uploaded. Then upload the *whole* folder. So it should be /wp-content/plugins/democracy/ .. That folder should contain admin.js, democracy.php, democracy.css, js.php.

Then activate again.

6:24 am on 9/30/2005 116. Jeff

makes sense, I’ll try that when I have time

thanks very much for the quick response

10:58 am on 10/2/2005 117. Andy

Thanks for adding those graphical bars. I just tried to install the plug-in. All 4 files are in the correct directory. I can configure the plug-in and I’ve added my first poll. How do I get the poll to show up in the sidebar? Sorry for the silly question. It doesn’t automatically show up.

Also your site is exhibiting some wierd problems in IE6 I’ve attached a screenshot at http://www.rawgreed.com/jalnack.png

Thanks!

1:25 pm on 10/2/2005 118. Jim

Thanks for this plugin. I just upgraded to 1.2 - very easy!

3:05 pm on 10/2/2005 119. Andy

Apologies, I got it. I forgot to add the template tag.

7:09 pm on 10/6/2005 120. Nik

First off, awesome plugin. Thanks for adding the achiving option - very nice. Anyway, I saw on your archive that the bars are quite long, and thus easier to read. I’ve been searching through democracy.php, and I can’t see how to change their size. So sorry if I’m repeating someone - I skimmed over the comments, and I couldn’t see the same question being asked.

2:45 am on 10/12/2005 121. FastPhive

I just installed Democracy 1.2 in WP 1.5.2 and everything seemed to work fine until i tried to rock the vote:
Fatal error: Cannot redeclare jal_edit_poll() in /x/x/x/x/x/htdocs/wp/wp-content/plugins/democracy/democracy.php on line 52

you can give ut a try at: http://www.phlatline.com/wp

Can anyone help me fix this prob? Please, this is a really nice plugin and i would like to use it.

5:55 pm on 10/12/2005 122. ZEO

Just a request, is it possible to have the view result then vote(back) without reloading the entire page?

8:59 pm on 10/12/2005 123. RichF

Hi Andrew…great plugin. I’m having a problem with the CSS display of 1.2 stomping on itself. The title of the poll is being over written with CSS, so that title and first choice are overlaid. I’m still learning css, and took a look at the democracy.css, and don’t think that’s the problem. Can you recommend a fix? Site is http://www.cwcnews.net . THANKS!

9:12 pm on 10/12/2005 124. RichF

Never Mind…find the culprit in the css file of BlueByeYou…thanks for a great tool…Rich

11:50 am on 10/15/2005 125. jude

Hi,

just installed Democracy 1.2 to WP 1.5.2_fi. Looks like it works OK, but it doesn’t - only the first vote counts and the db writes only one answer and IP number - and the number is the one of servers IP. Does anyone have a solution for this problem?

TIA

Jude

2:23 pm on 10/15/2005 126. Andrew

jude, that’s weird. Your server must be configured abnormally, using REMOTE_ADDR as the server address?

You could just comment out the jal_checkIP() calls or make it return; before doing anything. You’d lose the IP checking function, but at least it would work!

Zeo, nope sorry. Too much code for too little benefit.

FastPhive, that’s sooo strange. I really don’t know where to start!

Nik, I think 1.16 uses css percents. Is that the version you’ve got? Just make the css use percents instead of absolute pixels (you might have to change it in the democracy.php part as well).

Sorry to everyone who has written in for support lately, I’ve been really bogged down!

1:32 pm on 10/16/2005 127. John Havlik

Awesome plug-in, it is exactly what I was looking for when I started Googleing for Word Press plug-ins for polling. I’t appears to be working perfectly in FF 1.5 and IE 6. One thing though, if a person was to veiw it in FF and vote then open the page up in IE they can vote again, I assume this works nomatter which browser you switch to, just though you may want to know this.

2:32 pm on 10/16/2005 128. Andrew

John, that’s actually not the case. It appears that one can vote again, but when they submit it isn’t actually counted. That’s because their IP is logged

3:37 pm on 10/23/2005 129. Jorge Andres

Hi. Very nice plug in. Thanks! I have only one question. What lines do i need to comment in order to make Democracy to do NOT log ip adresses?

Thanks for the help. And good luck with your upcoming projects!

1:33 pm on 10/26/2005 130. Richard Hendrix

Andrew,

Is there any way to hard code the path/location in democracy? My site uses domain pointers. I have http://www.blankmindblog.com pointed to a folder in my http://www.frhendrix.com site. Democracy looks in /blog1/blog1/wp-content/plugins/democracy for democracy.php which does not exist.

thanks

11:18 am on 10/27/2005 131. Andrew

Thanks for the excellent plugin! Far easier to use and manage than my previous solution :-)

5:35 am on 10/28/2005 132. leo

I seem to have the same problem as FastPhive getting the same error message when sending a vote.

Fatal error: Cannot redeclare jal_edit_poll() in /x/x/x/x/x/htdocs/wp/wp-content/plugins/democracy/democracy.php on line 52

I updated wp and deactivated all other plugins but the problem remains.

Admin lokks fine
tables are built
cookies are set
no vote-counting

Too bad because I saw it working great on other sites. :-(

11:49 am on 11/8/2005 133. Fredrik

Trying to implement your plugin, but I do not see it in the admin-panel. I see some questions about it above, but no solution. Is there any?

I use Bunnys Technorati Tags and WP-Shortstats as plugins. Could it be that, tried to deactivate them but nothing happened, do I have to uninstall?

I use WP 1.5.2

Would really like to get it to work!

Thx

UPDATE: Fixed it! Egghead behind the keyboard

2:20 pm on 11/8/2005 134. SWR

Is it going to be back available?

Says democrocy.zip doesn’t exist any more. :(

5:28 pm on 11/8/2005 135. Andrew

Sorry, It’s back.

1:08 pm on 11/9/2005 136. Aaron

1. Is there a way to have the candidates automatically sorted alphabetically or by the current vote count?

2. Is there a way to have multiple polls running concurrently? An example of this might be a concurrent Democrat_Primary and a Republican_Primary poll where each is independent and people can vote and/or add candidates.

8:19 am on 11/12/2005 137. High Octane

After I activate the poll, I get this error.
“Warning: Invalid argument supplied for foreach() in /home/wagnert/public_html/blog/wp-content/plugins/democracy/democracy.php on line 637″

http://www.wagnertech.net/blog/

I’m using journalized-blue theme, and putting it in the right sidebar.
Any ideas?
Thanks in advance.

5:19 am on 11/15/2005 138. High Octane

I would like to add a space between the Poll Question and the Poll answer selection, where do I do his at?

Thanks in advance

7:24 pm on 11/15/2005 139. Pierre

Hi Andrew,

thank you for the great plugin !!
It’s really cool. I made some modifications and i would like to be able to send it (all the archive) to you.
But i found anywhere an email to contact you so… can you email me ?
I add the possibility to choose in admin console to show radio button (unique choice) or checkbox (multiple choice), a link to go directly to the admin console of democracy, the possibility to activate more than one poll and show them in random order (the “old way” is available too you just have to activate only one poll), modify the table in admin console to show if a poll allow user to change answer etc. and lot of other things…
Thanks again for your excellent work, and if you want, do not hesitate to contact me :)

Pierre

11:59 pm on 11/16/2005 140. Jason Anderson

Very nice! I love AJAX and was looking for a poll plugin using Ajax. This does it well.

5:09 am on 11/18/2005 141. Thomas Reimer

Love this - Great work!

5:12 am on 11/18/2005 142. lex

Thanks for a very nice (and easy) plugin!

5:54 am on 11/19/2005 143. patje

Hey Man,

So glad I searched on to this easy 2 use pluggin. It’s just doing the job, easy install instead of changing several php-files. Keep on brother doing this great job ;-)

6:16 pm on 11/19/2005 144. Kenny

Is there a way to modify the number of votes as admin. I’m moving from wp_poll to democracy and would like to copy my old my old posts and answers and don’t want to lose my old data. I just want to recreate my old poll questions and the number of answers. YIKES!

1:41 pm on 11/26/2005 145. patje

ok, great pluggin
but is there away (or other pluggin) to disable the ip-check….
for one reason,, my colleagues at work can’t vote because.. there is someing like a proxy server… and since most people don’t work but mostly internet at their desks ;-)))

8:26 pm on 11/28/2005 146. Ben

Does anybody know how to make the poll answers horizontal with the radio button below each option?

11:59 am on 11/29/2005 147. Andrew SEO

Thanks for this plugin. It is very good and really easy to use.

10:34 pm on 11/30/2005 148. Frenzy

Hello,

I’m thinking about implementing this plug-in, but I’m concerned about what happens with people who are behind a proxy server. Since I would only ever see the proxy server’s IP, does that mean that only one person behind the proxy would ever get a chance to vote?

10:28 am on 12/1/2005 149. patje

To Frenzy:
Yep, only one person of the company where I work can vote ;-( if they’re using a proxy

2:26 pm on 12/1/2005 150. The Uncooperative Blogger

Thanks for the plug-in!

One problem, both my wife at her job, and I can clear cookies and vote all we want, so the ip checking is not working on my site. Does anyone have any ideas?

Do I have to give certain permissions to a file or something?

12:25 pm on 12/5/2005 151. Dezso

Thanks for the plug-in! This is something that I would ask for I have had time :)
Keep on coding… please!

3:10 pm on 12/6/2005 152. Stu

Andrew, thanks for the plugin man. Nice.

5:17 pm on 12/6/2005 153. Benjamin Solah

100 times better then WP polls!! Awesome plug in!

7:49 pm on 12/6/2005 154. Jaron

Fantastic… just what I wanted. Tried lots of other polls but you need to be a rocket scientist to get them to work. Very easy to set-up.

Cheers Jaron

12:56 pm on 12/11/2005 155. Frank

Cool stuff!

11:11 am on 12/12/2005 156. Jessica

Well, well done! So much easier than trying to get AdvancedPoll to work in the system… muchos gracias for your hard work.

9:24 pm on 12/14/2005 157. Alex

Hi… Very nice plugin, but unfortunately it is not work 8(. I made all installation and I can even see the pool on my sidebar, but it is not counting the votes. I tried myself and asked a friend of mine to do it, but is still not working. Do you have any idea how can I fix it??? You can try at http://www.bluetoothlounge.com/
Again, very good job. Please, we need more cool stuff like this one.

Thanks

9:56 am on 12/15/2005 158. edgar

It’s very easy to use. I like it… Thanks. Andrew.

8:07 am on 12/16/2005 159. World Cup Corner

On our site when user votes it shows the results but if you go to some other page or hit refresh results dissapear and you can vote again (but it doesn’t count).

Why are results not remaining after the vote???

6:19 am on 12/18/2005 160. Null

On our site when user votes it shows the results but if you go to some other page or hit refresh results dissapear and you can vote again (but it doesn’t count).

Why are results not remaining after the vote???

CONFIRMED, they all have this, some use of cookies would be nice….

Also if you vote, it takes a while before the results are shown. This makes me click vote a lot. Maybe a message like: You vote is being added. When you click vote will solve this.

And an option to have multiple choiches. Now you can only chose 1 option. Would be nice if it was set in admin per poll if you can choose just one or more options in a poll.

Add these things and it will be a nr 1 AJAXpoll :)

11:42 am on 12/18/2005 161. Andrew

I’m happy with Democracy’s current feature set.

9:36 am on 12/19/2005 162. World Cup Corner

Andrew, can you please answer my question above.
I just want users can vote only once (like on your page) and when they come back they would automatically see results. I know this works in Democracy but not on my site?
Thanks for your answer.

9:01 am on 12/22/2005 163. Richard

Mate!

It sounds like a fantastic plugin and more comprehensive than all the rest but it doesnt seem to work for me?! :-(

When I go to activate the plugin I get these errors at the top of the page:

—-

WordPress database error: [Invalid default value for 'timestamp']
CREATE TABLE wp_democracyQ ( id int(10) unsigned NOT NULL auto_increment, question varchar(200) NOT NULL default ”, timestamp int(10) NOT NULL default ”, voters text NULL default ”, allowusers enum(’0′,’1′) NOT NULL default ‘0′, active enum(’0′,’1′) NOT NULL default ‘0′, PRIMARY KEY (id) )

WordPress database error: [Table 'richardsmagic.wp_democracyq' doesn't exist]
INSERT INTO wp_democracyQ VALUES (1, ‘Rate my site’, ‘1135266993′, ”, ‘0′, ‘0′);

WordPress database error: [Duplicate entry '1' for key 1]
INSERT INTO wp_democracyA VALUES (1, 1, ‘Best. Blog. Ever.’, 0, 0);

WordPress database error: [Duplicate entry '2' for key 1]
INSERT INTO wp_democracyA VALUES (2, 1, ‘Could be better…’, 0, 0);

WordPress database error: [Duplicate entry '3' for key 1]
INSERT INTO wp_democracyA VALUES (3, 1, ‘My grandma could make a better website!’, 0, 0);

WordPress databa