This plugin is designed to automatically add a “Digg This” badge to your articles that already have some popularity on Digg. This way you can automatically add badges to your articles without having a bunch of “1 Digg” articles.
Note on WordPress version: This should work on earlier versions. However, it’s only been tested on Versions 2.3.3 and up. If you successfully use the plug-in on an earlier version of WordPress, please leave a comment at the plugin homepage so that I can update the information in this readme.
Follow the normal WordPress Plugin procedures – no special template tampering is required.
- Upload ‘wp-digg-conditional.tar.gz’ to your plugins folder.
- Uncompress the archive, preserving the folder structure.
- Activate the plug-in through the “Plugins” section of your dashboard.
- (Optional) Edit the $minDiggs variable in “check-digg-stats.php” to customize the number of Diggs are article needs to receive a badge.
How do I customize the number of Diggs it takes to be considered “popular?”
In future versions, this will be added as an option to the plug-in in your dashboard. In the meantime, you can manually change this value in the “check-digg-stats.php” page.
Look for the declaration of $minDiggs. It should be set to 10. Change ’10’ to whatever value you want to use as a benchmark.
Do I have to link to prototype.js again if I’m already using it?
Can I see it in action, please?
Sure. This article on PHP image functions has enough Diggs to get a badge.
How can I get an answer to a new question?
If you have a problem, question, or feature request, you can send them my way and I’ll deal with them when I have the time.
The easiest way would be to go to the plug-in homepage and leave a comment.
Contributors & Developers
“WP Conditional Digg This Badge” is open source software. The following people have contributed to this plugin.
Interested in development?
- The div created by the plug-in is no longer removed from the page if a badge is not going to be inserted. The DOM code for this may have broken a page in IE in some cases. This clean-up feature will be back in later versions, once the bug has been fixed.
- Tweaked the way the styling of the div to fix a bug in IE. It should now correctly float in both IE and Firefox.