4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: superjari on June 25, 2005, 10:05:22 PM

Title: Static pages
Post by: superjari on June 25, 2005, 10:05:22 PM
Hi all,

I've created my own template for 4images which works the way I want. Now I want to add some static pages (maybe some dynamic ones later), however, I do want to keep the 4images theme to stay in place with navigation and random image still there. I've read this topic http://www.4homepages.de/forum/index.php?topic=6839.0 and I think it could be helpful if I just copy index.php and rename it along with home.html and add some more tags to be used. But I just wonder if it's possible to somehow just create a new page with a template for it aswell which works within 4images, but has the content in it I want...

What i would do with my PHP-site before is use this code (I hardly know any php, copied and pasted most of the code):

Code: [Select]
<!-- NEWS -->
<?php
$fg $HTTP_GET_VARS['fg'];
$extension "inc";
if ( !$fg || $fg == "" )
{
   include($_SERVER['DOCUMENT_ROOT']."/news.inc");
}
else if ( file_exists(($_SERVER['DOCUMENT_ROOT']."/$fg.$extension")) )
{
  include($_SERVER['DOCUMENT_ROOT']."/$fg.$extension");
}
else
{ include($_SERVER['DOCUMENT_ROOT']."/404.$extension"); }
?>


to be able to use links like index.php?fg=news I tried this code in home.html and it does display news.inc, but when for instance I try index.php?fg=contact it still displyas news.inc

So all I want to do is add some more pages to my site within 4images...

Thanks in advance!
Title: Re: Static pages
Post by: V@no on June 25, 2005, 11:05:54 PM
maybe this will be helpfull:
http://www.4homepages.de/forum/index.php?topic=4996.0
Title: Re: Static pages
Post by: superjari on June 26, 2005, 09:55:39 AM
Ooooh, Thank you very much again! I was searching through all the templates & Styles topics yesterday and couldn't find what I was looking for. This is exactly what I want, thanks!