This plugin allows simple embedding of MEMEdex flash polls into your WordPress posts, or into your sidebar, by using a short tag.
The MEMEdex WordPress plugin allows you to add MEMEdex polls to your WordPress posts by adding a short tag to your post where you want the poll to appear. Your users can vote on polls you create from within your site without ever leaving your WordPress blog (in fact, they don't even have to leave the page!). When users vote, their results get tallied by MEMEdex, and the results of the poll are displayed. All of this uses version 1.0 of the MEMEdex API, but all you need to know is how to use the WordPress tag.
New for version 1.2: You will now find a MEMEdex Poll tab under the Write menu item. You can create polls from here, and the plugin will return the full tag you need to copy and paste into your polls. This is the simplest, fastest way to use the plugin.
Version 1.3 fixes a compatibility issue with PHP4. If you are using PHP4, you will not be able to create polls directly inside WordPress. You will need to create your polls at MEMEdex.To embed a poll in a post:
Just add a tag to your post in the form:
Where PARAMS is a # delimited list of paramters specifying how the poll should be rendered. You can have 0, 2, 3 or 4 paramters (but most people will use 2), and they must be in the correct order.
For example, if you created a poll at memedex.com with the id 476777, you would embed it in your post using the following tag:
If you wanted to retrieve a random poll that user stromdotcom created, use the following tag:
If you just want to embed any old random poll, use the simplest form of the tag:
Possible values for the request_type field are:
Note: the category request_type expects request_value to be an integer. You can get a list of integer category codes at http://www.memedex.com/categories.php
The width and height parameters (params 3 and 4) are uncommon, but they allow you to specify a custom widht and height for the flash object. They are not recommended, however, because the flash doesn't look that great in anything but the default size.To embed a poll in your theme:
You can also add a poll to your theme file, for example, in the sidebar. To do this, use the template tag:
<?php get_memedex_embed_poll(); ?>
The template tag supports the same parameters as the post tag, in the same order. So to grab a random poll from MEMEdex user stromdotcom, use the following tag:
<?php get_memedex_embed_poll("username", "stromdotcom"); ?>