4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: suprdave71 on February 10, 2006, 09:18:08 AM
-
I'm trying to get a new installation of 4images to fit my site's layout. I've concluded that using iFrames is the only way to get it to look the way I want it.
I want to keep the pages forced into the iFrame in my template so that the gallery can't be loaded with out my site menus, etc. attached. I found a Dreamweaver plugin called iFramer (http://www.pawluk.com/public/dw/dwfset.htm?dw.htm~fmain@iFrames) that works very well (in theory). But when I add its code to the includes/page_header.php (is that the correct place?) and try to call a 4images page in my browser, I get an error. The page with my iFrame opens up, but it just says 'Security Violation' where the iFrame content should have loaded.
This is the code that iFramer adds before the opening php tag:
<script language="javascript" type="text/javascript">
// iFramer_hp v1.1
if (window.name!='4images' && window.name!='booker_'
&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
top.location.replace('../../galleries.php?galleries/includes/page_header.php~4images');
// iFramer_hp End
</script>
I know this is an unusual problem, but I'd appreciate any thoughts. Thanks in advance!
David G
-
... top.location.replace should be ...
... '../../galleries.php?galleries/index.php~4images' ...
-
You can not use directly any files from includes folder.
You'll need build your own .php script for that task...
-
... top.location.replace should be ...
... '../../galleries.php?galleries/index.php~4images' ...
Hey,
But wouldn't that always just load my index page? Like, if someone linked to a URL for a category or image page, it would always take them to the index instead? I'll give it a try, though :) .
V@no -- is there a way to do what I want without altering the header from my includes folder? My php ability is severely limited...
Thanks, guys...
***EDIT*** I tried your code change, mawenzi, and no joy.
-
Does anyone have any thoughts on this? If I need to write a php script, how involved is that, and where would I start? Is the script intended to work with the iFramer plugin, or instead of it?
-
I think you'll have more success if you adopt 4images template to fit your site...