Author Topic: Using iFramer Plugin - insight needed!  (Read 6032 times)

0 Members and 1 Guest are viewing this topic.

Offline suprdave71

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Heroic Images!
Using iFramer Plugin - insight needed!
« 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 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:

Code: [Select]
<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

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Using iFramer Plugin - insight needed!
« Reply #1 on: February 10, 2006, 10:26:51 AM »
... top.location.replace should be ...
... '../../galleries.php?galleries/index.php~4images' ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Using iFramer Plugin - insight needed!
« Reply #2 on: February 10, 2006, 02:55:45 PM »
You can not use directly any files from includes folder.
You'll need build your own .php script for that task...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline suprdave71

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Heroic Images!
Re: Using iFramer Plugin - insight needed!
« Reply #3 on: February 10, 2006, 04:04:06 PM »
... 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.
« Last Edit: February 10, 2006, 04:27:09 PM by suprdave71 »

Offline suprdave71

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Heroic Images!
Re: Using iFramer Plugin - insight needed!
« Reply #4 on: February 13, 2006, 05:55:29 AM »
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?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Using iFramer Plugin - insight needed!
« Reply #5 on: February 13, 2006, 06:22:46 AM »
I think you'll have more success if you adopt 4images template to fit your site...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)