coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: misjka on July 15, 2007, 10:57:44 PM

Title: Accessing gallery with <iframe> works ok, but not with php include...
Post by: misjka on July 15, 2007, 10:57:44 PM
Hi!
I have SMF 113 and TinyPortal 098 installed on my host, and have added Coppermine incl the SMF bridge. It all works pretty ok so far...

To integrate the gallery within the SMF/TP I've written first an html aricle that access the gallery with an <iframe> tag:

<iframe width=100% height=800 src="http://my.url.com/Coppermine/index.php"></iframe>

Works pretty nice, but I would like to have better control of the article formatting as the gallery loads - in particular the height but somtimes the width as well. So I've tried to write a php article instead, with the very simple line

include "http://my.url.com/Coppermine/index.php";

Looks pretty neat, eh? BUT, as I view the article the gallery never shows up. Instead the (bridged) login screen always turns up - no matter what if I'm already logged in or not...

Any clue out there what might be faulty?

Thanks,
Title: Re: Accessing gallery with <iframe> works ok, but not with php include...
Post by: Nibbler on July 16, 2007, 12:26:04 AM
If you use a php include like that it is the *server* which is requesting the gallery - not the user. Stick with your iframe.
Title: Re: Accessing gallery with <iframe> works ok, but not with php include...
Post by: misjka on July 16, 2007, 06:27:06 AM
Gahhh, should have thought about that  ::)...

But, many thanks for a quick response!

Title: Re: Accessing gallery with <iframe> works ok, but not with php include...
Post by: Joachim Müller on July 16, 2007, 07:19:13 AM
Side-note to others with similar issues: apps like coppermine (that rely on header manipulation and cookie authentification) can't be integrated into another page using PHP's include/require commands.
For those who want to visually integrate their coppermine gallery into SMF we recommend Snork's solution "[How To] Coppermine within SMF (http://forum.coppermine-gallery.net/index.php?topic=25877.0)"