PDA

View Full Version : Add page for template.


thehush
08-30-2005, 02:55 PM
Hi,

I copy my about_template.html page to made a new page who called test.html.

i add in the index.php page on pixelpost :

// Added ability to use header and footers for templates. They are not needed but used if included in the template
$header = file_get_contents("templates/".$cfgrow['template']."/header.html");
$footer = file_get_contents("templates/".$cfgrow['template']."/footer.html");
$test = file_get_contents("templates/".$cfgrow['template']."/test.html");

// You can now add any template you want by just adding the template and a link to it. For example,

// ?x=about will load the template about_template.html

I mean thats there is something failed on the line up.
If you could help me, thanks.

I just want to add new page on my website

Hush.

Ps : sorry for my english.

raminia
08-30-2005, 02:57 PM
you don't need to edit the code or modify it!
just add a file test_template.html to your template folder with the tags you want!

nikonratm
08-31-2005, 01:35 AM
hello all, i am new to php and sql, but im getting pretty good with html and css. i tried to make my own template page, and although the template is applied (the css, html, etc) i copied the image_template exactly but the most recent image does not display. does the image only display on the image_template page? how can i change this? thanks so much
http://giantmecha.com/new/pixelpost/index.php?x=img

raminia
08-31-2005, 06:29 AM
yeah only the image_template can show that change the about line
134 from

// images/main site
if($_GET['x'] == "") {

to

// images/main site
if($_GET['x'] == "" OR isset($_GET['x']) ) {

thehush
08-31-2005, 08:38 AM
Oh yes ok, just add _template.html after the name of my page.
thanks!

nikonratm
08-31-2005, 09:59 AM
it worked! thanks so much for your help...you da bomb!