Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Unable to adjust iframe to content in PRO version
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4507
Page 2 of 2

Author:  favian [ 10. Jan 2018, 21:03 ]
Post subject:  Re: Unable to adjust iframe to content in PRO version

I just uninstalled the previous version, downloaded the new version with the ai.external.js fixed and installed it again. Isn't it a clean installation?

What do you mean with "hacked" files?

I've never seen the all frames button you mention.

What I think is that maybe there are some sort of conflict between Advanced Iframe and other resources. However, the first time I installed the free version it didn't have that problem. All started after installing the PRO version the first time.

Author:  TinyWebGallery [ 10. Jan 2018, 22:02 ]
Post subject:  Re: Unable to adjust iframe to content in PRO version

The code I have seen on your screenshot is not part of my code.
And yes. Removing all and install it again should be a clean install.

If you like I can take a look on your installation. You can send me a pm or a private e-mail how to access the installation.

Is the Javascript error gone?

btw. The code for the administration is 100% the same! In the free version you can show the administration of the pro version. The difference is on the files that renders the whole iframe and the Javascript.

Best, Michael

Author:  favian [ 11. Jan 2018, 00:06 ]
Post subject:  Re: Unable to adjust iframe to content in PRO version

Yes, the error was fixed with the new version. It's just that messy code ...

I wanted to ask you also about the Example 27: Resize on element resize on a different domain.

I'm trying to adapt it to my case and something is not right. I have:

- This code in the external page:

<script>
var updateIframeHeight = "true";
var hide_page_until_loaded_external = "true";
var write_css_directly = "true";
var resize_on_element_resize = "#programs";
var resize_on_element_resize_delay = "100";
var iframe_url_id = "ai_id";
var iframe_hide_elements = "#iframe-header,#iframe-footer";
var iframe_content_id = "#iframe-content";
var iframe_content_styles = "color:#ff0000";
</script>

<script src="http://<mydomain>/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>

- And the shortcode in my advanced iframe:

[advanced_iframe securitykey="****" use_shortcode_attributes_only="true" src="http://mywebpage" width="100%" height="500px" scrolling="no" id="advanced_iframe" pass_id_by_url="ai_id"]

I didn't understand well what the following parameters are (what they refer to):

var iframe_content_id = "#iframe-content"; // Where is supposed to go that id?
var iframe_url_id = "ai_id"; // Does this reference just the pass_id_by_url="ai_id" in the shortcode or it's supposed to go somewhere else?

See the error below:

Attachments:
Untitled.png
Untitled.png [ 5.18 KiB | Viewed 1725 times ]

Author:  TinyWebGallery [ 11. Jan 2018, 10:35 ]
Post subject:  Re: Unable to adjust iframe to content in PRO version

pass_id_by_url="ai_id" is something you don't need. It is needed for users that use the ai_external with different ids! e.g. if you have 2 iframes on the same page with different ids you need this.

so remove everything with ai_id. in the shortcode and on the external config.

var iframe_content_id = "#iframe-content";
var iframe_content_styles = "color:#ff0000";

is if you want to modify styles! So if you want only resize on element resize you don't need this either!
My demos always show more than one feature because otherwise I would need 200 demos ;).

Best, Michael

Author:  favian [ 12. Jan 2018, 20:02 ]
Post subject:  Re: Unable to adjust iframe to content in PRO version

It works fine now!

Thanks!

Author:  TinyWebGallery [ 13. Jan 2018, 23:42 ]
Post subject:  Re: Unable to adjust iframe to content in PRO version

Good.

Best, Michael

Page 2 of 2 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/