Accessing gallery with <iframe> works ok, but not with php include... Accessing gallery with <iframe> works ok, but not with php include...
 

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

Accessing gallery with <iframe> works ok, but not with php include...

Started by misjka, July 15, 2007, 10:57:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

misjka

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,

Nibbler

If you use a php include like that it is the *server* which is requesting the gallery - not the user. Stick with your iframe.

misjka

Gahhh, should have thought about that  ::)...

But, many thanks for a quick response!


Joachim Müller

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"