{"id":35344,"date":"2015-03-25T20:02:29","date_gmt":"2015-03-25T20:02:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/auto-iframe\/"},"modified":"2024-12-02T20:20:45","modified_gmt":"2024-12-02T20:20:45","slug":"auto-iframe","status":"publish","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/auto-iframe\/","author":8805794,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0","stable_tag":"2.0","tested":"6.6.5","requires":"3.0","requires_php":"","requires_plugins":null,"header_name":"Auto iFrame","header_author":"Greg Ross","header_description":"","assets_banners_color":"ffffff","last_updated":"2024-12-02 20:20:45","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/toolstack.com\/donate","header_plugin_uri":"http:\/\/toolstack.com\/auto-iframe","header_author_uri":"http:\/\/toolstack.com\/","rating":3.6,"author_block_rating":0,"active_installs":4000,"downloads":88214,"num_ratings":18,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.5":{"tag":"0.5","author":"GregRoss","date":"2015-03-25 20:03:04"},"1.0":{"tag":"1.0","author":"GregRoss","date":"2015-05-15 19:44:53"},"1.1":{"tag":"1.1","author":"GregRoss","date":"2015-08-11 13:55:59"},"1.2":{"tag":"1.2","author":"GregRoss","date":"2016-09-09 23:54:27"},"1.3":{"tag":"1.3","author":"GregRoss","date":"2016-09-27 20:35:00"},"1.4":{"tag":"1.4","author":"GregRoss","date":"2016-12-08 21:43:04"},"1.5":{"tag":"1.5","author":"GregRoss","date":"2017-06-08 22:03:16"},"1.6":{"tag":"1.6","author":"GregRoss","date":"2020-04-05 19:15:21"},"1.7":{"tag":"1.7","author":"GregRoss","date":"2023-12-03 02:45:56"},"1.8":{"tag":"1.8","author":"GregRoss","date":"2024-10-08 00:56:38"},"1.9":{"tag":"1.9","author":"GregRoss","date":"2024-10-24 14:51:16"},"2.0":{"tag":"2.0","author":"GregRoss","date":"2024-12-02 20:20:45"}},"upgrade_notice":{"":"<p>None at this time.<\/p>"},"ratings":{"1":5,"2":1,"3":1,"4":0,"5":11},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3164574,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3164574,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3164574,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.5","1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3164574,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Post with short code."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1860,2703],"plugin_category":[],"plugin_contributors":[77755],"plugin_business_model":[],"class_list":["post-35344","plugin","type-plugin","status-publish","hentry","plugin_tags-iframe","plugin_tags-resize","plugin_contributors-gregross","plugin_committers-gregross"],"banners":{"banner":"https:\/\/ps.w.org\/auto-iframe\/assets\/banner-772x250.jpg?rev=3164574","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/auto-iframe\/assets\/icon-128x128.png?rev=3164574","icon_2x":"https:\/\/ps.w.org\/auto-iframe\/assets\/icon-256x256.png?rev=3164574","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/auto-iframe\/assets\/screenshot-1.png?rev=3164574","caption":"Post with short code."}],"raw_content":"<!--section=description-->\n<p>A quick and easy shortcode to embed iframe's that resize to the content of the remote site.<\/p>\n\n<p>Auto iFrame shortcode is in the format of:<\/p>\n\n<pre><code>[auto-iframe link=xxx tag=xxx width=xxx height=xxx autosize=yes\/no]\n<\/code><\/pre>\n\n<p>Where:<\/p>\n\n<ul>\n<li>link = the url of the source for the iFrame.  REQUIRED.<\/li>\n<li>tag = a unique identifier in case you want more than one iFrame on a page.  Default = auto-iframe.<\/li>\n<li>width = width of the iFrame (100% by default).  Can be % or px.  Default = 100%.<\/li>\n<li>height = the initial height of the iframe (100% by default).  Can be % or px.  Default = 100%.<\/li>\n<li>autosize = enable the auto sizing of the iFrame based on the content.  The initial height of the iFrame will be set to \"height\" and then resized.  Default = true.<\/li>\n<li>fudge = a fudge factor to apply when changing the height (integer number, no \"px\").  Default = 50.<\/li>\n<li>border = enable the border on the iFrame.  Default = 0.<\/li>\n<li>scroll = enable the scroll bar on the iFrame.  Default = no.<\/li>\n<li>query = pass the parent's page query string to the iFrame.  Default = no.<\/li>\n<\/ul>\n\n<p>Note: Auto re-sizing of the iFrame for cross domain sites does not work, this is a security protection provided by the browser and there is no way around it.<\/p>\n\n<p>Now supports (Shortcode UI)[https:\/\/github.com\/fusioneng\/Shortcake] (aka Shortcake)!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the archive file into your plugins directory in the auto-iframe folder.<\/li>\n<li>Activate the plugin in the Plugin options.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='the%20autosize%20function%20doesn%27t%20work%2C%20what%27s%20wrong%3F'><h3>The autosize function doesn't work, what's wrong?<\/h3><\/dt>\n<dd><p>The first thing to check is that the source of your content is in the same domain namespace as your site, using a link from another domain name will not work as it would be a cross site scripting risk.  This is part of your browsers security structure and cannot be worked around.<\/p>\n\n<p>After that, check your browsers console for any JavaScript errors that may be happening, there may be conflicting JavaScript on the page causing an error.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0<\/h4>\n\n<ul>\n<li>Release date: December 2, 2024<\/li>\n<li>Fixed: Escape all link parameters.<\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>Release date: October 23, 2024<\/li>\n<li>Fixed: Don't allow links that are javascript code.<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>Release date: October 7, 2024<\/li>\n<li>Fixed: Escape tag attribute to avoid javascript injection.<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>Release date: July 10, 2022<\/li>\n<li>Fixed: unset array key warning for php 8 when scroll is set but autosize hasn't been.<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>Release date: February 21, 2018<\/li>\n<li>Added: name attribute to the iframe.<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Release date: March 31, 2017<\/li>\n<li>Fixed: WP_DEBUG and JavaScript errors when the auto resize option was not used.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Release date: November 11, 2016<\/li>\n<li>Added: Query support<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Release date: September 27, 2016<\/li>\n<li>Fixed: Fudge factor being ignored when autosizing the iframe.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Release date: November 6, 2015<\/li>\n<li>Fixed: Height parameter was being ignored, thanks vantron.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Release date: August 11, 2015<\/li>\n<li>Fixed: Make sure to check the frame element and sub-objects exist before using them later.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Release date: May 15, 2015<\/li>\n<li>Added Shortcode UI support (see https:\/\/github.com\/fusioneng\/Shortcake for details)<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Release date: March 25, 2015<\/li>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"A quick and easy shortcode to embed iframe&#039;s that resize to the content of the remote site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35344"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gregross"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35344"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35344"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35344"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35344"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35344"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}