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: Theme question  (Read 2965 times)

0 Members and 1 Guest are viewing this topic.

Maarika

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Theme question
« on: June 28, 2006, 07:08:41 pm »

Hello! I've installed Coppermine on my site and it's located in the same folder as my site's PHP files.
So now what I want to do is, to integrate those PHP files to Coppermine's template. How is that done? I don't know how to code PHP.
Copying the code from template.html and using it in my php files doesn't work obviously. >.<
Thank you if anyone can help.
« Last Edit: June 29, 2006, 07:39:56 am by TranzNDance »
Logged

Nibbler

  • Guest
Re: Theme question
« Reply #1 on: June 28, 2006, 07:24:41 pm »

Put your code in a skeleton file, like this

Code: [Select]
<?php

define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Your title');

/* insert php code here */

pagefooter();

?>

Logged

Maarika

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Theme question
« Reply #2 on: June 28, 2006, 07:31:53 pm »

Thank you very much for the quick reply.
I was trying out different includes and requires but none of them worked.

Thanks again! It's working now.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.