April 27, 2024, 08:38:06 PM

Author Topic: Website help?  (Read 2766 times)

Offline Gil

  • Tool Man
  • Ultimate Member
  • *
  • Posts: 3069
  • Welcome to Macintosh
    • View Profile
Website help?
« on: December 26, 2008, 12:05:44 PM »
I'm wondering if there's a way to save the header and footer of my webpage into a seperate file, and have all of the other pages reference that file, versus having to transfer all of the HTML crap into each page.

HTML or CSS, possibly?
~TWC forum member since 2005~
"It is hard to do positive things with ignorance and delusion."

Offline TWCToday

  • Ultimate Member
  • *
  • Posts: 6151
  • Gender: Male
    • View Profile
    • Norfolk Weather Station
  • Cable Provider: COX
  • HD Channel #: 724
  • HD WxStar ID #: 029745
  • SD Channel #: 24
  • SD WxStar ID #: 22568
  • WxStar Version: IntelliStar
Re: Website help?
« Reply #1 on: December 26, 2008, 01:07:00 PM »
I would also like to know how to do this. In the past I have used Frontpage/Sharepoint to simply create a dynamic template that would update each of my pages in the site by iteself whenever I made a change to the template.

Offline Al

  • Ultimate Member
  • *
  • Posts: 4492
  • Gender: Male
    • View Profile
  • Cable Provider: SuddenLink
  • SD Channel #: 02
  • SD WxStar ID #: 22975
  • WxStar Version: IntelliStar
Re: Website help?
« Reply #2 on: December 26, 2008, 02:16:08 PM »
most def. CSS.

wow it's been a while since i've made a style sheet, but I believe it'd be much easier.

Offline beanboy89

  • Ultimate Member
  • *
  • Posts: 9663
  • Gender: Male
  • Caulk the wagons and float!
    • View Profile
    • http://billy.mozfaq.org/
  • Cable Provider: Xfinity
  • SD Channel #: 53
  • SD WxStar ID #: 22608
  • WxScan Ch. #: 101
  • WxStar Version: IntelliStar
Re: Website help?
« Reply #3 on: December 26, 2008, 02:26:37 PM »
You could also do it using frames. :yes:
My super-awesome website!
[00:45] <SpringRubberMB> I wear a condom everywhere I go!

Offline Gil

  • Tool Man
  • Ultimate Member
  • *
  • Posts: 3069
  • Welcome to Macintosh
    • View Profile
Re: Website help?
« Reply #4 on: December 26, 2008, 02:31:44 PM »
Frames are outdated, and kind of a pain to work with. :hmm:

Whoever can make a stylesheet for me can earn a shiny new nickel. :D
~TWC forum member since 2005~
"It is hard to do positive things with ignorance and delusion."

Offline lfmusiclover

  • Ultimate Member
  • *
  • Posts: 10046
  • Gender: Male
  • TWC Fan 1990-1999
    • View Profile
  • Cable Provider: Verizon FiOS
  • HD Channel #: 619
  • SD Channel #: 119
  • WxStar Version: IntelliStar
Re: Website help?
« Reply #5 on: December 26, 2008, 03:55:43 PM »
Where is Jesse? I'm sure he could help you with this. He's good with this kind of stuff.  :yes:

Offline Gil

  • Tool Man
  • Ultimate Member
  • *
  • Posts: 3069
  • Welcome to Macintosh
    • View Profile
Re: Website help?
« Reply #6 on: December 26, 2008, 04:36:23 PM »
Jesse! Come here, boy! (haha, jk). :P
~TWC forum member since 2005~
"It is hard to do positive things with ignorance and delusion."

Offline jtmal0723

  • Jesse T. Maloney
  • Ultimate Member
  • *
  • Posts: 2747
  • Gender: Male
  • TWC Fan, 1998 - present
    • View Profile
  • Cable Provider: Other
  • WxStar Version: IntelliStar
Re: Website help?
« Reply #7 on: December 26, 2008, 06:05:08 PM »
PHP is your friend here... What you should do is create the header you want on all of your pages into one file, call it header.php if you want. Same for footer.... Then, what you should do is follow some simple stuff here:
Code: [Select]
<?PHP include("header.php"); ?>
Page content here
tables here
divs here
etc
<?PHP include("footer.php"); ?>

your header may look something like:
Code: [Select]
<html>
<head>
<title>Title here</title>
</head>
<body>
<p><img src="logo.png"></p>

and your footer might look something like:
Code: [Select]
<p>&copy; 2009 Your Site Company here.</p>
</body>
</html>

this is just your basics, but if you know HTML and such, you can move on from here  :yes:

Offline Gil

  • Tool Man
  • Ultimate Member
  • *
  • Posts: 3069
  • Welcome to Macintosh
    • View Profile
Re: Website help?
« Reply #8 on: December 26, 2008, 06:21:22 PM »
No PHP on the server. :no:
~TWC forum member since 2005~
"It is hard to do positive things with ignorance and delusion."

Offline jtmal0723

  • Jesse T. Maloney
  • Ultimate Member
  • *
  • Posts: 2747
  • Gender: Male
  • TWC Fan, 1998 - present
    • View Profile
  • Cable Provider: Other
  • WxStar Version: IntelliStar
Re: Website help?
« Reply #9 on: December 26, 2008, 06:44:05 PM »
No PHP on the server. :no:
then you're out of luck -- you'll have to use frames or iframes or you'll just have to copy and paste to all of the pages every time you make a change. Sorry :( PHP is the easiest solution

Offline Gil

  • Tool Man
  • Ultimate Member
  • *
  • Posts: 3069
  • Welcome to Macintosh
    • View Profile
Re: Website help?
« Reply #10 on: December 26, 2008, 06:44:51 PM »
What is an iframe? :huh:
~TWC forum member since 2005~
"It is hard to do positive things with ignorance and delusion."

Offline Zach

  • TV Tuner Enthusiast℠
  • Ultimate Member
  • *
  • Posts: 8414
    • View Profile
  • Cable Provider: Other
  • WxStar Version: Satellite
Re: Website help?
« Reply #11 on: December 26, 2008, 06:45:29 PM »
Can anybody also generate code for my Geocities to have a still background while scrolling?

Thanks. :salute:
I've gone off on a journey to be a moderator at another forum, but this place will forever remain home for me~

Offline Gil

  • Tool Man
  • Ultimate Member
  • *
  • Posts: 3069
  • Welcome to Macintosh
    • View Profile
Re: Website help?
« Reply #12 on: December 26, 2008, 06:46:30 PM »
Can anybody also generate code for my Geocities to have a still background while scrolling?

Thanks. :salute:
Hey, get your own thread! :censored: :P
~TWC forum member since 2005~
"It is hard to do positive things with ignorance and delusion."

Offline Zach

  • TV Tuner Enthusiast℠
  • Ultimate Member
  • *
  • Posts: 8414
    • View Profile
  • Cable Provider: Other
  • WxStar Version: Satellite
Re: Website help?
« Reply #13 on: December 26, 2008, 06:50:33 PM »
Can anybody also generate code for my Geocities to have a still background while scrolling?

Thanks. :salute:
Hey, get your own thread! :censored: :P
Well, it is for website help, isn't it? :whistling:
I've gone off on a journey to be a moderator at another forum, but this place will forever remain home for me~

Offline jtmal0723

  • Jesse T. Maloney
  • Ultimate Member
  • *
  • Posts: 2747
  • Gender: Male
  • TWC Fan, 1998 - present
    • View Profile
  • Cable Provider: Other
  • WxStar Version: IntelliStar
Re: Website help?
« Reply #14 on: December 26, 2008, 06:56:01 PM »
that's a CSS thing, Chris. Look up CSS static background in google to see how to do it.
« Last Edit: December 26, 2008, 07:24:46 PM by jtmal0723 »