• 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.

    For more information and the download: http://blog.jalenack.com/archives/democracy/

    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.

    Note, this version is Alpha. However, it’s been thoroughly tested by around 10 people without problems, so it’s nothing like my shoutbox plugin that was so terrible in the early days. Please report any errors you encounter with it in the comments below. If you like it, saying thank you is all I ask.

Viewing 15 replies - 16 through 30 (of 89 total)
  • Is it possible to order the poll results from greatest percentage of votes to least? Like this:

    Result1 – 25%
    Result2 – 13%
    Result3 – 5%
    Result4 – 2%

    This is an awesome plugin. Kudos to you. 😀

    Also, though this is unrelated, I thought you might like to know that IE6 on a screen resolution of 800×600 doesn’t view your website correctly. Your header is fine, but your content and sidebar gets shoved to the left. Without looking at your code, it sort of makes me wonder if a CSS layer container isn’t centered somewhere.

    Of course, it could just be this shit computer I’m on here at work. 😐

    Just thought I’d let you know in case you didn’t already. 🙂

    Thread Starter jalenack

    (@jalenack)

    Rafleet, it looks like you got it right. That is very strange. Have you figured it out yet?

    Editor, yeah….I found that bug last night. It is fixed in the svn, and I hope to release a new version some time. You can download the file here: http://dev.wp-plugins.org/file/democracy/trunk/democracy/democracy.php?rev=2681

    Also, that tells me that the javascript is not functioning properly. Perhaps your theme does not have <?php wp_head(); ?> in the header.php file

    juliano, cool. Note that that will only work with the AJAX for one poll per page. It should function though, without the AJAX. Get the fixed file I mentioned for Editor

    Leliathomas, that should be easy enough. I’ll make it an option for the next version 🙂 … I had no idea about my site. I’ve got a huge 23″ monitor and a Mac (I’ve got virtual PC though). I just checked and there is indeed a problem…Thanks for the heads up.

    Finally, I’ll be gone this weekend, but after that I can deliver more Democracy update goodness. Cya

    Your plugin don’t like PERMALINKS.

    The requested URL /operario/&jal_no_js=true was not found on this server.

    If you can fix it, please send me a “ping” at: rslonik[at]gmail[dot]com

    Thread Starter jalenack

    (@jalenack)

    rslonik, it’s designed to work with them. The problem you experienced is a bug that I highlighted earlier and I will update the download very soon.

    By the way, you should only be getting that error if you have javascript off or if you modified the header.php to get rid of the necessary hook: <?php wp_head(); ?>

    It is supposed to work with javascript both on and off, but the bug I mentioned is making it nonfunctional with javascript off. I’ll update it!

    ok, i don’t know if my js is on or off.
    I’ve made my own template, can this be a problem ?

    I’ll watch this post by RSS,
    -waiting the update…

    ya’s

    Thread Starter jalenack

    (@jalenack)

    Ok, I’ve updated the download. Democracy Beta 1 fixes this and a small css problem in IE. It also allows you to set the order of the results, by vote or by id. Just change the options in the democracy.php file.

    rslonik, yes that could be a problem, but it is easy to fix. When I made my first theme, I did not know what <?php wp_head(); ?> did, so I deleted it. You may have done that too. Here’s how to fix it:

    open the header.php file of your theme. Then, anywhere inside the <head> element, add <?php wp_head(); ?> To make sure it works, have my plugin active and then View Source. Somewhere near the top, you should see <!– Added by Democracy Beta 1 –> or something like that, and then a reference to a css file and a javascript file. That means you’re set up correctly.

    P.S. I’m going to be gone over the weekend, so get out your questions now or possibly early tomorrow morning. Cheers

    Jalenack: actually, it started working immediately after my post here 🙂
    I kept the old version, updated to Semiologic 2.5.4, and it keeps working….

    Thread Starter jalenack

    (@jalenack)

    Another update is done. Fixes IP logging and validation errors, and many other things. Get it now!

    Do you know why, in IE, I’m getting boxes around the radio buttons? I’m sure it’s simple, but I’m still learning CSS, etc.

    Also, this only works with one poll on the screen at a time, correct? So there’s no good way to show all the past polls on a single page?

    Thread Starter jalenack

    (@jalenack)

    richschmidt, this is probably because your theme puts borders around all input elements. Try this CSS:

    #democracy label input {
    border: 0;
    }

    For the other question, I’m working on an archive function that will display past polls. I’ve got a ton on my plate right now, so have patience and I’ll get to that as soon as I can.

    What I need to center the VOTE bottom on sidebar?

    I will like do to same for TAG question…

    Tnx

    Rock on!! I’m so sick of screwing with WP-Poll’s faulty syntax and horrid output.

    I can’t wait to dive into this one. And AJAX, to boot! Thanks a bunch, Andrew!

    Can someone post a link to the newest download please? I’ve only found the “alpha” version. (No doubt I’m getting something mixed up.)

    Thread Starter jalenack

    (@jalenack)

    Sure thing,

    http://blog.jalenack.com/archives/democracy/ is the plugin page

    Direct download: http://blog.jalenack.com/downloads/download.php?id=6

    Jesstech, glad you like it 🙂

Viewing 15 replies - 16 through 30 (of 89 total)
  • The topic ‘[NEW PLUGIN] Democracy AJAX Poll’ is closed to new replies.