Topic: First Try (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28630" title="Pages that link to Topic: First Try (Page 1 of 1)" rel="nofollow" >Topic: First Try <span class="small">(Page 1 of 1)</span>\

 
skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 11-10-2006 02:36

Ok
Will a php "script" add a writing "HomePage" on 7 different pages with a clickable link installed on each page?

How is that accomplished or is it even possible?

(Edited by skyetyger on 11-10-2006 03:22)

DL-44
Lunatic (VI) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 11-10-2006 04:18

A php script can do whatever you instruct it to, for any page on which you run it

What you really want to do is to include a piece of HTML. You can do this using the php include() function. If you have been following Dan's tutorials at the GN, this practice is covered pretty well.

Basic concept: create one file with your navigation. use the include() function to include that file on whatever page you want it displayed.

A typical page template for me will be setup like this -

file 1: header.php
- this file includes the start of the HTML document, from the DOCTYPE, head element, open of the body tag, and whatever navigation will start the page (which doesn't just have to be at the top...a side navigation will fit this way just as easy), usually ending the with opening of a <div id="content">

file 2: footer.php
- this file closes the open 'content' div, the body tag, and the html tag. It may or may not also contain a <div id="footer"> with whatever relevant content is needed there.

actual page files
- these files are the actual content of the site. each one will start and end with a bit of php which will include the header and the footer, with all content in between.
There is no limit to the number of pages, and no limit to what you can include in this manner.

(Edited by DL-44 on 11-10-2006 04:24)

skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 11-10-2006 04:44

Ok
I read the tutorials on Guru's.... Goodie..and on A List Apart..
I am going to start writing the php files and the html. using a simple CSS web page with absolute positioning..so I don't have any other issues...I am going to write the php files...using what you just said..the tutorial on Guru network..and the other tutorials
It will make more sense if I start writing along .and see how it actually works..
I may have it up and running soon..starting to see how it works..after reading the tutorial on A List Apart..

skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 11-11-2006 06:14

OK..I created the page I am going to use to test this..haven't tested it on browsers..but I think it is clean..
This is the html template..You can see from my site..I just use it for a testing site..and I quit doing web pages a while ago..lost interest..and I could just toss stuff up there for my own purposes..but this page should be better quality..
Now I start coding this to php

http://www.hartake.com./template1.html



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:

« BackwardsOnwards »

Show Forum Drop Down Menu