Inserting CPG into an iframe? Inserting CPG into an iframe?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Inserting CPG into an iframe?

Started by reason, October 02, 2004, 08:52:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

reason

I have been searching and reading the few threads here on iframes with not much luck yet on what I want.
I have seen that some Dev Team members have said if you dont have to use iframes dont and if you do recomending not doing it the easy way. Which Im sure is the way Im trying.

As a professional designer I know I can be a pain to dev. people wanting things set up for design reasons. So what I want is a iframe. The basic concept  of having a header on top that never reloads while the bottom does. Simple concept but Im sure im going about it the wrong way. I guess what I dont understand is I now am working with "2 template" files instead of one.

http://thisreason.com/kodachrome/themes/classic/template.html
::creative difference::

kiig

are you having trouble with loading CPG in a Iframe.. ??  I guess I don't understand your question/problem, - but I've done a Coppermine installation in an Iframe and I was evident that some templates works in the Iframe, - some don't. Right now I'm using Rainy-day which works, - at first I tried with Reynolds which I like, -but it didn't work well in the Iframe.
Kim Igel. (http://foto.igel.it )
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

reason

Yes thats what I want to do. So how do you set up the file names etc .  . .?

"template.html" should be inserted into the other html file with the iframe, but what do you call that other html file and do you have to change things in the php file to get it to work?
::creative difference::

Tranz

When using iframes, make sure to test in different browsers, which don't always handle them the same.

The src of the iframe would just be whatever file is the home page of your gallery, index.php.

kiig

a normal cpg installation uses index.php as the 'main startpage', - and normally Apache looks for index.html, - then index.htm (or the other way around :-)  ) and then index.php, - when you don't specify it in the url.

So my site http://foto.igel.it fires foto.igel.it/index.php

Then I created an index.html file with this content :

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 5">
<title>Foto.Igel.it</title>
</head>
<body bgcolor="#899396">
<center>
<IFRAME NAME="content_frame" width="900" height="100%" SRC="index.php"></IFRAME>
</body>
</html>


and when I now type http://foto.igel.it it fires foto.igel.it/index.html (the above code) which then callls index.php

So, - foto.igel.it shows in the Iframe, - if I don't want that (for testing purposes or whatever) I just type foto.igel.it/index.php

But all I did with the standard coppermine, - was to create the above index.html file.

Kim Igel.
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

kegobeer

Actually, the order in which Apache looks for an index file is determined by the order set in DirectoryIndex in the httpd.conf file.

Example: DirectoryIndex index.php index.html

Output: index.php (if found) is used.  If not found, index.html is used (if found).
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kiig

allright, - thanx for clearing that up. :-)
Kim Igel.
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

reason

http://thisreason.com/kodachrome/

Thanks for all the help now my last real challenge is to have a more custom menu any one know where in the php to point me to?
::creative difference::

reason

Of course it looks fine in IE but the iframe doesn't go more then 200 down in FireFox and Mozilla and FireFox doesnt even see the CSS.  ::)
This browser thing has got to get under control its near impossible as a designer to make it work on all of them!!!
::creative difference::

kegobeer

Well, since all but one browser "plays by the rules" maybe writing and complaining to the company will accomplish something.  Although Microsoft has never been one to follow rules, right?   ;)
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

spikeswife

I'd like to thank you all for this particular thread.  It's really helped me in a re-design of my site.  I-frames - who woulda thunk it!

reason

::creative difference::