{"id":17493,"date":"2012-03-31T07:31:17","date_gmt":"2012-03-31T07:31:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/extend-upload\/"},"modified":"2013-03-15T19:33:23","modified_gmt":"2013-03-15T19:33:23","slug":"extend-upload","status":"publish","type":"plugin","link":"https:\/\/fr-be.wordpress.org\/plugins\/extend-upload\/","author":2740754,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.0.4","stable_tag":"0.0.4","tested":"3.5.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Extend WordPress Upload","header_author":"Gustavo Bordoni","header_description":"","assets_banners_color":"","last_updated":"2013-03-15 19:33:23","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/bordoni.me\/","header_plugin_uri":"http:\/\/bordoni.me\/wp\/plugins\/extend-upload","header_author_uri":"http:\/\/bordoni.me\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2193,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":{"0.0.4":"<p>Older version jQuery allowed, nailed it!<\/p>","0.0.3":"<p>Internationalization! Yipiii!<\/p>","0.0.2":"<p>To add the possibility to change the Insert to Post button on the thickbox<\/p>","0.0.1":"<p>This is the first version, give the plugin a try!<\/p>\n\n<p>If you want you can check the plugin on GitHub, I will update there then I will commmit here.<\/p>\n\n<p>https:\/\/github.com\/webord\/extend-upload<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.1","0.0.2","0.0.3","0.0.4"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2985,2275,11573,259],"plugin_category":[50],"plugin_contributors":[129818],"plugin_business_model":[],"class_list":["post-17493","plugin","type-plugin","status-publish","hentry","plugin_tags-dev","plugin_tags-developer","plugin_tags-extend","plugin_tags-upload","plugin_category-media","plugin_contributors-webord","plugin_committers-webord"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/extend-upload.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>I had a problem that most of the time I had to upload a file, and I had to use a HTML upload, and that's kind of bad, so I created something to use the Thickbox and the WordPress Uploader.<\/p>\n\n<p>To use you must enqueue in the page used both the style and the script of the plugin:<\/p>\n\n<pre><code>&lt;?php\n    wp_enqueue_script( 'extend-upload' );\n    wp_enqueue_style( 'extend-upload' );\n<\/code><\/pre>\n\n<p>Then you can use the plugin by calling the jQuery Extends:<\/p>\n\n<pre><code>(function($) {\n    $(document).ready(function () {\n        $('.uc-call').callUpload();\n    });\n})(jQuery.noConflict());\n<\/code><\/pre>\n\n<p>And the HTML\/PHP output should be something like that:<\/p>\n\n<pre><code>&lt;?php\n    $args = array( \n        'url' =&gt; admin_url( 'media-upload.php?post_id=0&amp;button=' . rawurlencode('Use as Avatar') . '&amp;TB_iframe=1&amp;width=640&amp;height=253' )\n    );\n?&gt;\n&lt;p class='uc-container'&gt;\n    &lt;label&gt;&lt;?php echo _e( \"Avatar:\" ); ?&gt;&lt;\/label&gt;&lt;a target='_blank' class='uc-call' data='&lt;?php echo json_encode( $args ); ?&gt;'&gt;&lt;small&gt;&lt;?php _e( \"Upload the Photo\" ); ?&gt;&lt;\/small&gt;&lt;\/a&gt;\"; ?&gt;\n    &lt;input class=\"uc-answer\" type=\"text\" value=\"&lt;?php echo ( is_numeric( absint( $avatar ) ) ? absint( $avatar ) : esc_url($avatar) ); ?&gt;\" \/&gt;\n&lt;\/p&gt;\n<\/code><\/pre>\n\n<p>Having the <code>uc-call<\/code> for the link, <code>uc-answer<\/code> with the input field and <code>uc-container<\/code> for the box with both the link and the input field.<\/p>\n\n<p>All the stuff is customizable by passing the variables in to the array <code>$args<\/code>, some stuff must be passed in the url, but later on I will add a easier way to do it.<\/p>\n\n<h3>Backlog<\/h3>\n\n<h4>0.0.4<\/h4>\n\n<ul>\n<li>Older version of jQuery allowed and allowing non Image Media to be used<\/li>\n<\/ul>\n\n<h4>0.0.3<\/h4>\n\n<ul>\n<li>Fixed some bugs and added internationalization<\/li>\n<\/ul>\n\n<h4>0.0.2<\/h4>\n\n<ul>\n<li>Added the javascript to change the Insert to Post text on the thickbox<\/li>\n<\/ul>\n\n<h4>0.0.1<\/h4>\n\n<ul>\n<li>Using the the thickbox with the uploader iFrame inside you can call this from any page that has the script enqueued<\/li>\n<\/ul>","raw_excerpt":"A plugin for developers to Extend WordPress upload to be able to use it at any place.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/17493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=17493"}],"author":[{"embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/webord"}],"wp:attachment":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=17493"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=17493"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=17493"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=17493"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=17493"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=17493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}