Pro users can now specify browser specific iframes. This is imporant especially for the "Show only part of the iframe" feature where browser differences of a few pixels can matter. But you can use this for other things as well because mobile, iphone, ipad can also be detected.

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.

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 separaring 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.

Example 1 - Special settings for IE 10 and IE 11

[advanced_iframe '.$securitykeyString.'id="example1" show_part_of_iframe_x="25" browser="ie(10),ie(11)"]
[advanced_iframe '.$securitykeyString.'id="example1" show_part_of_iframe_x="20" browser="default"]

Example 2 - Special settings for IE, Firefox and Chrome

[advanced_iframe '.$securitykeyString.'id="example2" show_part_of_iframe_x="25" browser="ie"]
[advanced_iframe '.$securitykeyString.'id="example2" show_part_of_iframe_x="23" browser="firefox,chrome"]
[advanced_iframe '.$securitykeyString.'id="example2" show_part_of_iframe_x="20" browser="default"]

Example 3 - Show a different iframe on iframe on apple devices and mobile devices

[advanced_iframe '.$securitykeyString.'id="example3" src="apple iframe" browser="iphone,ipad,ipod"]
[advanced_iframe '.$securitykeyString.'id="example3" src="other mobile devices iframe" browser="mobile"]
[advanced_iframe '.$securitykeyString.'id="example3" src="normal iframe" browser="default"]

Configuration options

The following options for most common browsers can be used:

Credit and update

Advanced iFrame Pro uses an integrated browser detection which is based on the wordpress plugin php-browser-detection 3.2.

If the automatich update does not work you can get an updated version of the browsercap.ini lite file here: http://browscap.org/
Please use the light version as it conains all settings for the provided settings !

If you want to update the browser detection file get the lite_php_browscap.ini from there and rename it to php-browser-detection/cache/browscap.ini.
Or always get the latest version of the advanced iframe pro plugin. This file is also updated there!

', 'advanced-iframe'); } ?>