MEMEdex Polls

This plugin allows simple embedding of MEMEdex flash polls into your WordPress posts, or into your sidebar, by using a short tag.

Author:Rick Strom (profile at wordpress.org)
WordPress version required:2.0
WordPress version tested:2.5
Plugin version:1.3
Added to WordPress repository:13-03-2008
Last updated:11-04-2008
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://www.memedex.com/docs.php?doc=wordpress
Total downloads:12 911
Active installs:10+
plugin download
Click to start download

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:

[memedex: PARAMS]

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.

  1. The first paramter must be the REQUEST TYPE, specifying how MEMEdex should find a poll for you. See the list below for values that work here. If the tag is used with no parameters, random is the default.
  2. The second paramter narrows down the first paramter. So if you entered username for paramter 1, you would enter the username you want to retrieve a poll from. For pollid, enter the id of the poll you want to display. Similarly for category or keyword.
  3. Specify the width of the flash object (best left as the default)
  4. Specify the height of the flash object (best left as the default)

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:

[memedex: pollid#476777]

If you wanted to retrieve a random poll that user stromdotcom created, use the following tag:

[memedex: username#stromdotcom]

If you just want to embed any old random poll, use the simplest form of the tag:

[memedex:]

Possible values for the request_type field are:

  • username
  • pollid
  • category
  • keyword
  • random

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"); ?>