Version 2.0.0 Released Sunday March 9th, 2008

Dzone.com released a widget that bloggers can embed into their pages to display the number of votes that a web page currently has on Dzone.

Information on the widget can be found at http://www.dzone.com/buttons.jsp

To make it easier to embed this into your wordpress blog, rockstarapps.com has created a Wordpress plugin that allows you to selectively add the widget to posts. Bloggers can turn on the Dzone widget just for certain posts and override the url setting of the widget right from inside your blog post page.

To download the plugin, "Click Here"

Instructions for the plugin can be found in the readme.txt file. Once the plugin is installed into your Blog every post will be given a DZone widget. I know this is may not be optimal, so you can go to the dzone options page and customize the settings.

Step to using

  1. Install the plugin
  2. Activate the plugin
  3. Go to the options page for the dzone widget and Customize the settings
  4. Edit the entry you want to display widget on and check the display widget check box at the box of the page and click save

Customize Template

You will need to add the following code to your post.php template file.


   
   





Place the above code where ever you want the Dzone widget to appear in your post. This is typically done by modifying the post.php or index.php. To get the post to show up on the rockstarapps.com blog, I changed the post.php file under my template folder to have the following php code. This code makes the vertical Dzone widget display to the right of the post "Title" and "Date". There are many ways to write the html to make this happen, so where ever you want the widget, just place the code snippet from above.

 

Post Options

Wordpress Post Options

Each post has "DZone" Section that allows you to configure if you want to show the dzone widget. Not all posts are Dzone worthy

"Display DZone Widget" - Display the dzone widget for this entry, "Check" to display

"Override URL prefix for this post" - This setting will provide a custom prefix to the posts URL that will be used to load the DZone widget. If not set, the url will be based on the current URL.

I noticed over the course of time that I didn't use the same name or the same url for the dzone entries. For many of my posts I left off the "www". This setting allows me to override the prefix for the post.

DZone Plugin Options

Wordpress Dzone PluginOptions

Use these settings to customize the plugin functionality.

Need help or want to send feedback, email labs [at] rockstarapps [dot] com