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

Links in Posts not working when forum is in iFrame
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4704
Page 1 of 1

Author:  MrClicky [ 25. May 2018, 05:43 ]
Post subject:  Links in Posts not working when forum is in iFrame

Hi all,

I have a site with a PhpBB Forum (currently in the final stages of testing before going live).

When a user puts a link in a post it works fine in the forum. But when the forum is framed by Advanced iFrame it doesn't (it still looks like a link and you can click on it but it either does nothing or returns a blank framed page depending on the browser you're using). If I click on a link in the same forum as a stand-alone page (i.e. not iFramed) it works fine.

Is there a setting that can remedy this? I can't find one that may be relevant.

thanks,

Craig

Author:  TinyWebGallery [ 27. May 2018, 12:16 ]
Post subject:  Re: Links in Posts not working when forum is in iFrame

I'm iframing this phbbb forum also and there are no problems with links. Do you get any Javascript errors maybe?
Maybe you have some additional processing when a link is clicked which fails in an iframe

Best, Michael

Author:  MrClicky [ 27. May 2018, 23:49 ]
Post subject:  Re: Links in Posts not working when forum is in iFrame

Hi Michael, thanks for your reply. I've dug a little deeper and it seems I actually only have a problem with links within individual posts/replies not being clickable within the iFrame. All other links (topics, users etc) in the forum are ok.

No errors etc apparent. I have a persistent horizontal nav is all...?

Author:  TinyWebGallery [ 28. May 2018, 21:06 ]
Post subject:  Re: Links in Posts not working when forum is in iFrame

Not sure how I can help you without having an url? Is the forum live now?

Best, Michael

Author:  MrClicky [ 28. May 2018, 22:42 ]
Post subject:  Re: Links in Posts not working when forum is in iFrame

yes just not available to members yet.

If you go here http://m49.siteground.biz/~epi4dogs/forum-embed/ >> Epi4Dogs Forum >> including FB URL link.... >> then click on Facebook link you'll see what I mean.

Many thanks

Author:  TinyWebGallery [ 29. May 2018, 11:43 ]
Post subject:  Re: Links in Posts not working when forum is in iFrame

This is your problem:
Refused to display 'https://www.facebook.com/epi4dogs' in a frame because it set 'X-Frame-Options' to 'deny'.

Facebook does not allow to be iframed.

You need to add target="_blank" to external links. You can check if there is already a mod for this.

If not my plugin can also do this!
See http://www.tinywebgallery.com/blog/wp-admin/admin.php?page=advanced-iframe.php ->
Modify the iframe -> Change iframe links/forms

Please note. You configuration to at the current iiframe url to the parent is not working!
map_parameter_to_url="page" is missing because you use the free version. Adding the url is part of the pro version.

Best, Michael

Author:  MrClicky [ 2. Jun 2018, 10:36 ]
Post subject:  Re: Links in Posts not working when forum is in iFrame

Thanks, FYI I found an extension and it works! https://www.phpbb.com/customise/db/extension/elonw/

But I'd rather use the AiFPro to do this. I have navigated to the settings you describe but am not sure how to set them so that only external URLs open in a new window. I think these are the options though:

> Change iframe links/forms:
> Change iframe links/forms target value

I've read your sections on these two options but it's too detailed for a non-developer like me and I don't understand what I need to add to the boxes above and/or the shortcode? Can you tell me what setting etc I need to make external URLs open in a new window please?

Also, I bought the Pro version before and updated it recently so have no idea why the free version was there again. I've reinstalled the latest Pro version and it seems to be working properly again so thanks for letting me know.

Craig


TinyWebGallery wrote:
This is your problem:
Refused to display 'https://www.facebook.com/epi4dogs' in a frame because it set 'X-Frame-Options' to 'deny'.

Facebook does not allow to be iframed.

You need to add target="_blank" to external links. You can check if there is already a mod for this.

If not my plugin can also do this!
See http://www.tinywebgallery.com/blog/wp-admin/admin.php?page=advanced-iframe.php ->
Modify the iframe -> Change iframe links/forms

Please note. You configuration to at the current iiframe url to the parent is not working!
map_parameter_to_url="page" is missing because you use the free version. Adding the url is part of the pro version.

Best, Michael

Author:  TinyWebGallery [ 2. Jun 2018, 11:43 ]
Post subject:  Re: Links in Posts not working when forum is in iFrame

Hi Craig,

This config is really not easy as you need to identify external links in a jquery syntax:

a:not([href^='http://m49.siteground.biz']) -> but at Wordpress does replace [] you need to specify

a:not({{href^='http://m49.siteground.biz'}}) like described at "Change iframe links/forms target"

change_iframe_links="a:not({{href^='http://m49.siteground.biz'}})" change_iframe_links_target="_blank"

Best, Michael

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