Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Iframe drives me crazy
#1
Sad 
Hi Guys,

I need help, I am not able toiframe a get simple page into another get simple page.

I have my main page in which my menu and content sits, however it also has an iframe and inside this iframe I need to loadt a few get simple pages (these have a diffrent theme for that reason) however the iframe is not working.

here is an exsample iframe, the first one has content from Get simple and does not load the second one has just and example page.


Code:
<iframe src="http://localhost/ETB-EN-NA/index.php?id=en-na" style="border:1px  solid;" name="frame1" scrolling="auto" frameborder="yes" align="center">
</iframe>
<iframe src="http://www.w3schools.com" style="border:1px  solid;" name="frame1" scrolling="auto" frameborder="yes" align="center">
</iframe>

when loaded in Chrome or FF it just does nothing, IE gives at least a warning and allows the content to be opend in a new window.

How do I remove the blockage?

If i try it outside the cms in pure HTML it works so I guess some sort of script must be blocking it and I tried to strip all out but still not working.

[Image: strangeo.png]

Anyone can explain why this happens only in CMS but not pure HTML file and how I can fix it?
Reply
#2
ah can be deleted, it's a browser security thing wich I can change with php

<?php
header('X-Frame-Options: GOFORIT');
?>
Reply
#3
This feature below has a bug in that it blocks front not just backend pages in frames.
disable it in gsconfig
heres the feature and open bug also.
https://github.com/GetSimpleCMS/GetSimpleCMS/issues/971

PHP Code:
# GS prevents backend pages from being loaded in a frame
# by sending an x-frame header by default to prevent clickjacking attempts
# setting GSNOFRAME to false will disable this
define('GSNOFRAME',false); 
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)