Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 08-30-2005, 02:55 PM
thehush Offline
forum loafer
 
Join Date: Aug 2005
Posts: 12
Add page for template.

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.
Reply With Quote
  #2  
Old 08-30-2005, 02:57 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
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!
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #3  
Old 08-31-2005, 01:35 AM
nikonratm Offline
forum loafer
 
Join Date: Aug 2005
Posts: 9
displaying image on added template page

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
Reply With Quote
  #4  
Old 08-31-2005, 06:29 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
yeah only the image_template can show that change the about line
134 from
PHP Code:
// images/main site
if($_GET['x'] == "") { 
to
PHP Code:
// images/main site
if($_GET['x'] == "" OR isset($_GET['x']) ) { 
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #5  
Old 08-31-2005, 08:38 AM
thehush Offline
forum loafer
 
Join Date: Aug 2005
Posts: 12
Oh yes ok, just add _template.html after the name of my page.
thanks!
Reply With Quote
  #6  
Old 08-31-2005, 09:59 AM
nikonratm Offline
forum loafer
 
Join Date: Aug 2005
Posts: 9
it worked! thanks so much for your help...you da bomb!
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 08:57 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs