Documentation Advanced Iframe Pro
Documentation Advanced Iframe Pro
Version 2022.x
Include content the way YOU like in an iframe that can hide and modify elements and forward
parameters. You can also embed content directly or show a part of an iframe.
1 Table of content
1 Features of Advanced iFrame Pro ................................................................................................... 3
2 Installation ....................................................................................................................................... 5
3.1 Wordpress ............................................................................................................................... 5
3.2 FTP ........................................................................................................................................... 5
3 Upgrade ........................................................................................................................................... 5
3.3 Wordpress ............................................................................................................................... 5
3.4 FTP ........................................................................................................................................... 5
4 Quick start guide ............................................................................................................................. 5
5 Administration ................................................................................................................................. 7
5.1 Default settings ....................................................................................................................... 7
5.2 Advanced settings ................................................................................................................... 7
5.3 Modify the parent page........................................................................................................... 7
5.4 Show only a part of the iframe ................................................................................................ 7
5.5 Resize the iframe to the content height/width ....................................................................... 7
5.6 Add additional files .................................................................................................................. 7
5.7 Include content directly .......................................................................................................... 7
6 Advanced iFrame Pro attributes...................................................................................................... 8
7 Frequently Asked Questions.......................................................................................................... 10
7.1 Shortcodes ............................................................................................................................. 10
7.2 If a shortcode does not work ................................................................................................ 10
7.3 How to use the iframe several times on the same installation ............................................. 10
7.4 If you use several iframes on the same page ........................................................................ 10
8 Advanced iFrame standalone ........................................................................................................ 11
9 Demo ............................................................................................................................................. 11
10 Browser detection ......................................................................................................................... 11
10.1 Setup...................................................................................................................................... 11
10.1.1 Example 1 - Special settings for IE 10 and IE 11 ............................................................ 11
1 / 12
10.1.2 Example 2 - Special settings for IE, Firefox and Chrome ............................................... 11
10.1.3 Example 3 - Show a different iframe on iframe on apple devices and mobile devices 12
10.2 Configuration options............................................................................................................ 12
10.3 Credit and update.................................................................................................................. 12
11 Changelog ...................................................................................................................................... 12
2 / 12
1 Features of Advanced iFrame Pro
By entering the shortcode '[advanced_iframe]' you can include any webpage to any page or article.
Security code: You can only insert the shortcode with a valid security code from the
administration if it is set in the administration. Since 7.5.4 this is optional!
Hide areas of the parent layout to give the iframe more space
Show only specific areas of the iframe even when the iframe is on a different domain or
include parts directly by jQuery
Modify css styles in the parent and the iframe (iframe only if on the same domain or when
you can use the workaround) to e.g. change the width of the content area (see screenshot)
Forward parameters to the iframe
Resize the iframe to the content height or width on loading, AJAX or click
Scroll the parent to the top when the iframe is loaded
Hide the content until it is fully loaded
Add a css and js file to the parent page
New 5.3: Browser detection: browser dependent iframes are possible
New 5.3: Modify link targets on the parent and in the iframe (external workaround)
New 5.3: Url forward parameter mapping
New 5.3: Redirect direct access of the iframe page to the parent page.
New 5.4: Zoom iframe content
New 5.4: Iframe loading icon
New 5.4: Accordion admin menu
New 5.4: Map parameter/value pairs to urls
New 5.5: Support for auto resize of hidden iframes.
New 5.6: Responsive iframes – Important: See this blog entry
New 5.6: Read-only iframes
New 5.7: html attribute allowfullscreen is now supported.
New 5.8: Shortcode generator
New 5.8: Set Iframe height by ratio
New 5.9: Lazy load of iframes with threshold, fadein and manual trigger
New 5.10: Resize iframe on element resize.
New 5.10: Write css as style directly to the header.
New 5.10: Add a css style to each parent element of the iframe
New 5.10: Support of shortcodes in the src attribute.
New 5.10: Dynamic src parameters
New 5.10: Include additional js to the iframe
New 6.0: Auto zoom
New 6.0: Lazy load with hidden elements
New 6.0: Support for the BBCode [iframe]url[/iframe]
New 6.0: Browser detection now supports tablets, android, androidtablet
New 6.3: Standalone version
3 / 12
New 6.3: Support of config files
New 6.3: Internal version check
New 6.4: Links to external pages can be opened in a simple fullscreen lightbox
New 6.4: The iframe url can be returned back to parent and added to the url
New 6.4: hide_part_of_iframe does now support links
New 6.4: Extract parts from the parent url and adds it to the iframe url.
New 6.4: Auto zoom by ratio
New 6.4: Add css directly to an iframe on the same domain
New 6.4: Improved documentation with filter search and help icons.
New 6.5: Full screen iframes
New 6.5: css calc() support for width and height
New 6.5: Tab navigation in the administration.
New 6.5: The browser detection is now supporting "browser" and "desktop".
New 6.6: "Change link targets and show the iframe as layer" can now have additional
headers
New 6.6: Scrolling support on ipad and iphone
New 6.6: Auto height for wrapped iframes
New 7.0 The „show iframe as layer feature“ has now a fullscreen mode with custom
header and footer!
New 7.0: Scrolling on ipad and iphone is supported!
New 7.0: Show only a port of an iframe support now zoom
New 7.x – show the readme.txt
Since 7.5.4 – Security key is optional
New 2019.x / 2020.x / 2021.x
See: http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-history
Please note: Modification inside the iframe are only possible if you are on the same domain or use a
workaround like described in the settings.
So please check first if the iframe page and the parent page are one the same domain.
www.example.com and text.example.com are different domains! Please check in the documentation
if you can use the feature you like
All settings can be set with shortcode attributes as well. If you only use one iframe please use the
settings in the administration because there each parameter is explained in detail and also the
defaults are set there.
4 / 12
2 Installation
3.1 Wordpress
1. Login to Wordpress administration and go to “Plugins” -> “Add new”. Select the “Upload”
tab. Select the zip file you got from codecanyon and click “Install now”.
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Place '[advanced_iframe]' in your pages or posts.
3.2 FTP
1. Upload the folder 'advanced-iframe' from the zip file to the '/wp-content/plugins ' directory.
Make sure the file advanced-iframe.php is in the directory /wp-content/plugins/advanced-
iframe
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Place '[advanced_iframe]' in your pages or posts.
3 Upgrade
Don’t use the automatic update offered by Wordpress. If you see a new version there don’t use this
update because it does remove your existing pro version and installs the free version again. There is
always an updated version on codecanyon available too!
3.3 Wordpress
Uninstall the plugin. Install the plugin like describe above.
3.4 FTP
Simply overwrite all files from your previous installation. This is also the case if you have used the
personal version you can get on wordpress.org. All your settings are stored in the database and don’t
get removed!
If you have some radio elements empty after the update simply select the one you like and save
again.
Please read the next chapter to get an overview what you can specify at the different sections.
6 / 12
5 Administration
Advanced iFrame Pro can be configured in the Wordpress Administration at
There you can specify all the default settings and you only have to include the shortcode. You have
the option to overwrite each setting directly in the shortcode by specifying shortcode attributes like
described in the next chapter.
Below is an overview of the different features. Please always read the documentation in the
administration that is provided for each section.
The security key has to be the one defined in the administration. If it is not there then it is not
needed in the short code. All other attributes are optional and do overwrite the settings you have
defined in the administration.
In the settings of Wordpress (Settings -> Advanced iFrame Pro) you find a
detailed description of each attribute.
You can also read “Advanced iFrame Pro attribute help.htm” in this folder for details of each
attribute. This does contain the same text as the administration but no interactive help.
8 / 12
map_parameter_to_url="" iframe_zoom=""
show_iframe_loader="" enable_responsive_iframe=""
tab_visible="" tab_hidden=""
allowfullscreen="" iframe_height_ratio=""
enable_lazy_load="" enable_lazy_load_threshold=""
enable_lazy_load_fadetime="" pass_id_by_url=""
enable_lazy_load_manual="" write_css_directly=""
resize_on_element_resize="" resize_on_element_resize_delay=""
add_css_class_parent="" auto_zoom=""
enable_lazy_load_manual_element=""
show_iframe_as_layer=="" auto_zoom_by_ratio=""
add_iframe_url_as_param="" add_iframe_url_as_param_prefix=""
reload_interval="" 'iframe_content_css=""
additional_js_file_iframe="" additional_css_file_iframe=""
add_css_class_iframe="" iframe_zoom_ie8= ""
enable_lazy_load_reserve_space="" hide_content_until_iframe_color=""]
Examples:
[advanced_iframe src="http://www.tinywebgallery.com"]
[advanced_iframe src="http://www.tinywebgallery.com" width="100%" height="500"]
[advanced_iframe src="http://www.tinywebgallery.com" width="100%" height="500"
url_forward_parameter="id" onload_resize="true"]
Since version 5.8 also a shortcode generator is included which does generate a default independent
shortcode with all current attributes.
9 / 12
7 Frequently Asked Questions
Find the latest FAQ here:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-faq/
7.1 Shortcodes
Please read the instructions in the administration careful. The documentation there should
explain all of your questions!
If a shortcode does not work please view the shortcode in the editor in text mode. If you
copy a shortcode directly from the settings maybe additional html is copied as well. And this
causes the shortcode to fail.
If you try a shortcode from the demos you have to remove the REMOVE_ME from the
shortcode and use your own security key.
7.3 How to use the iframe several times on the same installation
By default the settings from the settings are used. So you only have to use
[advanced_iframe]
If you want to use the advanced iframe several times you can overwrite all settings from the
settings directly in the shortcode. So for a different url you have to use:
[advanced_iframe src="http://www.tinywebgallery.com"]
If you use multiple iframes on the same page make sure that you give each shortcode a
different id! Otherwise an automatic id is generated to avoid conflicts on the page. If you use
the external workaround you need to specify this id on the remote page.
Cookies and additional_height are not supported yet when you use more than one iframe on
one page because they are used as global variables in the external js file. They work fine if
you use them on different pages.
10 / 12
8 Advanced iFrame standalone
Since version 6.3 the plugin can also be used standalone without a Wordpress installation and can
therefore be used e.g. in Joomla, Drupal or without a CMS.
Please read the readme.html in the “standalone” folder of the zip file.
9 Demo
See the demos here:
Pro:
Over 30 demos are available!
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo
Free:
http://www.tinywebgallery.com/blog/advanced-iframe/demo-advanced-iframe-2-0
10 Browser detection
Modern website designs are not pixel based anymore and depending on the features of the browser
they also look slightly different. So if you use the "Show only part of the iframe" feature it is possible
that the area you want to cut out of the website is at a slightly different place. You can also use the
browser detection to show different iframes for different browsers or even mobile devices.
10.1 Setup
If you want to have different iframe configurations depending on the browser you have to use the
shortcode attribute browser="" and define the browsers there which should be used for this
shortcode. See the different configuration options below. You can define several browsers by
separating them by, and even define browser versions by adding the versions with (version). Each of
the shortcodes which are browser dependent need to have the same id! The last shortcode should
have the attribute browser="default". This is then used if no browser does match before. If you don't
do this you can show iframes only for a specific browser.
11 / 12
10.1.3 Example 3 - Show a different iframe on iframe on apple devices and mobile devices
ie - Selects all versions of Internet Explorer. Also a version is supported. ie(10) selects IE10,
ie(11) selects IE11
safari - Selects all versions of Safari. Also a version is supported. Add the version in (). e.g.
safari(5)
firefox - Selects all versions of Firefox. Also a version is supported. Add the version in (). e.g.
firefox(20)
chrome - Selects all versions of Chrome. Also a version is supported. Add the version in ().
e.g. chrome(25)
opera - Selects all versions of Opera. Also a version is supported. Add the version in (). e.g.
opera(20)
ipad - Selects all versions of ipad.
ipod - Selects all versions of ipod.
iphone - Selects all versions of iphone.
mobile - Selects all mobile devices.
tablet – Selects all tablets
android – Selects all android devives
androidtablet – Selects all android tablets. So you should use this before android if you want
to show different iframes for android tables and smartphones.
browser – Selects all browser
desktop – Selects all desktop browsers
default - Is used if no other advanced iframe pro with the same id was selected before.
You can get an updated version of the browsercap.ini file here: http://browscap.org/
If you want to update the browser detection file get the php_browscap.ini from there and rename it
to php-browser-detection-browscap.ini.
Or always get the latest version of the advanced iframe pro plugin. This file is also updated here!
11 Changelog
See readme.txt
12 / 12