The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
And here it is : [URL]http://damarus.co.uk/new/index.php[/URL]
It seems to work fine in Firefox although I need to sort out a few alignments in internet explorer. Damn IE. Yet to test it on others.
So what do you think? and if you have any ideas on how to fix the bloody IE problem please say.
I was trying to make it so that everytime I clicked a link it change the variable $page to news.php, contact.php etc. In the main body div I then used an include statement, however using a $page variable instead. Therefore it would display the page in the variable.
The loading part works fine, however changing the variable doesn't. It always displays the page the variable was assigned to last (in the menu). I wan't it so that it will only change the variable if the link is clicked.
I know it's a fairly complicated way just to save a bit of loading times, however I like to experiment with things like this. A little knowledge booster :P
Anyway, with the title for the page, I tend to put the PHP itself in the header.php file to keep the rest of the page clear. I also sometimes use it to call database connection routines and things.
Also, I don't use that script to do the date, I use one which shows a date range.
Copyright © 2004Matthew Knight. All rights reserved.
> I might have some PHP to change the page title in the header file
If you're calling the header.php file in to a page, then you can simply define a variable before the include function, like so:
$title = 'My home page';
if (!@include("header.php"))
echo '
Unable to load header section.
';While within the header.php file, simply include this:
if (!isset($title))
$title = 'default title';
echo '
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Nimco wrote:
> and maybe a dynamic copyright notice which automatically changes
> the year in the footer file.
This should do the trick:
Not a bad little layout you've got there by the way, CSS can be a bit of a pain to begin with when laying out a complete site.
Convert your pages to PHP.
Ie - cut off the top and bottom part of your source code, leaving only the changing content.
I mean, for most webpages, at least 2/3rds can be cut off, then placed in seperate "top.txt" and "bottom.txt" files, then, using the Php include function, be put back into them.
I think that would work. Non?
Non?
Except I don't want to use an iframe. Any ideas?
And the font's staying :P .....for now anyway.
When I have the time I'll photoshop me a better title.