{"id":45120,"date":"2011-04-11T21:35:59","date_gmt":"2011-04-11T21:35:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/forced-download\/"},"modified":"2011-04-11T23:13:20","modified_gmt":"2011-04-11T23:13:20","slug":"forced-download","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/forced-download\/","author":1481443,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.4","stable_tag":"trunk","tested":"3.1.4","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Forced Download","header_author":"Aaron Reimann","header_description":"","assets_banners_color":"","last_updated":"2011-04-11 23:13:20","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/sideways8.com\/donate","header_plugin_uri":"http:\/\/www.sideways8.com\/plugins\/forced-download","header_author_uri":"http:\/\/www.aaronreimann.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1539,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","other_notes"],"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.1","1.0.2","1.0.4"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[568,8586,91326],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-45120","plugin","type-plugin","status-closed","hentry","plugin_tags-download","plugin_tags-force","plugin_tags-forced","plugin_committers-areimann"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/forced-download.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Force a user to download a file instead of them being opened in a browser.  For example, a .mov would not open in the browser, it will ask you to save it.  All you have to do is change the &lt;a href=\"\"&gt; to be in the class \"forced-download\". So simply add class=\"forced-download\" to the link and you are good to go.<\/p>\n\n<!--section=installation-->\n<p>Unzip and upload the plugin into the plugins directory and then activate it.  Once it is active, you can change a \"a href\" from:<\/p>\n\n<p>&lt;a href=\"mysite.lan\/wp-content\/uploads\/something.jpg\"&gt;Download my picture&lt;\/a&gt;\nto\n&lt;a href=\"mysite.lan\/wp-content\/uploads\/something.jpg\" class=\"forced-download\"&gt;Download my picture&lt;\/a&gt;<\/p>\n\n<p>Then the user will be prompted to download it, instead of it being displayed in the browser.\nThis should work with: pdf,doc,xls,ppt,gif,png,jpg,mp3,wav,mpg,mov,avi, etc.<\/p>\n\n<!--section=faq-->\n<p>Why can't I get this to work?<br \/>\nChances are you moved where wp-content resides.  I have tried to modify my plugin to find the file 'wp-blog-header.php' in the root of your WordPress install.  There is a file in the plugin called download.php.  Because this plugin directly calls download.php, it really needs to know where WordPress is.\n<br \/>\n<br \/>\nWhy am I getting a '404 Error' or 'File Not Found' error?<br \/>\nBecause some hosting is a little more strict, and some security plugins stop you from accessing download.php directly, you will get this error.  I am more than willing to help you, you still can get this to work but you will have to tweak the plugin.<br \/><\/p>\n\n<!--section=other_notes-->\n<h3>What browsers does this work in?<\/h3>\n\n<p>Honestly, I don't know.  I tested some basic browsers like IE7, IE8, Firefox 3.6 and Chrome 8.<\/p>\n\n<h3>How do I get support?<\/h3>\n\n<p>Easily, ask.  I'll do my best to fix if there is a bug.  If it is a feature request I will see what I can do, but I can't make promises.<\/p>","raw_excerpt":"Stable 1.0.4\n\nThis forces a download (vs. show up in your browser) for any &quot;a href&quot; that has the class &quot;forced-download&quot;.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/45120","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=45120"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/areimann"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=45120"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=45120"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=45120"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=45120"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=45120"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=45120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}