cpg 1.4.3 and PHP site integration cpg 1.4.3 and PHP site integration
 

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]

Main Menu

cpg 1.4.3 and PHP site integration

Started by Adariel, January 14, 2006, 09:14:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adariel

First, let me say that I'm not sure if this is the right place for this, so please feel free to move it elsewhere if needed!

Also, I have installed, bridged with SMF, and have everything else working fine ...

Now then, on to my question:  I want to integrate my CPG install with my site, like I did with my SMF forum.  However, due to the way my site is built, I'm having trouble figuring our exactly how do go about doing it.  I will try to explain, but if I'm not clear enough, please let me know!

I have built my site (http://www.raven-flight.com) using PHP and content files.  There are 3 main files: 
     index.php - does all the work of gathering the other files and combining them nicely
     wrapper.inc.php - contains the <html><head> and <body> tags, as well as the html code for the site layout - header, menu, primary content area, and footer.
     (content).inc.php - different content pages that are inserted into the content area by index.php

So, when a person looks at my site and they see index.php?page=about in the address box, index.php takes that "about" and sticks it into "about.inc.php" which then pulls the info from that file, puts the wrapper info around it, and voila, you have my About Us page.  Essentially it's a framed site without the nastiness of frames, if that makes sense?


So I managed to get SMF to integrate very nicely, simply by tweaking some of the code and adding in the calls to my wrapper and content functions.  It wasn't hard to do since SMF was written in PHP.  But I haven't been able to figure out how to do it in CPG ... since the theme files are in a version of html with the CPG {functions}, I can't figure out how to get the PHP in there to call my site stuff.

If anyone has a suggestion, I'll gladly listen to it.  If it would help to see my site files to get a clearer picture of how it works, let me know and I can zip them up and send them out.

TIA

Joachim Müller

coppermine can't be wrapped like that, you have to create a custom coppermine theme that matches your sites layout.

Adariel

I realize it would require a fairly big code re-write, but is there any way that a future version could allow for this?

Joachim Müller