Includes need help (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Johny2000 -> Includes need help (4/1/2009 13:37:09)

Can someone plaese help me with this I do not know what it all means .I am trying to make a includes file for my site .also i do not know where to find this info on my site and how to set it up.I am still a rookie at all this.
Thank you
www.askyourcook.com

<html>
(meta tags and links to stylesheet go here)
<body>

(include link for header goes here)

Actual content for the page goes here

(include link for the nav menu goes here)

(include link for the footer goes here)

</body>
</html>




Tailslide -> RE: Includes need help (4/1/2009 13:38:30)

What server-side language do you have? Can't do anything until you decide.




Giomanach -> RE: Includes need help (4/1/2009 13:55:39)

http://who.is/whois/askyourcook.com/

On an Apache server with both FPSE and PHP. Personally I would recommend using php.

For this to work, all pages using the includes would need to have the extension .php

Use the following code to make you pages come together:

<html>
(meta tags and links to stylesheet go here)
<body>

<? require(head.php); ?>

Actual content for the page goes here

<? require(nav.php); ?.
<? require(footer.php); ?>

</body>
</html> 


Edit the bits in brackets to suit the location of you include files - but leave the brackets in place




treetopsranch -> RE: Includes need help (4/1/2009 20:12:19)

And if you are a FrontPage user you can use FP includes also as they work with or without the extensions.

But it looks like you have downloaded a script or a template and you don't know where to put the code.




Johny2000 -> RE: Includes need help (4/1/2009 20:59:07)

you got it I do not know where to put the code




treetopsranch -> RE: Includes need help (4/1/2009 22:27:34)

Can you give us a link to the script or template?




Giomanach -> RE: Includes need help (4/2/2009 5:11:35)

In reply to your PM, Johny - As Don as said - Would need to see the template or script to see if its actually possible to use it with includes. Give us a link and we can give more information




Johny2000 -> RE: Includes need help (4/2/2009 9:38:21)

Here you go www.askyourcook.com .Let know what you think
Thank you




treetopsranch -> RE: Includes need help (4/2/2009 12:40:07)

Well, you can't use that template as it's copyrighted.




Johny2000 -> RE: Includes need help (4/2/2009 18:35:44)

Hi I paid to have it made by galtech just have not taken the name off all the footer




treetopsranch -> RE: Includes need help (4/2/2009 18:43:04)

Then I guess I just don't understand. That page seems complete as it is.




coreybryant -> RE: Includes need help (4/2/2009 19:27:24)

This is why (Johny2000) it becomes difficult when you do post on multiple message boards - we all get confused. As I stated server side includes will give you an example.




Johny2000 -> RE: Includes need help (4/3/2009 9:20:22)

I will not post on multiple any more did not know
Thank you




TexasWebDevelopers -> RE: Includes need help (4/3/2009 11:52:15)

here, again, is the advice we offered on the other forum:

An include file is just a web page that has content in it but NOT the structure tags like <html> or <body> etc. That page content is then "included" in another page. Many web pages are built this way: One main page (that HAS the <html> and <body> tags) has headers, footers, navigation and content all included as separate bits of information. The include code (the "include link" you called it) may look like this (this may be different depending on the coding language being used):
<!--#include file="menu.inc" -->

So, you should probably not be editing the main page itself since all of the files are already included..I am guessing you want to change one of the included files. So, in the code view of your editor: find the name of the included page; open that page; change it; save it; and upload it. The changes will then be seen on ALL of the pages that have that file "included" in it.

So what parts do you not understand?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125