help integrating CPG into wesite. help integrating CPG into wesite.
 

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

help integrating CPG into wesite.

Started by pcp20us, April 24, 2006, 07:06:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pcp20us

Hello.

I have worked out how to modify my menus in cpg.
I have tried to make a style sheet out of the classicc theme. My site is at www.203.206.67.228/noosaimages.

I am using an index.php file see below, to call a header menu and html page.How can main body section  call the relevant parts of cpg to just load the galleries? I cannot get this to work.

The way i have it to work is simple just call index.php of cpg this works but i see that HTML tables are used to create the page layout. I have simple modified the style.css but it is writtren in a slighlt dirrenert style as as the way my pages are built . anyway the if you check the page you will see that iam missing the grey board aroud the outside.

I have look at mant othersites, you PHP coders what do you recommend for easy of integration into my website.

Thanks in advance

Pete
index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr">
<head>
<title>
Peter Cantwell Photography </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noarchive" />
<meta name="keywords" content=" Insert keywords - SOME search engines still use keywords" />
<meta name="description" content=" Description is used by some search engines" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
<div class="header">
<?php include ("header.html") ?>
</div>
<div id="menu">
<?php include ("menu.html") ?>
</div>
<div id="mainbody">
<?php include ("/coppermine/ template.html") ?> ( i cannot get the include commad to call a php file ??
</div>
<div class="footer">
<?php include ("footer.html") ?>
</div>
</body>
</html>

Joachim Müller

that's not how coppermine works. Build a coppermine theme that matches you site, you can't use includes. Please read the sticky threads on this sub-board

pcp20us

Thanks for the rebply, and yes i have read the sticky threrads to i have them coming out my ears. I am new to php and cpg. So may i suggest that be a little more friendly. Now that i know that i cannot use includes i shall build my own theme.


Pete

pcp20us

As posted in my orginal thread I want to make my site look like the classic theme. I have copy this into my own theme page as per doco. I have been playing with it for a long time. I am simplely trying to get the rest of my site to look like the classic theme, is there anyone that can provide a newbie on how to get this to work.

I need to modify my style sheet to get it to look like the classic theme.

Thanks

Pete

Stramm

I do not know what you want to be done on your site. The link you posted only works after modifying it. Then I see a coppermine menu and some navigation

If you need a header that looks like the rest of your site.... either modify template.html ot use the custom header/footer functionality. That's basically the easiest way.

If you want the rest of your site look like coppermine then it's best to read the html output of your coppermine site and copy that