New Page. New Page.
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

New Page.

Started by nytemare, June 07, 2005, 03:08:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nytemare

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.

Nibbler

<?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.

nytemare

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.

nytemare

Its okay, i found out how, inserted the code right after the pageheader line. :) Thanks for your help.