GetDotted Domains

Viewing Thread:
"A template for my webpages"

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.

Tue 23/07/02 at 20:14
Regular
Posts: 787
Hey folks, a little help required, if you can offer it.

All of the pages on my website *plug* www.when-consoles-attack.com

have the same piece of code at the start to define the colours, table with the menu in and the like.

Apparently there's a way to have each page read the same piece of code, rather than having to have it in each of my pages. Also, if I wish to add another option to the menu, I'll only have to do it once.

According to SR's PHP page I can use a bit of code similar to this:



But where would I stick that?

Like after the head, and opening the section?

Now I guess that the template would have to be saved as php, but would the pages that use this code also have to be?

Are there any decent examples of this I can take a look at working?

Thanks
Sat 27/07/02 at 15:47
Regular
"with a blunt knife"
Posts: 456
You can use some called Cascading Style Sheets that is part of DHTML. Each page reads the file (.css) and you can define what the standard format is and what the headers look like if you want.
Fri 26/07/02 at 00:18
Regular
"It goes so quickly"
Posts: 4,083
Oh, and the 'When Consoles Atack' Image doesn't seem to appear in Netscape, but does in Internet Explorer.
Fri 26/07/02 at 00:16
Regular
"It goes so quickly"
Posts: 4,083
Glad it works :o)

But as for that Hit Counter, is it just for counting 'hits'?? or does that compayn offer full stats of your site??? Only saying as you might want to consider using a PHP one of your own, to suite your sites design.

And, maybe consider having the 'contact me' area as a Form rather than a link to an E-mail program direct :o)

Just a couple of ideas, nice site you have there :o).
Thu 25/07/02 at 19:26
Regular
"not dead"
Posts: 11,145
bah, yep, www.when-consoles-attack.co.uk silly, silly me.

I got this working, it really is that simple, isn't it?

Only silly me, checked it offline, before uploading it, so the php didn't work, and I couldn't figure out why!

I sussed after changing the code 3 or 4 times, and now it seems to be working, after changing every bloody link to a php rather than html link. Still, now I can alter the side bar whenever I want, only once, so I'll be putting something new in there soon.
Wed 24/07/02 at 00:05
Regular
"It goes so quickly"
Posts: 4,083
Meka Dragon wrote:
> All of the pages on my website *plug* www.when-consoles-attack.com

Did you mean .co.uk as that address doesn't come up.

>
> But where would I stick that?

you can stick that anywhere on the Page and it will be put into the Page.
When you say define the colours, do you mean the bin in the Tag?? as in etc..?? If so, just have the code and your table code in the separate file, this file can be eny ext, .txt, .htm, .html .php but a tip, don't have a .php file unless it contains PHP code, as even though the time is probably miliseconds, a .html page will load faster. the page with the include code in though will have to be a .php file.

did that made sence?
Tue 23/07/02 at 20:43
Regular
"IT'S ALIVE!!"
Posts: 4,741
That bit of code is probably one of the best in PHP, you'll need to change the names of any page using that code to: template.php
If anything on your page is the same as another, make a seperate page for it and php include() it.
Tue 23/07/02 at 20:19
Regular
"tinycurve.gif"
Posts: 5,857
Here ya go, Meka:

http://htmlgoodies.earthweb.com/beyond/extjs.html
Tue 23/07/02 at 20:14
Regular
"not dead"
Posts: 11,145
Hey folks, a little help required, if you can offer it.

All of the pages on my website *plug* www.when-consoles-attack.com

have the same piece of code at the start to define the colours, table with the menu in and the like.

Apparently there's a way to have each page read the same piece of code, rather than having to have it in each of my pages. Also, if I wish to add another option to the menu, I'll only have to do it once.

According to SR's PHP page I can use a bit of code similar to this:



But where would I stick that?

Like after the head, and opening the section?

Now I guess that the template would have to be saved as php, but would the pages that use this code also have to be?

Are there any decent examples of this I can take a look at working?

Thanks

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Many thanks!
You were 100% right - great support!
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.

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.