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

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

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