Democracy AJAX Poll

By Andrew | September 22nd, 2006 | 949 Comments | General

I just upgraded the plugin to 2.0.1, check it out!

Among the new features in Democracy 2.0:

  • In-post polling: just insert {.democracy:12} (without the period) to place the poll with ID #12
  • Localizable: All strings are set up for localization. A .po (or .pot or whatever) file will come in newer versions
  • Slick new design
  • Edit all options in the Admin panel
  • IP-logging is now optional
  • A ‘widget’ for your sidebar.
  • Sexy new readme.html file

Download: Democracy 2.0.1. Released 11:50 PM PST Nov. 9, 2006

When will you upgrade to Democracy 2.0?
View Results

Democracy 1.2 has been moved. I strongly discourage use of this version due to security issues.

Specifically, the problem in 1.2 is as follows: If you make a poll with ‘add an answer’ turned on, then users can insert arbitrary html code, and therefore javascript. That’s an XSS vulnerability, and a serious one at that. Upgrading is highly recommended.

Changelog

Beta 1 Original release

Beta 2 Fixed potential upgrading issues and added SEO fixes (meta tag for robots).

2.0.1 A few big fixes:

  • In some cases extra
    s and extra lines were being wrapped around {.democracy.} code.
  • Upgrade from 1.2 shouldn’t break anymore >_<
  • A few CSS upgrades for people having trouble with themes (blix, notably)
  • Some tiny code realignments (changing whitespace, etc), nothing major.

Please comment on any problems you have with this new version.

free anal homemade pornhere

 

There've been 533 whole comments

3:08 pm on 9/22/2006 1. MKR

Hopefully the fix wasn’t too rushed. :D

This does look interesting, and I’ll definately try it once it has been around for a bit longer (I like letting things get full of fun stuff and adequately debugged before I make use of it :P).

6:56 pm on 9/22/2006 2. BJohnM

Great plugin. I’ve been using the previous version for a while, and it’s been great. Downloaded this version, deactivated the plugin, deleted the old folder, uploaded the new, reactivated. It seems it kept the questions, and the results, but blew away the answers. I had a backup, so I restored back to the old version.

I’ll try to experiment more over the weekend. I was planning to setup a develop version of my blog anyway, this’ll be the incentive to do that.

I’ll admit I didn’t just retore the tables while the new version was installed…should have…but not in the mood to experiment tonight, and on the live blog.

But thanks for a great piece of work.

1:32 am on 9/23/2006 3. Viper007Bond

Sweet. :D

Does this play well with WP-Cache by the way?

4:24 am on 9/23/2006 4. JimmyB7

Great Job!

Everything seems to work as advertized except I can’t seem to get the “Allow users to add choices” to work when voting.

It apparently won’t take a check mark when the new choice is added at the voting screen. When I click vote nothing happens.

I’ve unchecked “Allow users to add choices” for now.

Thanks much for your hard work and expertise.

7:26 am on 9/23/2006 5. Mark

Why are the percentages visible only when you move your mouse on the graphs? This is very bad, please make the percentages permanently visible next to the answers for example.

2:22 pm on 9/23/2006 6. Denis de Bernardy

There was more than a single XSS vulnerability in v.1.2. If you assume a multi-user blog, you also need to filter questions and answers with kses, and sanitize database queries. Any odds v.2 fixes these issues as well? :-)

Denis

7:52 pm on 9/23/2006 7. HART (1-800-HART)

Warning: Invalid argument supplied for foreach() in /…./plugins/democracy/class.php on line 189

Is that me? This is just a sample site of polls .. but I have some important ones on other sites. and I can’t seem to get this new version to work. In the meantime - what If I were to leave version 1.2 for now and remove the option to add answer .. would that solve the security risk for now?

8:33 pm on 9/23/2006 8. HART (1-800-HART)

Ok. Nevermind. The new plugin wipes out all the questions from the old polls and doesn’t give option to answer if you’ve answered the first one (it seems). The error message goes away once new questions are added. /

3:11 am on 9/24/2006 9. Melanie Isaac

Oh my god! It is fate, this is exactly what I’ve been looking for the past year! I thought l was going to have to beg and plead my programmer friends to make this plugin for me.

4:13 pm on 9/24/2006 10. Mickey J Barczyk

I have a visual problem and I dont understand what is wrong, here is a screen shot:

http://img246.imageshack.us/img246/6356/ssoy9.gif

I took away those dots like it said in the readme file but it didnt do any good.

Any suggestion?

4:50 pm on 9/24/2006 11. André Esteves

What is the php version required?

I have problems runnin it in php 4.3.1, but in php 5.1 no problems at all…

1:15 pm on 9/25/2006 12. pacheco

I think the links to “view results” and “vote” when you’ve not voted yet doesn’t work fine.

When I click on “view results”, it appears the following on the status bar of IE:

http://www.site.com/?dem_action=view&dem_poll_id=4

and it works.

But when clicking on “vote” (to go back to the previous screen), it appears on the status bar:

http://www.site.com/wp-content/plugins/democracy/democracy.php?dem_action=show_vote_screen&dem_poll_id=4

This message on the status bar is different, and the link does not work.

Also, it appears this error message:

line: 168
car: 2
unknown error in execution time

I’ve lloked into class.php in order to see the error, but there it looks just like the other function that works.

Do you know what is happening? Thank you.

5:14 pm on 9/25/2006 13. Teresa Yash

Good work. Interesting posts, besides those spam…

12:38 am on 9/26/2006 14. pacheco again

Hi. I’ve seen that my problem with the poll visualization and interchange of screens only happens on IE. Everithing works fine with Firefox.

Any idea?.

2:34 am on 9/26/2006 15. Rirath

Looks great, thanks for the fixes. I’ve been waiting for 2.0 in order to use Democracy, and here it is!

3:14 am on 9/26/2006 16. dH

I just downloaded beta 2 right now. Let me see… ;)

5:50 am on 9/26/2006 17. pacheco one more time

Hello. As the voting and show votes swaping was causing problems, I had changed the code. Now I see all (the voting and the bars) at the same time, changed the way the number of votes and percentage is displayed, and also can have multiple polls active at the same time (the current one to show in the sidebar is the last active poll introduced).

But anyway, it’s a great plugin !

7:10 am on 9/26/2006 18. When Will It Happen

Great! Exactely what I was looking for. Easy to install and use. Now I just need some visitors that can vote :)

9:25 am on 9/26/2006 19. probertoj

Allows Democracy 2.0 multiple polls at the same time?

3:42 am on 9/27/2006 20. Hesham

I’m running PHP Version 5.0.4 and WP 2.0.4 and I get a blank screen as soon as I activate the plugin.

6:02 am on 9/27/2006 21. Mickey J Barczyk

Btw, regarding my comment #14, I’m using the Blix theme. I’ve read on the Wordpress.org support that the problem should be fixed, but It aint working?

6:02 am on 9/27/2006 22. Mickey J Barczyk

Ops, sorry, i mean #10.

7:10 am on 9/27/2006 23. Mickey J Barczyk

Update to my problem:

I did manage to make my radiobutton 20px, but the error is still the same: the text seem to bu jumping under the radio button.

Screen shot:
http://img242.imageshack.us/img242/2365/ss3xx6.gif

I wonder, how do i make the text/questions not clickable? Maybe this might have to do something with blix theme links?

9:53 am on 9/29/2006 24. Thiago Mobilon

[code]

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '),(2, 1, '', 6, ),(3, 1, '', 1, ),(4, 1, '', 0, ),(8, 3, '', 2, 0),(9, 3, '', 13' at line 1]
INSERT INTO wp_democracyA VALUES (1, 1, ”, 8, ),(2, 1, ”, 6, ),(3, 1, ”, 1, ),(4, 1, ”, 0, ),(8, 3, ”, 2, 0),(9, 3, ”, 13, 0),(10, 3, ”, 0, 0),(11, 3, ”, 0, 0),(12, 3, ”, 2, 0),(13, 3, ”, 3, 0),(14, 4, ”, 5, 0),(15, 4, ”, 5, 0),(16, 4, ”, 1, 0),(17, 4, ”, 1, 0),(18, 5, ”, 35, 0),(19, 5, ”, 65, 0),(20, 5, ”, 10, 0),(21, 5, ”, 11, 0),(22, 6, ”, 94, 0),(23, 6, ”, 21, 0),(24, 6, ”, 66, 0),(25, 6, ”, 33, 0),(26, 6, ”, 3, 0),(27, 6, ”, 19, 0),(28, 6, ”, 4, 0)

Warning: Cannot modify header information - headers already sent by (output started at /home/.doublestuff/tmobilon/tecnoblog.net/wp-includes/wp-db.php:104) in /home/.doublestuff/tmobilon/tecnoblog.net/wp-includes/pluggable-functions.php on line 272

[/code]

I´ve lost all my pools!!! =(

7:54 am on 9/30/2006 25. Core

Hi,

I’m testing your democracy 2.0 plugin with Blix theme and I’m having the same problem that Mickey J Barczyk, So how can I fix it?

Thanks,

1:21 pm on 9/30/2006 26. Viper007Bond

Two things:

* I think it’d be best if the percentage was shown and then a hover showed the number of votes (i.e. reversed of what’s on your site now).

* Upgrading from an old version on my local test blog and I decided to not keep the old polls. I dropped the tables, deleted the old files, etc. Now after activation, I get this error message on the poll manage page:

WordPress database error: [Duplicate entry '1' for key 1]
INSERT INTO wp_democracyQ VALUES (1, ‘Rate my site’, 1159651203, 0, 0, 1, 0);

WordPress database error: [Duplicate entry '1' for key 1]
INSERT INTO wp_democracyA VALUES (1, 1, ‘Best. Blog. Ever.’, 0, 0),(2, 1, ‘Could be better…’, 0, 0),(3, 1, ‘My grandma could do better’, 0, 0),(4, 1, ‘Ooh look! A butterfly!’, 0, 0),(5, 1, ‘No Comment’, 0, 0)

Using PHP 5 and MySQL 5.

9:53 am on 10/1/2006 27. Joe Banner

I got an error message regarding SQL syntax when I activated the plugin after I upgraded from Dem 1.2 to Dem 2, but it was resolved when I deleted the democracy tables and reactived the plugin. I did not have any polls as I was experimenting with the upgrade. Nothing lost. However, I do have another site that I would like to upgrade but I do not want to lose any old polls.

6:41 am on 10/2/2006 28. sahil

nice useful plugin.

5:23 am on 10/3/2006 29. patje

Hey there,

finally, it’s true i am impatient ;-) , version 2 with iplog facility to set off. Indeed again, nice plugin. I also got the wp database errors when installed over the old version and lost the answers to the questions. Where did i go wrong… Nevertheless, is there a way to activate more “polls”, because within admin i can only activate 1. When I select another poll the previous activation goes in deactivated.
TIA

2:22 am on 10/6/2006 30. Karthik

Hey can i run democracy to run a full fledged survey.. or is there a plugin to do that..

7:19 pm on 10/6/2006 31. Mark

Why do we have to put the mouse cursor on the bars to see the percentages?

2:33 pm on 10/7/2006 32. Pace

On the embedded poll (which I love) it seems the div or something is overlapping my right sidebar where ever the poll is lined up with. So if the embedded poll is directly left of some sidebar links, the links cannot be clicked.

2:29 am on 10/8/2006 33. Daniel

I have downloaded it, still on the thinking to use it effectively.

10:14 am on 10/8/2006 34. Tim

Is there a way to make this work with Safari? It works perfectly using Firefox, alittle big buggy using IE, but I’m not able to submit answers using Safari.

http://www.pimastreethockey.com

If anyone knows a fix for this please post it here.

Thanks!
- Tim

12:03 pm on 10/8/2006 35. neon

Hi, I’m trying to localize this plugin in Italian but when I add the load_plugin_textdomain() function to democracy.php I get the following error after pressing View Results:
Fatal error: Call to undefined function: load_plugin_textdomain()

1:01 pm on 10/8/2006 36. OROL

Hello, thanks for this Easy-Great plugin!
;-)
good work!

7:33 am on 10/9/2006 37. Rioc

I have the same problem as Viper007Bond (comment # 26) using PhP 5 and MySql 5 also.

3:25 pm on 10/9/2006 38. John

I have it installed, but nothing shows up in the admin panel. How do I make the settings options show up in the admin panel and how do I put the poll in my sidebar? I am running WP 2.0.4 if that makes any difference. Thanks!

9:22 pm on 10/10/2006 39. Viper007Bond

Looked into switching the percentage and the count. Turns out Jalenack is smart and did the toggle via CSS.

To switch them, open up basic.css and look for these two items:

.dem-graph a b
.dem-graph a i

They are about 2/3 of the way down. Wherever it says “i”, put a “b” and wherever it says “b”, put an “i”. You should have 6 changes — 3 for the normal CSS, 3 for the IE hacks.

Also, to get it to work right, I’d add this in somewhere (to either stylesheet, it doesn’t matter):

.dem-graph a b, .dem-graph a i {
width: 200px;
}

You may have to fiddle with the width to make it fit your theme. It should be as wide as possible, but not wider than your bars (obviously).

9:23 pm on 10/10/2006 40. Viper007Bond

John: read the readme — step #4 under “Installation”. ;)

9:43 pm on 10/10/2006 41. Viper007Bond

Hmm, I take that back, John. I just installed it on one of my sites and while it worked on my local install, the tab doesn’t show up on this online site. Odd.

9:49 pm on 10/10/2006 42. Viper007Bond

Nevermind! I just add to go to the role manager page since I have that plugin installed. I can see the manage page now. :)

7:41 am on 10/11/2006 43. Major Pain

C’est trouis bien. Nice, i mean. Thanks!

8:36 am on 10/11/2006 44. DarkDan

One bug:
I didn’t vote and just wanted look at the poll results. I clicked on the link to go back to vote. It wouldn’t send me back to be able to vote. I had to go back to the home page and click on the article again….then I was able to vote.

5:41 pm on 10/11/2006 45. Viper007Bond

RE: My previous comment about switching the percentage and count.

I just activated Democracy at one of my sites. You can see my modification there.

10:51 pm on 10/11/2006 46. Viper007Bond

I just noticed that the answers for my polls from v1.2 were lost (but the question and count was not). Might wanna look into that.

12:32 am on 10/12/2006 47. Viper007Bond

Man, I sure am comment happy…

Anyone have any ideas on how to fix the issues with the vote count & percentages line wrapping in IE6 when the grey bar is short?

$#%#$^@#$

4:52 pm on 10/12/2006 48. Dating

Cool plagin:)

12:57 am on 10/13/2006 49. Mike

Just wanted to say that I’m using it :)

I just have some issues with the user added choises in IE but I didn’t bother to look at it in detail…

Oh and thanks for the great plugin!

12:59 am on 10/13/2006 50. Mike

Oh and by the way, a language pack and some templating would be a nice thing to put on your future feature list! (I now had to edit all the language stuff in the code, that kinda sucked ^_^)

3:41 pm on 10/13/2006 51. DarkDan

Yes, I’ve confirmed that a user cannot add a choice with IE, but it works fine in Firefox.

12:58 am on 10/15/2006 52. StyleLotußien

encore et toujours du flood ici c’est pitoyable …

12:17 am on 10/17/2006 53. Ronald

In the admin panel democracy isnt counting the votes, it just sticks at 0. On the page itself it does show the number of votes submitted. WHat can be wrong?

12:19 am on 10/17/2006 54. Ronald

And is it possible to have 2 active polls at same time?

9:30 am on 10/17/2006 55. James

Anyone know why the answers to the poll aren’t showing up when the bars are displayed? I have bars, and number of votes but you can’t tell which bar means what.

http://www.rightonblog.net/

2nd sidebar under “asides”.

9:34 am on 10/17/2006 56. James

I made a new poll and the answers show up… did the new Democracy Beta strip out my answers?

1:23 pm on 10/18/2006 57. Jeff Noble

Love it! Great, easy to install plug-in!

12:14 pm on 10/21/2006 58. Minotaur Nicce

I know, ask me. Also some interesting sites.

3:28 pm on 10/21/2006 59. Schmitty

Love the look and function of this plugin! I have had problems getting the democracy_archives function to work however, and am wondering if a) the docs are accurate about calling the function, and b) if any extra setup needs to be done so the function will work..

Thanks!
Schmitty

6:49 am on 10/23/2006 60. ronald

in the admin panel the poll isnt counting the votes. it just sticks with ’so far, 0′. How to solve this?

10:47 am on 10/23/2006 61. Mike

I love Version 2 of this plugin but am having one problem.

My archives page displays the textual answer options for only the most recent 13 polls. Beginning with the 14th in the list, all I have is the poll title and the bars but no answer text.

Can you help?

11:17 am on 10/23/2006 62. Mike

Never mind, it was a problem on this end relative to switching versions and turning the poll on-and-off several times in the past.

Sorry, it’s a beautiful thing now that I’ve deleted all the bad ones in the archive.

Thanks again for this great plugin!

9:58 pm on 10/26/2006 63. Omry

Hi,
I extracted the beta zip in plugins, activated the plugin from the menu, and I don’t see anything in the manage menu.
my blog does not support widgets, could this be the reason?

3:34 am on 10/27/2006 64. Dom

Doesn’t appear to work with wp-cache - or ath least, I can’t find a way to make it work. Anyone?

9:53 pm on 10/27/2006 65. Jr

awesome plugin!
thanks!

12:11 pm on 10/29/2006 66. Matthew

I’ve used Democracy since it was in its early versions, and this one is better than ever. I too got the SQL errors when activating it though, and was only able to make it work when I dropped my tables for the existing Democracy plugin. I did this all on my test site; I’d really like to be able to upgrade and save all my old polls, especially now that we have an easy way to display them with the archives functionality.

2:57 pm on 10/29/2006 67. Kyle Gilman

In v1.2 the column that held the answer text was called “answers” and in v2.0 it’s called “answer” so when 2.0 is installed it gets rid of the “answers” column and replaces it with a blank “answer” column for all the existing answers. If you rename the “answers” column to “answer” before you upgrade I believe that will help you avoid the problem. Or if you’re like me and you don’t read the comments ahead of time, restore from a backup and change the column name to “answer” that brought back all my old answers.

4:03 am on 10/30/2006 68. Aaron Brazell

Folks, you gotta pay him to do anymore work on this. That’s what I had to do to drag him back to his “volunteer” work. v2 still has tons of problems but there’s no sign Andrew is around and if D1.2 is any indication, he won’t be until someone ponies up some money.

9:37 pm on 10/31/2006 69. Jim

For some reason the bars (where the number of votes and percentages are displayed) are really big, but the words are small and don’t take up the whole space. Is there anyway to have the bars be small (like everyone else I’ve seen who uses democracy)?

11:24 pm on 10/31/2006 70. bonniecool

It’s a nice tool but does it have a feature that you just have to paste one code in all your post but it shows different results? Just like post voting. You dont have to set an id in order to use it on a specific post.

Thanks

12:33 am on 11/2/2006 71. Mohd Heidzir Mohd Jamaraji

Hi,

I get this error. A bit strange. I also create my own plugin, but did not get this kind of error. Please help. Your plugin look cool from your demo.

Fatal error: Cannot redeclare jal_democracy() (previously declared in /var/www/html/mmblog/heidzir/wp-content/plugins/democracy/democracy.php:23) in /var/www/html/mmblog/heidzir/wp-content/plugins/democracy/democracy.php on line 23

Wordpress 2.04
PHP5
Apache 1.3

11:52 am on 11/2/2006 72. djuggler

If 2.0 “… is recommended for testers only.” and 1.2 has been removed for security reasons. Is there anything in between?

10:38 am on 11/3/2006 73. Andy

Great plugin! Just a small observation for localisation. Looking forward to the pot file, by the way. After “date added”, for some reason the month slides back into english. If I use j F Y, elsewhere the month will be translated but not here. If I change to j/n/Y for example, no problem.

3:21 pm on 11/3/2006 74. John

Great plugin, easy installation, works perfectly. Keep up the good work! The Allow users to add choices feature is superb.

Thanks.

5:41 pm on 11/4/2006 75. Marko

I have a question. Is there a way for this poll to allow only one vote per ip adress? Or this is already built in?
Thanks.

5:52 am on 11/5/2006 76. BKJ

Feedback, delete this message if you want to.
Democracy 2.0 Beta 2. version of Democracy poll, I get an error for the widget usage.
Also, when deactivating and reactivating Democracy plugin, get a database error; maybe you’re trying to re-create the tables and they already exist?
Here is the Widget’s error:
Warning: Invalid argument supplied for foreach() in /home/cust1/user1125193/html/residents/wp-content/plugins/democracy/class.php on line 189

Warning: Invalid argument supplied for foreach() in /home/cust1/user1125193/html/residents/wp-content/plugins/democracy/class.php on line 203

1:08 pm on 11/6/2006 77. Jake Igle

Why is it so impossible to make everything?

9:45 am on 11/7/2006 78. jamshed

Oh nice COOl thanks, working fine:) useful

regards,
http://www.firefoxdir.com

9:03 am on 11/8/2006 79. Joseph Crawford

This is a very well put together plugin, i like it so far and i am digging deeper to figure out if you have have text boxes for responses rather than just radio buttons.

I think it would be nice if you could style the css buttons, labels, and submit button from the css file without having to alter the plugin code.

4:05 am on 11/10/2006 80. Lars

I’m looking forward to try the new 2.0.1 Democracy but when I try to download it I get an empty zip-file (dem2.zip). Is it just me?

5:53 am on 11/10/2006 81. Lars

Just ignore my last post. It download just fine now. And it looks excellent in my Blix theme:) Thanks.

12:42 am on 11/12/2006 82. Mimo

Hi,
I upgraded to 2.0.1 yesterday, thanks for a great plugin. A lot of improvements since version 1.*

I have run into a few problems though:
1) I receive 2 validation errors (ampersands i suppose): http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fmimos.sacinom.com%2Fblog%2F and I have not been able to locate where I can correct this.
2) The line when the poll started: Allthough I have the Swedish mo-file it prints “Sunday”. I removed the day now.
3) I did try to add an answer as a test, after removing the answer in the control panel, the vote still counts.

Thanks!

12:49 am on 11/12/2006 83. Mimo

Forget the last issue (no 3) in my post above. The count was corrected after I received one more vote :)
Sorry!

3:03 am on 11/12/2006 84. Loopylolo

I dont like this site its too complicated for the likes of me

11:25 am on 11/13/2006 85. Mimo again

Well, I have not solved my problems, (see above) but at least I have localized the validation-errors.
It is comming from when someone let a visitor add an answer. Disabling that function validates the page.

Since I like letting visitors add their own answer, I can cope with that ;)
But if someone knows how to correct it I would really apreciate it!

Take care!
/Mimo

11:01 am on 11/15/2006 86. McShelby

Hi there, as ViperBond in comment #24 I also get this SQL errors. This was a first time installation of the plugin in my test blog. I am using WP 2.0.4 with a Xampp release on a Windows workstation. Here’s the error output from the admin panel:

WordPress database error: [Duplicate entry '1' for key 1]
INSERT INTO wp_soeren_democracyQ VALUES (1, ‘Rate my site’, 1163616522, 0, 0, 1, 0);

WordPress database error: [Duplicate entry '1' for key 1]
INSERT INTO wp_soeren_democracyA VALUES (1, 1, ‘Best. Blog. Ever.’, 0, 0),(2, 1, ‘Could be better…’, 0, 0),(3, 1, ‘My grandma could do better’, 0, 0),(4, 1, ‘Ooh look! A butterfly!’, 0, 0),(5, 1, ‘No Comment’, 0, 0)

8:41 pm on 11/15/2006 87. Tim

I would like to allow visitors to vote up to three times. I’m sure it’s just a simple change in the code somewhere to change IP logging. Anyone know if this can be done?

5:24 am on 11/16/2006 88. wrex

I can’t seem to activate this properly. From “Plugins,” when I click on “Activate,” I first get:

Parse error: parse error, unexpected $ in ../wrexgrafix.com/anime/blog/wp-admin/upgrade-functions.php on line 539

I click the “back” button, and it seems it’s activated, but when I go to “Manage” I don’t see Democracy included. Any ideas of what I should do?

I’m using Wordpress 2.04 with Firefox 1.5.08 on a Mac.

11:43 am on 11/17/2006 89. Erik J. Barzeski

I’m not particularly keen with the massive amount of HTML these polls spit out. There are \n and \t all over the place. I’ve removed most of them and still WordPress insists on putting <p> tags in various places (oftentimes without closing the tag) or <br /> tags. Can some cleanup be done in 2.0.2 or will I need to keep running my hacked up version of 2.0.1 for awhile?

3:08 pm on 11/18/2006 90. Alberto A-P

Is there any way to close a poll???

12:33 pm on 11/19/2006 91. rolf

What I’ve done:

# Upload the entire folder named democracy into the plugins folder (/wp-content/plugins/) of your WordPress installation. Do not use the folder Democracy 2.0.1, use the folder inside it.
# Login to your WordPress admin panel, click on Plugins, and activate Democracy.

-Wordpress Version 2.0.5
-PHP Version 5.0.5
-Democracy 2.0.1

Problem:

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/class.php) is not within the allowed path(s): …./subdomains/blog/httpdocs:/tmp) in …./subdomains/blog/httpdocs/wp-content/plugins/democracy/democracy.php on line 12

Warning: main(class.php) [function.main]: failed to open stream: Operation not permitted in …./subdomains/blog/httpdocs/wp-content/plugins/democracy/democracy.php on line 12

Fatal error: main() [function.require]: Failed opening required ‘class.php’ (include_path=’.:/usr/share/pear’) in …./subdomains/blog/httpdocs/wp-content/plugins/democracy/democracy.php on line 12

the class.php is in the same directory

thanks for any help

1:11 pm on 11/20/2006 92. Corinne

Not all of the graph is showing, it only shows half of the bar: http://luve-me.net/#poll

3:40 pm on 11/20/2006 93. Ralph Dagza

Amazing!

its very useful and way better than other wp polls that are out there

2:25 am on 12/2/2006 94. Alex

Hello, your plugin is great and I love the way it looks, but… I can’t make it work with russian language, all that he shows in the sidebar is a lot of ?????? instead of letters.

What I should change to make it all right?

3:41 pm on 12/3/2006 95. Ian

I just want to know if there is a way to just display the results of a poll in a post?

8:44 am on 12/4/2006 96. Matt Herzberger

Has anyone else had the problem that when you install the plugin and activate it your whole site goes away? I had to ftp and remove the “democracy” plugin folder then the site came back. Im using WP 2+ any ideas?

8:03 am on 12/5/2006 97. danithew

Like Alberto A-P (comment #90) I am wondering if there is a way to close/finish a poll so that no more votes can be cast and so that only the result tally shows. I have a current poll that is coming along nicely but at some point I’d like to end it.

10:46 am on 12/5/2006 98. test

thanks.

7:13 am on 12/6/2006 99. Юрий

Отличный скрипт пользуюсь :)

3:47 pm on 12/7/2006 100. Chris

Yay, 100! Lol!

7:33 pm on 12/7/2006 101. om7ack

following test :D

7:36 am on 12/9/2006 102. theglobalconsensus

Hi,

Great plug-in - the basis for my new site!

Question, though - Anybody know how I might get multiple active polls running simultaneously? One of the previous comments had mentioned it…

Ta.

1:13 pm on 12/9/2006 103. Soeren

I get the following error message:

Warning: main() [function.main]: open_basedir restriction in effect. File(/class.php) is not within the allowed path(s): (/home/web/web18357:/var/tmp:/usr/local/lib/php:/usr/local/share/pear) in /usr/home/web/web18357/wp-content/plugins/democracy/democracy.php on line 12

Warning: main(class.php) [function.main]: failed to open stream: Operation not permitted in /usr/home/web/web18357/wp-content/plugins/democracy/democracy.php on line 12

Fatal error: main() [function.require]: Failed opening required ‘class.php’ (include_path=’.:’) in /usr/home/web/web18357/wp-content/plugins/democracy/democracy.php on line 12

Help appreciated.

7:04 am on 12/10/2006 104. Klaas Koopman

How can I change the words used in the script? Everytime I try and change it I’m getting errors:

Parse error: syntax error, unexpected T_STRING in /home/koopmans/public_html/wp-content/plugins/democracy/class.php on line 164

11:05 am on 12/10/2006 105. Počasí

Interesting

5:47 pm on 12/11/2006 106. mpb

We’re trying a version over at the edublogses which is a multi-user WordPress. There is a stray lower-case letter n which show up just before the poll coding e.g., div n pollcode /div

This shows up automatically whenever the plugin is called, i.e., cannot delete the n then save the post. The n is always restored.

Is this a bug?

5:30 am on 12/12/2006 107. Poppy Lock

Why, i am asking why all this happens

12:46 pm on 12/12/2006 108. Nathan Bent

Is this going to be compatible with the new wordpress? From what I’ve heard (and made up) it shouldn’t be too hard to port it, but I’m no expert. I’m also insane.

8:30 pm on 12/13/2006 109. emre

With the theme I am using the style sheet should read thus in order for the appearance to be uniform across Firefox and Internet Explorer:

.democracy ul {
padding: 0;
margin: 0;
}

(I just added a line.)

1:47 pm on 12/16/2006 110. Smighrf

.

3:15 am on 12/17/2006 111. Bojidar

Hi, I was just wandering is there opportunity to be viewed the old polls from that great plugin, I mean a link like - view old poll results and to show all the polls, or the 5 last polls?

9:10 am on 12/17/2006 112. Hoboken411

FIREFOX 2.0 BUG
I recently upgraded my browser to Firefox 2.0, and now the poll isn’t working properly.

It used to work in FF 1.5, and works fine in IE6 and IE7. Here’s the problem:

When I put the PHP code in the sidebar, pressing the “Vote” button does NOTHING.

I then have to click “see the results”, which erases EVERYTHING BUT THE POLL from the side bar. Then I have to click to the vote screen, then it will accept my vote.

Why is the vote button malfunctioning? Why does it unload the rest of my side bar?

Please help!!

2:58 pm on 12/20/2006 113. Chat

Yet another great plugin from Skippy. Worked like a charm the first time. Thanks!

chat

4:13 pm on 12/20/2006 114. Hoboken411

Has anyone else noticed the issue with FF2.0?

Edit:
I solved the problem. I had the php script in TABLE tags. I removed the TABLE, and it works like a charm now.

PS, I know tables are silly for a sidebar, but I needed to add them for some of my code to prevent it from throwing the theme out of whack. But it was ok for the poll!!

Thanks.

5:41 am on 12/21/2006 115. Edie

I have problem, because when I click on Manage, then Democracy Poll I see

WordPress database error: [Zvojen-B� kl�� '1' (��slo kl��e 1)]
INSERT INTO wp_democracyQ VALUES (1, ‘Rate my site’, 1166708171, 0, 0, 1, 0);

WordPress database error: [Zvojen-B� kl�� '1' (��slo kl��e 1)]
INSERT INTO wp_democracyA VALUES (1, 1, ‘Best. Blog. Ever.’, 0, 0),(2, 1, ‘Could be better…’, 0, 0),(3, 1, ‘My grandma could do better’, 0, 0),(4, 1, ‘Ooh look! A butterfly!’, 0, 0),(5, 1, ‘No Comment’, 0, 0)

can you help me? where is mistake?

6:55 am on 12/21/2006 116. David Carrero Fdez-Baillo

Hello,
I need poll plugin but with mod_rewrite support, Democracy support this feature ??

8:56 am on 12/21/2006 117. David

Great job!Thanks a lot for this great piece of information.The information is really essential.With the best regards!

3:34 pm on 12/21/2006 118. Erik J. Barzeski

Your use of the $table* variables implies that Democracy will need quite an update when WordPress 2.1 is released. True?

1:20 am on 12/22/2006 119. Ronald

Big problem with IE and democracy.
Suddenly, within Internet Explorer, my blog breaks in two when adding a poll. After adding, the title and date of this post are shown on the top of the page (as it should be) but the story itself (including poll) way down below at the page. When i remove the poll everything looks as it should be.

How can this happen? see: http://www.boneless.nl (with IE) to see for yourself. In Firefox all is shown as it should be.

1:31 am on 12/22/2006 120. Ronald

Another question:
How come in IE the results are showns as total votes, when in Firefox it shows the percentage of the total votes?

7:33 am on 12/22/2006 121. Aaress

Great Poll Plugin! Thanks!

I have a quick question that maybe someone here can help me with. I removed the dots in the css file according to the readme, but I still have the poll showing with the indent in IE 6 & 7. The dots are gone though.

What part of the code in the style css do I need to change?

Merry Christmas All!

4:02 am on 12/23/2006 122. Dragos

Great work

6:42 am on 12/26/2006 123. Harvey

The installation seemed to go OK, the text describing the election options for the poll show up blank. However when “viewing results”, one can see that all the selection choices are there as they should be.

Has anyone ever seen this before?

You can see what I’m talking about with the demo poll on my site now.

Thanks for any help as always!

- Harvey

8:43 pm on 12/26/2006 124. Jessi

I too would like to know if one can close a poll. I had people vote on their favorite of the themes I had available at my site, and I used the results to take most of them down. So it doesn’t make sense for anyone to vote in this poll any more, and I would like to make sure they can’t.

10:06 am on 12/29/2006 125. Heather

Hey - I LOVE this poll. It is absolutely fabulous. I have one request. Can you please make it Valid XHTML 1.0 Transitional?

When I integrated it into my Wordpress blog I lost my validity. I know that isn’t altogether important as far as the functionality of Wordpress, but it is important for the functionality of my anal retentive personality. :)

Thank you for developing such a great plugin!

6:02 pm on 1/3/2007 126. spicey

Im into this competition in Sweden for SEO and i have used the old plugin oops 1.2 so i have a lot of pages. But i like the plugin though.
I have switched now to the new plugin.

5:06 am on 1/6/2007 127. Morten Frederiksen

I have created a generic localisation (.po) file and a translation (.mo) into Danish, added the necessary code to actually perform the translation, as well as fixed three string that weren’t set up correctly for localisation.

A complete package with all of the above included can be found here:
http://www.wasab.dk/morten/2007/01/democracy-2.0.1mf.zip

10:34 am on 1/7/2007 128. Chris

Hey…I had a bit of an issue when installing this plugin. I uploaded it to the plugins directory as instructed, etc. When I activated the plugin, it took down wordpress and it also appeared to change my admin password. I reverted from backup, and everything was fine.

I’m probably an idiot, but just wanted to let you know to check your distro.

-Chris

12:59 am on 1/8/2007 129. a designer

I love this plug in, but is it possible to make this a stand alone system for sites not actually using wordpress?
There are very few good rating systems around.

6:34 pm on 1/8/2007 130. adam

It doesn’t seem to be working for me. I made a poll, id# 2, and whenever I type (democracy: 2) in a post, the poll doesn’t appear, but rather “(democracy: 2)”. Any ideas why this might be? I have tried this using both the rich text and the html editor, and both with and without a space between the colon and the number (democracy: 2; democracy:2). Thanks

7:25 pm on 1/8/2007 131. Zarra Ock

Strange things happens too many times to be just an occasion

5:20 am on 1/9/2007 132. andre

so nice this

5:42 am on 1/11/2007 133. shy

ééééé

5:45 am on 1/11/2007 134. Jim Gatos

Thanks for the Democracy plugin! It’s the best plug in I have EVER found!
You’re a genius!
Jim

11:36 am on 1/13/2007 135. kour

Great job :)

7:48 am on 1/14/2007 136. Lex Luthor

So is there any way to fix the problem of users not being able to add poll answers?

It seems some of my users can and some of my users just can’t regardless of whether they are running firefox or IE. Any solutions to this? I’m getting tons of e-mails about it all the time, which is really annoying.

11:08 pm on 1/14/2007 137. Orhun Jack

God bless any child in this world and beyond

7:31 am on 1/15/2007 138. Paul

Great plugin, thanks.

I there a way to have 2 active polls going at the same time?

10:29 am on 1/15/2007 139. Brett Romero

I’ve install the plug-in but get this when I go to manage it through the admin:

WordPress database error: [Duplicate entry '1' for key 1]
INSERT INTO wp_democracyQ VALUES (1, ‘Rate my site’, 1168885119, 0, 0, 1, 0);

WordPress database error: [Duplicate entry '1' for key 1]
INSERT INTO wp_democracyA VALUES (1, 1, ‘Best. Blog. Ever.’, 0, 0),(2, 1, ‘Could be better…’, 0, 0),(3, 1, ‘My grandma could do better’, 0, 0),(4, 1, ‘Ooh look! A butterfly!’, 0, 0),(5, 1, ‘No Comment’, 0, 0)

Otherwise it seems to work fine. I’m running WordPress 2.0.5. Do you have any suggestions for fixing the above errors?

Kind regards,
Brett Romero

11:42 pm on 1/17/2007 140. Ben-Inside

Hi,

perfect Plugin. I have translated it into German, but have two questions:

Where can I change the date_format?
How can I change the space between the poll-title and the answers? I wanna have more space between both.

Thanks
Ben

4:15 am on 1/18/2007 141. Sparky

Hi!
Many thanks for very nice script.
But I need use “AND” Poll method.
“OR” method is working OK for me.
How I can do that?

Thanks for help in advance.

Best regards!

12:01 am on 1/19/2007 142. Ben-Inside

Where can I see the IPs of the user that make a vote?

3:23 pm on 1/23/2007 143. Lu

Hi! I love this plugin and I’d like to know if it will work fine with WordPress 2.1…
Tks!

11:51 pm on 1/23/2007 144. StoneCypher

Something in WP 2.1’s stylesheet breaks the democracy stylesheet such that framing bars are minimum-fit right aligned, and content bars are beneath rather than within the framing bar.

2:41 am on 1/24/2007 145. Alasdair

Hi There,

I love this plugin. But last night I upgraded to Wordpress 2.1 and it is now broken. I know, I know, I should have waited.

Any chance you could take a look and see if a fix could be made?

Many thanks.

10:19 pm on 1/26/2007 146. CVOS

Awesome plugin - this will be the first mod to my blog!

10:55 pm on 1/26/2007 147. bayan arkadaş arıyorum

thanks to little koom

6:13 pm on 1/28/2007 148. Todd

Although democracy 2.01 is listed as compatible with wordpress 2.1, the management page in the dashboard doesn’t work when this plugin is activated.

1:13 am on 1/29/2007 149. DarkPilgrim

Nice done! I will try it on my new site!Thx for your work!

2:36 pm on 1/29/2007 150. altoyes

hi folks
thankyou for your time.

i saw the code to put several polls on one page and have lost the page. can anyone tell me where that code is mentioned?

4:19 pm on 1/29/2007 151. altoyes

isn’t it amazing how often, when you give up in despair of finding something, that within a very short time, you find it.

after searching and searching on the net, i found the code for the multiple polls on one page, in the READ M Etxt file.

5:12 pm on 1/29/2007 152. altoyes

thankyou jalenack for this elegant plugin.
it works beautifully for me - i am using devenir en gris theme by neuro.

8:43 pm on 1/29/2007 153. Pavel Brain

Kindzmarauli vs conyaq, or some…

9:47 am on 1/30/2007 154. Luca

i installed wordpress 2.1 and democracy has some problems now…. i cant create new polls

10:26 am on 1/31/2007 155. Sean

Installed on WP 2.1 and it’s bugtastic. We can create new polls, but only if they are 4 questions in the poll. Whenever you click “Add an Answer” or “Remove an Answer” it either closes out of that poll or adds a whole new poll. Any fixes on the way?

1:35 pm on 1/31/2007 156. Davezilla

Been using Democracy since the first version. 2.0 and 2.1 are really buggy. IE Win users tell me they can’t post anymore and Mac Safari users get a really odd bug; the vote button keeps growing and shrinking. I was able to duplicate this myself. It looks like it’s adding and removing characters to itself.

2:34 am on 2/1/2007 157. martin

No vyzera to dosť super..

12:04 pm on 2/1/2007 158. sohbet

Gel Gör Beni Beni Aş Neyledi

12:06 pm on 2/1/2007 159. sohbet

thansk You ples

12:07 pm on 2/1/2007 160. martin

Отличный скрипт пользуюсь :)

12:08 pm on 2/1/2007 161. sohbet

Отличный скрипт пользуюсь :) yes

12:10 pm on 2/1/2007 162. taşyünü

Отличный скрипт пользуюсь пт льзуюсь

2:37 pm on 2/1/2007 163. heryy

Wolcome http://www.sohbetsever.net Send you :D

2:39 pm on 2/1/2007 164. kelebek script

http://www.kelebek.org beatifull

3:00 pm on 2/1/2007 165. mirc

Free scrip Dowloand

7:22 am on 2/6/2007 166. kaka

Big bug!

WordPress database error: [Duplicate entry ‘1′ for key 1]
INSERT INTO wp_democracyQ VALUES (1, ‘Rate my site’, 1168885119, 0, 0, 1, 0);

WordPress database error: [Duplicate entry ‘1′ for key 1]
INSERT INTO wp_democracyA VALUES (1, 1, ‘Best. Blog. Ever.’, 0, 0),(2, 1, ‘Could be better…’, 0, 0),(3, 1, ‘My grandma could do better’, 0, 0),(4, 1, ‘Ooh look! A butterfly!’, 0, 0),(5, 1, ‘No Comment’, 0, 0)

The plugin wanted to insert the defaut poll to table when you visit option panel every times !

11:53 pm on 2/6/2007 167. David

Yes got the same issue - looks it is preventing me tocreate a new poll as well.

9:18 am on 2/7/2007 168. Scott at Real Epicurean

Next version, please make for XHTML1.0 Strict validation. I’ve modified it on my site to validate - it just needed a couple of paragraph tags entering either side of the input tags in class.php

12:43 pm on 2/7/2007 169. Andy

Love the plugin, but confirm that latest version doesn’t work with WP 2.1.

Thanks for the great contribution…

-A

2:32 pm on 2/7/2007 170. gutielua

I fault whit the updated! All my answers lost it! Only I have the cuestion, why?

Regards!

4:22 pm on 2/7/2007 171. BGH Quiz

I can confirm, the plugin is screwed with WP 2.1
The lists formatting esp. doesn’t work. I’d really ask for an update, because I need the polls for my blog concept especially.

6:28 pm on 2/7/2007 172. rbrt

Coole Sache.. :) ..means “cool stuff”! Just one question: is it possible to see who took part (from the ip)..?

Tnx a lot!

3:43 pm on 2/8/2007 173. Scott at Real Epicurean

Just to respond to the other guys; I’m on WP2.1, and the plugin works. Other then the validation, which I had to tweak as in my previous comment.

Oh, and when I have 2 polls on the same page (i.e. if one is in the sidebar), the validation goes crazy…But I think you know about that (so please fix it).

12:55 pm on 2/9/2007 174. Jack

I use the older version of the poll, and WP. But is it possible to not show the visitors the results of the poll? Thanks.

6:27 pm on 2/9/2007 175. Kman

Just added it and it works great. Thanks!

11:40 am on 2/10/2007 176. zyboy

to help out the folks with the INSERT issues - I’m guessing it’s a case issue. THe Poll php code uses democracyQ when addressing the mySQL table, but your mySQL table is probably called democracyq.

Same for democracyA and democracyIP.

Either do a search and replace to change the php to lower case, or upper-case the trailing letters in the mySQL tables..

6:01 am on 2/11/2007 177. Ron Olson

I had Democracy 1.2 up and running fine. Then I came across your latest release, Democracy 2.0, and now I’m getting the following database error.

WordPress database error: [Unknown column 'current' in 'where clause']
SELECT * FROM wp_democracyQ WHERE current = 1 LIMIT 1

I hate going into my DB - do you have a quick fix?

1:40 pm on 2/11/2007 178. Jason

My page uses 1.0 Strict validation and it is not validating with this otherwise great plugin. To me it appears 1.o strict does not like a paragraph being embedded between two divs. A div can’t be embedded into a paragraph. Can you please tell me how to fix this because I get a whopping 5 errors, here you go:

# Line 90 column 23: document type does not allow element “div” here; missing one of “object”, “ins”, “del”, “map”, “button” start-tag.

The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as “” or “”) inside an inline element (such as ““, “”, or “”).


# Error Line 108 column 54: document type does not allow element “input” here; missing one of “p”, “h1″, “h2″, “h3″, “h4″, “h5″, “h6″, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag.


# Error Line 109 column 56: document type does not allow element “input” here; missing one of “p”, “h1″, “h2″, “h3″, “h4″, “h5″, “h6″, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag.


# Error Line 110 column 62: document type does not allow element “input” here; missing one of “p”, “h1″, “h2″, “h3″, “h4″, “h5″, “h6″, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag.

…ut type=’submit’ class=’dem-vote-button’ value=’Vote’ />


# Error Line 111 column 232: document type does not allow element “a” here; missing one of “p”, “h1″, “h2″, “h3″, “h4″, “h5″, “h6″, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag.

… rel=’nofollow’ class=’dem-vote-link’>View Results

3:09 pm on 2/11/2007 179. Scott at Real Epicurean

Jason: In class.php simply add the p tags either side of the offending “input” lines.

Now my question: Why wont my deactivated polls close? They’re still accepting votes.

3:53 pm on 2/11/2007 180. Jason

OK fixed 4 of the 5. I think this is because this div is inside the a -p-. Can’t find the -p- that preceeds this div in the class.php though, any suggestions. Here it is:

Error Line 90 column 23: document type does not allow element “div” here; missing one of “object”, “ins”, “del”, “map”, “button” start-tag.

-div class=’democracy’-

The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as “

” or “

“) inside an inline element (such as ““, ““, or ““).

6:46 pm on 2/11/2007 181. Ashish Mohta

I would love to use it, as it can be presented within the post.Is it wp 2.1 compaitable.?

Ashish

10:08 am on 2/12/2007 182. PrivacyMinded

I need to run some sensitive polls, and hence I need to guarantee the privacy of the voters. I must NOT be able to easily link the answers to the IPs/identities of the voters. And nobody else, either.

This means that no cookie should contain any information that relates to the answer given, and that the IP address is not linked with the actual vote given.

I know that I could alter the scripts to log and track anything, but I do not want to do it - and I do not want to store such data that could be compromized later.

Does Democracy provide any privacy?
What is that number stored inside the cookie?

Thanks.

ps. It’s a great great plugin.

11:50 am on 2/12/2007 183. Jason

I went through the code as much as I could and cannot find the -p- that is inserted on the highest level. It goes -div- -p- -div class democracy-. I want to remove the -p- because I believe it is causing the validation error everyone is getting. Where is it inserted in the code. Here is the error:

Error Line 90 column 23: document type does not allow element “div” here; missing one of “object”, “ins”, “del”, “map”, “button” start-tag.

-div class=’democracy’-

The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as “

” or “
“) inside an inline element (such as ““, ““, or ““).

1:32 pm on 2/12/2007 184. PrivacyMinded

setcookie(”demVoted_{$this->id}”, $answer, time()+$cookie_last, COOKIEPATH);

— oh shit.

I guess it is enough to just replace that $answer with “GARBAGE”? Right?

2:07 pm on 2/12/2007 185. PrivacyMinded

PanicMode->Off

Problem solved. Changed code:

setcookie(”demVoted_{$this->id}”, “ANSWER_NOT_STORED_IN_COOKIE”, time()+$cookie_last, COOKIEPATH);

After this modification, there is no answer anymore inside the cookie.

I hope that this doesn’t break anything…

Can we have this as a feature?
Thanks.

5:54 pm on 2/12/2007 186. Jason

I just encircled the -div class=democracy - with an object to shut it up. Its now valid…

10:46 am on 2/16/2007 187. David

Bugfix for SQL “Duplicate entry” messages in the admin menu:

In democracy.php, edit lines 135 and 138, and change the table names to lower case, like so:

——— REPLACE: ————–
135: $first_time = $wpdb->get_var(”SHOW TABLES LIKE ‘{$table_prefix}democracyQ’”) != $table_prefix.”democracyQ”;

138: $upgrading = !$first_time && $wpdb->get_var(”SHOW TABLES LIKE ‘{$table_prefix}democracyIP’”) != $table_prefix.”democracyIP”;

———- WITH THIS: ——————-
135: $first_time = $wpdb->get_var(”SHOW TABLES LIKE ‘{$table_prefix}democracyq’”) != $table_prefix.”democracyq”;

138: $upgrading = !$first_time && $wpdb->get_var(”SHOW TABLES LIKE ‘{$table_pref