Closed Thread Icon

Topic awaiting preservation: Almost There..Site Check (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28776" title="Pages that link to Topic awaiting preservation: Almost There..Site Check (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Almost There..Site Check <span class="small">(Page 1 of 1)</span>\

 
skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 12-29-2006 21:48

http://www.hartake.com./xindex.php

After months/years..I have this as PHP/CSS -just a few glitches
There are a few items I can't find the answer to in website tutorials
The xindex.php page loads without content..
The links on the left under Pages will load Content BUT

1) How do I get the page..xindex.php to load with content?
2) The top margin on the "header/content" section is set to 20 px in the style sheet but is flush with the top on IE?
3) Browser check? (I only have IE on this new computer)
4) Can I use that page as an Index page on the server? Just rename xindex.php as index.php?
5) Do I need a "template" and an "index" with PHP? What is on an index rather than a template..as my page seems to combine both?
6) Any other glitches or fixes..please let me know??

Anyone who wants to look at the entire bunch of pages..All the pages for that php page are titled...xindex.css..xmenu1.php...xmenu2.html..except the pages which are simply "page1.html...etc"
THANKS!!

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 12-29-2006 22:57
quote:
skyetyger said:

1) How do I get the page..xindex.php to load with content?


...put content in the document

quote:
skyetyger said:

3) Browser check? (I only have IE on this new computer)


Install more?

quote:
skyetyger said:

4) Can I use that page as an Index page on the server? Just rename xindex.php as index.php?


Yup; that'd be the simple way

quote:
skyetyger said:

5) Do I need a "template" and an "index" with PHP? What is on an index rather than a template..as my page seems to combine both?


"index" is just the filename most web servers by default look for to serve if you go to a directory (domain.tld/etc/)

a "template" when dealing with PHP usually means the structure which the whole page is composed of - usually just a primary file (often index.php) and other files included into that file

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 12-29-2006 23:16
quote:
skyetyger said:

2) The top margin on the "header/content" section is set to 20 px in the style sheet but is flush with the top on IE?


just check all your margin and padding values; you've been too unspecific or the opposite

skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 12-30-2006 00:36

OK
The content div..has a command line..
>?php include ("$page.html") ?<
So the menu links in the lefthand menu call in content..
If I put "content" where that command is..inside the div..What happens when the pages are called in?
I will try putting some content in and see what happens..However..
Is there a command..that can be set on the page..that "calls" content for that page when it loads?
There is an example on the Guru's Network but I can't get it to work on that page

skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 12-30-2006 00:45

Thanks Resio..
I tried putting "content" into the content div on that page..and the content loaded from the left menu links ..into a big mess right together..two pages of content at once..
So there must be a command...if/else type..that goes somewhere on that page or in the menu..
Or that may be why there is an index and template page..
So..anyone else? Any help appreciated!

DL-44
Lunatic (VI) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 12-30-2006 01:15
quote:

skyetyger said:

OK
The content div..has a command line..
>?php include ("$page.html") ?<
So the menu links in the lefthand menu call in content..
If I put "content" where that command is..inside the div..What happens when the pages are called in?
I will try putting some content in and see what happens..However..
Is there a command..that can be set on the page..that "calls" content for that page when it loads?
There is an example on the Guru's Network but I can't get it to work on that page



This is very confusing, and I'm not sure how to answer your question.

We will need to see your PHP, and how you have set up your includes/calls for content before we can offer any specific help.


In general, there are two basic concepts for setting up templates like this -

- you have 1 file that is your main page, with links to various sections of your site. when you click on the links, it reloads the page with a variable, such as 'index.php?page=this'. In the 'content' area of the page, you have an include which pulls in content based on the variable passed in the url (includes a file containing your content).

- you have a seperate file containing your navigation, and each page that you create has a PHP include() which pulls in that file.

quote:

skyetyger said:

I tried putting "content" into the content div on that page..and the content loaded from the left menu links ..into a big mess right together..two pages of content at once..



You need to specify a file to include by default, when 'page' is empty, rather than hard coding default content into the page.

(Edited by DL-44 on 12-30-2006 01:16)

skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 12-30-2006 02:48

Ok
Thank You So Much DL-44
I will paste the two files here..but I am a bit leery because it is code..SO..I will Turn the <> around >< before >!DocType and after </head<
The two pages plus the xmenu2.html ..etc all load into to make that page I linked above..I just need to know how to get the content to load on that first "xindex.php."

ONE is the main "template" page or Index. The second is the MENU
Those are the two active files..
FIRST..TEMPLATE OR INDEX..(note the turned around <> first and last...)

>!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><link rel="stylesheet" type="text/css" href="xindex.css" />
<title>HARTAKE</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
</head<

<body>
<div id="menu1">
<?php include ("xmenu1.php") ?>
</div>
<div id="head">
<?php include ("xhead.html")?>
</div>
<div id="content">
<?php include ("$page.html") ?>
</div>
<div id="menu2">
<?php include ("xmenu2.html") ?>
</div>
<div id="foot">
<?php include ("xfoot.html") ?>
</div>
</body>
</html>

SECOND PAGE...MENU
<p>PAGES</p>
<ul> <li><a href="/xindex.php?page=page1"> Page 1 </a></li>
<li><a href="/xindex.php?page=page2"> Page 2 </a></li>
<li><a href="/xindex.php?page=page3"> Page 3 </a></li>
</ul>

(Edited by skyetyger on 12-30-2006 03:25)

skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 12-30-2006 03:33

Ok
Where and how do I specify the default file to pull in content when the page is empty?

That is the question..
I tried various if/else includes in various places but so far..no luck

skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 12-30-2006 03:53

I DID IT..BY GEORGE I THINK I"VE GOT IT!
I made an Index File...and linked the xindex.php to it!!!
Look HERE

http://hartake.com/xxindex.php

I am quitting for tonight but I will load it all up tomorrow..and see if it works..
Any one else have any ideas..Feel free to post or if you want to know how I solvd it..
Any replies welcome
HURRAY..I did it ..I did it...I think
It needs an index file..yes ideed!

skyetyger
Bipolar (III) Inmate

From: midair
Insane since: Jul 2001

posted posted 12-30-2006 04:36

I DID IT...LOOK!!

http://hartake.com

It is PHP enabled..
I DID IT..I DID IT!
Been meaning to do that for YEARS..and I finally sat down and DID..do it!!!
I am GOOD!
YES!

(Edited by skyetyger on 12-30-2006 04:39)

« BackwardsOnwards »

Show Forum Drop Down Menu