Including Coppermine in existing .php page Including Coppermine in existing .php page
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Including Coppermine in existing .php page

Started by bering12, March 28, 2004, 03:58:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bering12

Hi. I figure I'm not the first one asking this question, but I can't seem to find the answer anywhere.

I'm trying to include the index.php file of my gallery into an existing layout, but I keep getting error messages. I've solved it with an Iframe, but I want to do it properly. In what files do I have to change pathnames to make it work?

Example: I'm trying to include http://www.bering-express.dk/galleri/index.php

into

http://www.bering-express.dk/billeder.php

Joachim Müller

you haven't found an answer because this is simply not possible! You can not use php's include/require function to include coppermine into another page. This simply can't be done by editing some pathnames...  :? The only workaround is using frames or iframes, but there are drawbacks, as you already know.

Coppermine comes with a theme/template system to enable you to make your coppermine match the looks of your website, but you have to know your way around in html a bit.

GauGau

bering12

That's too bad. I was thinking about tinkering with the template, just seems like it's doing things a little backwards. But I guess I have to do it if there is no other way.

Thanks for the quick reply

Bonestorm

Hi
I had the same problem and I've solved without an IFrame, I modified the "template.html" file and "style.css" file in "themes/your_theme" folder. If you have any question, I'm here! :)

Here you can see the result: http://bonestorm.altervista.org/gallery/
Excuse me for my bad english, I'm italian.

http://bonestorm.altervista.org