View previous topic :: View next topic |
Author |
Message |
James 3run
Joined: 19 May 2003 Posts: 3756
|
Posted: Sun Apr 25, 2004 7:20 am Post subject: Site suggestions |
|
|
1) Use arial
2) How are you linking to the menu and template on every page? If you are just writing it out for each one, then I'll show you how you can link to the menu and other stuff that stays the same on every page dynamically. _________________
|
|
Back to top |
|
|
Steve Moderator
Joined: 02 Nov 2003 Posts: 776 Location: Belgium
|
Posted: Sun Apr 25, 2004 8:06 am Post subject: |
|
|
That would be very handy, now I just copy the code and change the content. _________________ Moderator, Developer, Free Running newbie |
|
Back to top |
|
|
James 3run
Joined: 19 May 2003 Posts: 3756
|
Posted: Sun Apr 25, 2004 8:15 am Post subject: |
|
|
Alright, create a page called menu.php which contains what your menu contains, so for example, I could do:
Code: | <b>Main</b><br>
<a href="home.php">home</a><br>
<a href="news.php">news</a><br><br>
<b> The Game</b><br>
<a href="info.php">Info</a>
|
Just normal stuff like that.
Then, on each page, in the gap where the menu should be, type this:
Code: | <?PHP
$site_root_path = './';
include ( $site_root_path . 'menu.php' );
?> |
But make sure you save the content pages as php. PHP pages support full html, but also support php when you open the tags (<?PHP ?>).
And you can do the same for the header and footer aswell.
And, are you using a style sheet? _________________
|
|
Back to top |
|
|
Guest
|
Posted: Thu Sep 22, 2005 6:49 pm Post subject: Receiver |
|
|
Quote: | That would be very handy, now I just copy the code and change the content. |
So who collects it then? |
|
Back to top |
|
|
darkmonkey Level 7: Broken Free
Joined: 14 Dec 2004 Posts: 367 Location: London, UK
|
Posted: Mon Sep 26, 2005 3:56 pm Post subject: |
|
|
...If you wanna have a sucky site.
Arial sucks at anything other than 10px - use Verdana or Tahoma =] _________________ aiii |
|
Back to top |
|
|
James 3run
Joined: 19 May 2003 Posts: 3756
|
Posted: Tue Sep 27, 2005 6:03 am Post subject: Re: Receiver |
|
|
Anonymous wrote: | Quote: | That would be very handy, now I just copy the code and change the content. |
So who collects it then? |
Good point!
darkmonkey wrote: | ...If you wanna have a sucky site.
Arial sucks at anything other than 10px - use Verdana or Tahoma =] |
Yeah, you're right. I used to use Arial, but now I've realised how much better Verdana at 11px with line spacing in-between looks _________________
|
|
Back to top |
|
|
GPHemsley Moderator
Joined: 18 Jul 2003 Posts: 430 Location: Long Beach, NY
|
Posted: Sat Oct 15, 2005 4:04 pm Post subject: |
|
|
I personally put all my text sizes in points, rather than pixels. But I do use Verdana, 10pt, usually. _________________ Gordon P. Hemsley
A Link to the Past • CMSformE
|
|
Back to top |
|
|
|