Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Including Coppermine in existing .php page  (Read 3022 times)

0 Members and 1 Guest are viewing this topic.

bering12

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Including Coppermine in existing .php page
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Including Coppermine in existing .php page
« Reply #1 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
Logged

bering12

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Including Coppermine in existing .php page
« Reply #2 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
Logged

Bonestorm

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://bonestorm.altervista.org
Including Coppermine in existing .php page
« Reply #3 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/
Logged
Excuse me for my bad english, I'm italian.

http://bonestorm.altervista.org
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 14 queries.