GetDotted Domains

Viewing Thread:
"Thoughts please."

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.

Thu 27/01/05 at 15:46
Regular
Posts: 4,279
Well, I've just made my first ever site design in CSS2.

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.
Sun 30/01/05 at 14:53
Regular
Posts: 4,279
Yeh, I've already got php includes in the header, footer and menu so theres no problems there.

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
Sun 30/01/05 at 14:46
Regular
"It goes so quickly"
Posts: 4,083
Even better, saves any updating in those later years.
Sun 30/01/05 at 14:41
Regular
"NULL"
Posts: 1,384
I know how to do it, lol! I was just pointing out the possibilities.

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.

Sun 30/01/05 at 14:34
Regular
"It goes so quickly"
Posts: 4,083
Nimco wrote:
> 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 '',$title,'';


= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

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.
Sun 30/01/05 at 14:16
Regular
"NULL"
Posts: 1,384
It's a great way to do it, because then you can put PHP in the top and bottom parts. I usually call them header.php and footer.php. I might have some PHP to change the page title in the header file, and maybe a dynamic copyright notice which automatically changes the year in the footer file.
Sun 30/01/05 at 10:01
Regular
"Bicycle"
Posts: 4,899
Let me explain myself better.

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?
Sun 30/01/05 at 09:58
Regular
"Bicycle"
Posts: 4,899


Non?
Sat 29/01/05 at 23:44
Regular
Posts: 4,279
Right. I want to open a link from the menu into the main div, pretty much in the same way an iframe would be used.

Except I don't want to use an iframe. Any ideas?
Thu 27/01/05 at 20:39
Regular
"Bicycle"
Posts: 4,899
Aye. Not bad.
Thu 27/01/05 at 18:49
Regular
Posts: 4,279
Thanks Tyla. I'll give that a go later.

And the font's staying :P .....for now anyway.

When I have the time I'll photoshop me a better title.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thanks!
Thank you for dealing with this so promptly it's nice having a service provider that offers a good service, rare to find nowadays.
10/10
Over the years I've become very jaded after many bad experiences with customer services, you have bucked the trend. Polite and efficient from the Freeola team, well done to all involved.

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.