{"id":2552,"date":"2008-02-23T15:50:36","date_gmt":"2008-02-23T15:50:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/conditional-digg-this-badge\/"},"modified":"2008-03-02T02:07:04","modified_gmt":"2008-03-02T02:07:04","slug":"conditional-digg-this-badge","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/conditional-digg-this-badge\/","author":228351,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"trunk","tested":"2.3.3","requires":"2.3.3","requires_php":"","requires_plugins":"","header_name":"Conditional Digg Badge","header_author":"Brian Rock","header_description":"","assets_banners_color":"","last_updated":"2008-03-02 02:07:04","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.earn-web-cash.com\/scripts-plugins-and-modules\/wp-plugin-digg-badge\/","header_plugin_uri":"http:\/\/www.earn-web-cash.com\/scripts-plugins-and-modules\/wp-plugin-digg-badge\/","header_author_uri":"http:\/\/www.earn-web-cash.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2391,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Here you can see where the Digg badge is inserted.  It floats to the left at the very top of the article."}},"plugin_section":[],"plugin_tags":[1537,499],"plugin_category":[56],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-2552","plugin","type-plugin","status-closed","hentry","plugin_tags-digg","plugin_tags-social-bookmarking","plugin_category-social-and-sharing","plugin_committers-slowwalkere"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/conditional-digg-this-badge.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n <p>The plug-in inserts some Javascript into your articles.  This Javascript allows the plug-in to access the Digg API.  Through the API, the plug-in determines if your article has enough Diggs (by default: 10).  If it does, the \"Digg This\" badge is displayed.  Otherwise, the Javascript is deleted and no badge is shown.<\/p>\n <p>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.<\/p>\n\n<!--section=installation-->\n<p>Follow the normal Wordpress Plugin procedures - no special template tampering is required.<\/p>\n <ol>\n<li>Upload 'wp-digg-conditional.tar.gz' to your plugins folder.<\/li>\n<li>Uncompress the archive, preserving the folder structure.<\/li>\n<li>Activate the plug-in through the \"Plugins\" section of your dashboard.<\/li>\n<li>(Optional) Edit the $minDiggs variable in \"check-digg-stats.php\" to customize the number of Diggs are article needs to receive a badge.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>How do I customize the number of Diggs it takes to be considered \"popular?\"<\/h4>\n <p>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.<\/p>\n <p>Look for the declaration of $minDiggs.  It should be set to 10.  Change '10' to whatever value you want to use as a benchmark.<\/p>\n <h4>Do I have to link to prototype.js again if I'm already using it?<\/h4>\n <p>No.  As long as you have a site-wide link in to the external javascript file prototype.js, you can comment out the line in the plug-in that adds a reference to it.<\/p>\n <p>Open \"wp-digg-conditional.php\".  Scroll down to about line 37.  Comment out the line that creates a javascript element with src \"$root . '\/wp-content\/plugins\/wp-digg-conditional\/prototype.js\".<\/p>\n <h4>Can I see it in action, please?<\/h4>\n <p>Sure.  This article on <a href=\"http:\/\/www.earn-web-cash.com\/2008\/01\/30\/resize-images-php\/\" title=\"How to Use PHP to Dynamically Resize Images\">PHP image functions<\/a> has enough Diggs to get a badge.<\/p>\n <h4>How can I get an answer to a new question?<\/h4>\n <p>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.<\/p>\n <p>The easiest way would be to go to the <a href=\"http:\/\/www.earn-web-cash.com\/scripts-plugins-and-modules\/wp-plugin-digg-badge\/\" title=\"Conditional Digg This Plugin Homepage\">plug-in homepage<\/a> and leave a comment.<\/p>\n\n<!--section=changelog-->\n<p><strong>Version 1.1<\/strong><\/p>\n <ol>\n<li>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.<\/li>\n<li>The plug-in now only operates on single pages (posts and pages).  The multiple requests on index pages were causing other Javascript functions (like Google Analytics) to hang and not load properly.<\/li>\n<li>Tweaked the way the styling of the div to fix a bug in IE.  It should now correctly float in both IE and Firefox.<\/li>\n<\/ol>","raw_excerpt":"This plugin checks how many Diggs an article has, and shows a &quot;Digg This&quot; badge if it already has 10 Diggs.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2552"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/slowwalkere"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2552"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2552"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2552"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2552"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2552"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}