Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 19. Oct 2017, 00:10

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 23. Jul 2016, 14:43 
Offline

Joined: 23. Jul 2016, 14:39
Posts: 4
On pages where I have an advanced iframe i'm finding that users are being redirected to the iframe source page.

I had everything working perfectly then out of nowhere the user is being redirected to the source page.

Pages without an iframe stay on the current site and aren't redirected.

https://www.coasttocoastmanpower.com/

Thank you


Top
 Profile  
 
PostPosted: 23. Jul 2016, 15:00 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10496
Seems the other page has added a iframe buster script which redirect to the page if it is in an iframe.

The only lagel thing you can do is to use the sandbox attribute (see the administration -> Basic tab at the bottom) which disables Javascript in the iframe. But the problem is than if the other page still works fine if you do this.
Or you ask the owner of the other page to remove this again.

Best, Michael


Top
 Profile  
 
PostPosted: 23. Jul 2016, 15:08 
Offline

Joined: 23. Jul 2016, 14:39
Posts: 4
Thanks for the reply.

I am the owner of both pages. I have no idea what script could be causing this. Any ideas?


Top
 Profile  
 
PostPosted: 23. Jul 2016, 15:57 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10496
function parentIsEvil() { var html = null; try { var doc = top.location.pathname; } catch(err){ }; if(typeof doc === "undefined") { return true } else { return false }; }; if (parentIsEvil()) { top.location = self.location.href; };var url

is doing this.

You have this directly in the html.

Best, Michael


Top
 Profile  
 
PostPosted: 23. Jul 2016, 15:57 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10496
Actually this block:

<!-- Open Graph Meta Tags & Twitter Card generated by Social Warfare v2.0.3 http://warfareplugins.com -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="CCM Job Posts">
<meta name="twitter:description" content="">
<meta name="twitter:site" content="@NRS3PL">
<script type="text/javascript">function parentIsEvil() { var html = null; try { var doc = top.location.pathname; } catch(err){ }; if(typeof doc === "undefined") { return true } else { return false }; }; if (parentIsEvil()) { top.location = self.location.href; };var url = "https://www.nationalretailsystems.com/ccm-job-posts/";if(url.indexOf("stfi.re") != -1) { var canonical = ""; var links = document.getElementsByTagName("link"); for (var i = 0; i < links.length; i ++) { if (links[i].getAttribute("rel") === "canonical") { canonical = links[i].getAttribute("href")}}; canonical = canonical.replace("?sfr=1", "");top.location = canonical; console.log(canonical);};</script>
<style>@font-face {font-family: "sw-icon-font";src:url("https://www.nationalretailsystems.com/wp-content/plugins/social-warfare/fonts/sw-icon-font.eot?ver=2.0.3");src:url("https://www.nationalretailsystems.com/wp-content/plugins/social-warfare/fonts/sw-icon-font.eot?ver=2.0.3#iefix") format("embedded-opentype"),url("https://www.nationalretailsystems.com/wp-content/plugins/social-warfare/fonts/sw-icon-font.woff?ver=2.0.3") format("woff"), url("https://www.nationalretailsystems.com/wp-content/plugins/social-warfare/fonts/sw-icon-font.ttf?ver=2.0.3") format("truetype"),url("https://www.nationalretailsystems.com/wp-content/plugins/social-warfare/fonts/sw-icon-font.svg?ver=2.0.3#1445203416") format("svg");font-weight: normal;font-style: normal;}</style>
<!-- Open Graph Meta Tags & Twitter Card generated by Social Warfare v2.0.3 http://warfareplugins.com -->


Top
 Profile  
 
PostPosted: 23. Jul 2016, 17:05 
Offline

Joined: 23. Jul 2016, 14:39
Posts: 4
Thank you! That plugin had an option to disable iframes. Fixed now.

On a separate note - how do I make the url stay on the current site and not direct to the source if the user were to right click and open the iframe in another window?

I don't want the user to know they at looking at content from a different site. I own both sites so can make changes on both.

Thanks again


Top
 Profile  
 
PostPosted: 23. Jul 2016, 17:19 
Offline

Joined: 23. Jul 2016, 14:39
Posts: 4
Sorry one other question.

Is there a setting which forces the iframe source page content to refresh?

I am sourcing a job post page and find that it can take a long time or requires user to clear history for changes or new content to be reflected when viewing the page through the iframe. Any suggestions?


Top
 Profile  
 
PostPosted: 23. Jul 2016, 17:31 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10496
Advanced tab-> Reload interval

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO