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: New Page.  (Read 2420 times)

0 Members and 1 Guest are viewing this topic.

nytemare

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
New Page.
« on: June 07, 2005, 03:08:37 pm »

Could someone please tell me how to make a completely new page. Say i wanted to make a contact page, but i want this page to use my current theme so that my main menu, footer and everything else is still in the new pag. What includes and etc must i enter before uploading the page.
« Last Edit: June 07, 2005, 03:21:15 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: New Page.
« Reply #1 on: June 07, 2005, 03:10:50 pm »

Code: [Select]
<?php

define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader('Your title here');

?>


html content here

<?php
pagefooter
();
?>

Try to search the board before you post, this has been posted many times before.
Logged

nytemare

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: New Page.
« Reply #2 on: June 07, 2005, 03:18:43 pm »

Sorry, i had searched earlier on but results only came up with a lot of random stuff. But one more thing, what if the content i want to insert for a new page is php code and etc. Like an add-on or mod.
Logged

nytemare

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: New Page.
« Reply #3 on: June 07, 2005, 03:19:41 pm »

Its okay, i found out how, inserted the code right after the pageheader line. :) Thanks for your help.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 21 queries.