Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Controlling Aspects Of All Pages At Once ???
Old 11-21-2009, 04:24 AM Controlling Aspects Of All Pages At Once ???
oldtimer's Avatar
Novice Talker

Posts: 5
Name: Thomas
Location: Northwest US
Trades: 0
Ok, I'm sure the title is completely the wrong way to define what I am wanting to learn how to do, but I am not familiar with the proper terminology so please forgive me (if you can stop laughing at me for second that is) (;

Well, I guess I know my way around website development fairly well, and have a pretty good grasp of HTML/Dreamweaver usage and basic coding. What I have absolutely no knowledge about though is how to change a particular piece of each page on a website from one place opposed to changing the said code on each individual page.

To be clear, lets say I have a piece of code that will be changing monthly or so, and instead of going into each page and changing it manually, I want to change it all in 1 shot - site wide.

What I should mention is that the site in question is pure 100% HTML pages and Hostgator is my host.

Now I'm sure I have just been living in the dark ages and there is something very common that folks do to obtain this feature, so again very sorry for asking such a trivial question. for some reason it's just one of those things I never learned.

Any help would be greatly appreciated.
Thank you
oldtimer is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-21-2009, 04:31 AM Re: Controlling Aspects Of All Pages At Once ???
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Server side includes (self promo link)
There are ways it can be done without changing file name but that will depend on what your hosting supports.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-21-2009, 04:55 AM Re: Controlling Aspects Of All Pages At Once ???
oldtimer's Avatar
Novice Talker

Posts: 5
Name: Thomas
Location: Northwest US
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Server side includes (self promo link)
There are ways it can be done without changing file name but that will depend on what your hosting supports.

Thank you very very much for responding. I was not thinking it would be that complicated. I don't want to change any file names or do anything to extensive. I was reading up on 'Master Page' is this something that could control all pages from one page like I mentioned? Just curious -

I just have the standard shared server at Hostgator
oldtimer is offline
Reply With Quote
View Public Profile
 
Old 11-21-2009, 05:01 AM Re: Controlling Aspects Of All Pages At Once ???
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
"Master Pages" is a ASP.net feature so that probably won't be available to you currently.

If your current hosting is apache and supports SSI it is possible to accomlish without changing filenames or ectensions at all.
It's doubtful that you will have a scripting available and will be impossible to do if you are on Windows hosting because it will need some action by your hosting company and with Hostgator it simply isn't going to happen!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-21-2009, 05:09 AM Re: Controlling Aspects Of All Pages At Once ???
oldtimer's Avatar
Novice Talker

Posts: 5
Name: Thomas
Location: Northwest US
Trades: 0
Quote:
Originally Posted by chrishirst View Post
"Master Pages" is a ASP.net feature so that probably won't be available to you currently.

If your current hosting is apache and supports SSI it is possible to accomlish without changing filenames or ectensions at all.
It's doubtful that you will have a scripting available and will be impossible to do if you are on Windows hosting because it will need some action by your hosting company and with Hostgator it simply isn't going to happen!
Ya know, I thought I knew a thing or 2 but you are reminding me how little I actually know haha. I don't understand exactly what you mean, but does it pertain to this: http://support.hostgator.com/article...-side-includes ?

I do fiddle with my .htaccess file, so I know that part is atleast possible.

I am at witts ends and might be out of my leauge
oldtimer is offline
Reply With Quote
View Public Profile
 
Old 11-21-2009, 05:25 AM Re: Controlling Aspects Of All Pages At Once ???
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Ok let's see if they can be used then.

Add
Code:
AddType text/x-server-parsed-html .html .htm
To your .htaccess file

then create two files in the root folder.

called include.htm
HTML Code:
<html>
<head>
<title>Testing for include</title>
</head>
<body>
<!--#include file="test.htm"--> 
</body>
</html>
And test.htm
HTML Code:
<h1>Includes are working!</h1>
Then put your sitename/include.htm into your browser and see what happens

if the heading appears then Whoo! Hoo! you're in business and have just written your first server side include.
Yep, it really is that simple.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-21-2009, 05:39 AM Re: Controlling Aspects Of All Pages At Once ???
oldtimer's Avatar
Novice Talker

Posts: 5
Name: Thomas
Location: Northwest US
Trades: 0
Brewing coffee, and then it's time to dig in. I will let you know asap.
oldtimer is offline
Reply With Quote
View Public Profile
 
Old 11-21-2009, 06:29 AM Re: Controlling Aspects Of All Pages At Once ???
Junior Talker

Posts: 1
Name: Jerrica walton
Trades: 0
Thanks so much for the post! It is such interesting information.

Last edited by chrishirst; 11-21-2009 at 09:51 AM.. Reason: signature turned off
Jerrica walton is offline
Reply With Quote
View Public Profile
 
Old 11-21-2009, 06:33 PM Re: Controlling Aspects Of All Pages At Once ???
oldtimer's Avatar
Novice Talker

Posts: 5
Name: Thomas
Location: Northwest US
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Ok let's see if they can be used then.

Add
Code:
AddType text/x-server-parsed-html .html .htm
To your .htaccess file

then create two files in the root folder.

called include.htm
HTML Code:
<html>
<head>
<title>Testing for include</title>
</head>
<body>
<!--#include file="test.htm"--> 
</body>
</html>
And test.htm
HTML Code:
<h1>Includes are working!</h1>
Then put your sitename/include.htm into your browser and see what happens

if the heading appears then Whoo! Hoo! you're in business and have just written your first server side include.
Yep, it really is that simple.

Very sorry for the delay on my status. Unfortunately it did not work .. the header did not show. Bummer
oldtimer is offline
Reply With Quote
View Public Profile
 
Old 11-21-2009, 07:20 PM Re: Controlling Aspects Of All Pages At Once ???
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
What did show?

In the source code as well as visible.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Controlling Aspects Of All Pages At Once ???
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.80628 seconds with 12 queries