coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bering12 on March 28, 2004, 03:58:22 PM

Title: Including Coppermine in existing .php page
Post by: bering12 on March 28, 2004, 03:58:22 PM
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
Title: Including Coppermine in existing .php page
Post by: Joachim Müller on March 28, 2004, 04:43:50 PM
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
Title: Including Coppermine in existing .php page
Post by: bering12 on March 28, 2004, 04:47:14 PM
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
Title: Including Coppermine in existing .php page
Post by: Bonestorm on April 04, 2004, 10:20:04 AM
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/