Advanced search  

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

Pages: [1]   Go Down

Author Topic: New Page.  (Read 2936 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.023 seconds with 20 queries.