Das Wort Vote, welches auf eine Straße gemalt wurde und dessen erster Buchstabe aus Füßen gebildet wird.

WordPress Plugin: dB Twtpoll

Just to say it before anyone complains. This is my first public released plugin for WordPress and I´m not used to write english posts as you can tell if you look around a bit.

What´s this all about?

I like to create polls with Twtpoll, a neat little service to create votings with your account from Twitter.

These polls can be embedded in a website by using two lines of javascript code. That´s not a difficult thing to do, but it´s somehow inflexible. After embedding a poll you have javascript code directly in your post. That´s a bad thing because of three simple reasons:

  1. It´s not to easy to read. Especially for people that don´t speak HTML.
  2. If the code for embedding a poll gets changed in future you have to look through all your posts with polls and update it.
  3. Your feed subscribers could by chance not be able to view the poll, because script tags are filtered by their feedreader. If this is the case and you are using this plugin a fallback will be shown with a link to the original post.

So, where to get the plugin?

At this very moment it isn´t listed in the Plugin Directory at WordPress. So you can only download it from here.

DOWNLOAD

How do I install the plugin now?

That´s as easy as always with WordPress. Unpack the archive, upload it to your wp-content directory and activate it at the plugins page.

I installed it. How do I embed polls?

That´s really easy. Just add the shortcode [ twtpoll] with the attribute id anywhere in your post (without spaces). After this the poll will be shown at this exact position.

For now it is not possible to read and copy the ID of your poll from anywhere on Twtpoll. Sounds confusing, but you can get the ID if you take a look at the URL in your browsers address bar. The last part of it is the ID you need to include your poll. Just copy it and paste it within the shortcode, e.g. [ twtpoll id="d6iby3"] (without spaces).

Something else?

Nope. Not really. I just hope you have fun with this plugin and my English wasn´t too bad. If you encounter any spelling or grammar errors please share this knowledge with me in the comments.

One more thing. If you have a nice idea to extend the plugin don´t hesitate to let me know in the comments. I appreciate every feedback.

10 Kommentare

  1. When I try to activate the plugin it is giving me an error message.
    Parse error: syntax error, unexpected T_ARRAY, expecting ‚)‘ in C:Inetpubvhostsutahhousedemocrats.orghttpdocswp-contentpluginsdb-twtpolldB-Twtpoll.php on line 17

    What’s it lookin for?

    1. Hi Emily,

      thanks for trying my plugin. What PHP version are you running on your blog? The only thing I can think about causing this error would be the PHP version is not up to date enough. I´ll check this tomorrow and let you know

    2. Hi again,

      I checked what could cause this error message and it really is your version of PHP. You have to use at least PHP 5 to run the plugin. I´ll add this to the description with the next update.

      Sorry for this, but I don´t want to programm things for older versions of PHP with no support.

  2. Hi,

    thanks for this plugin. It looks great.

    I’ve done as you said but can’t see the poll anywhere. I’ve written a new post and in the html I have embbeded the code [twtpoll id=“6i3k35″], but then when I publish the post it does not show up…
    any idea?
    thanks
    sergi

  3. Hey,

    so I have to write in Englisch because this post is in? Well, I launched my new blog and now I need a great voting plugin for WordPress. Thank you for this plugin that is almoast in easy.

    Bye
    Nick

Kommentar hinterlassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.