You are here: Re: Creating a default footer on a page « HTML « IT news, forums, messages
Re: Creating a default footer on a page

Posted by JAF on 11/26/41 11:55

On 8 Aug 2006 01:32:07 -0700, "Advo" <max_mischief@hotmail.com> wrote:

>Hi there. basically what we are trying to do is create a default footer
>page (links.html) which we can then have on every one of our pages,
>meaning we dont have to change loads of pages, but just one page
>(links.html) if things need altering.

snip

>then viewing our current main page would also show that, thus it looks
>like all the links etc within the links.html page, also appear in the
>source of the main page, this is for SEO reasons etc.
>
>Any ideas please?
>
>Thanks for your time

Why don't you want to consider something like php?

Someone must have some misconceptions about SEO or how html pages are
generated on the web and not understand how php is seen by the server
but not the search engine or web browsers.

Let me make a case of php, but the ideas I will throw out are
applicable to many other approaches and languages, not just php.

I too have tried to do what you are trying to do. After flailing
around with frames and iframes and server side includes, I settled on
php. (to work your server has to be able to process php of course.
Is this the problem?)

Let me give you an example, but remember one thing before I begin: php
code is only seen by the server. Visitors to your web site will see
html code only, not php code. Perhaps the person that has placed
restrictions on you does not know this. Now the sample.

If I have an html page, I "include" a text file which contains php
code. For example, my html page, when viewed on the server, has this
code in it:

<TD>

<? include $phpdir . "home_line_links.txt"; ?>

</TD>

The actual html code for the links is obviously in
home_line_links.txt.

But here is the same html code when viewed by a browser, which is also
what a search engine sees:

<TD>

<P align=center><A
href="http://www.bscinc.net/index.php">Home</A> </FONT>

snip - Note: more links go here

</P>

</TD>

If I were to modify my home_line_links.txt file that contains all of
the links, every page that includes it will instantly reflect the
change.

Now your html page has to be parseable by php, ie your html page in
effect as to be a php page. But you do not have to use the extension
..php only. Web pages with the extension .html can be used for php.
(By the way Google and other search engines have no trouble with .php
as an extension. Search on almost anything on the web and you should
see in the first 10 pages the extension .php somewhere in the link.)

And if you want the links to be on their own page, You can create a
separate web page just to hold the links. A site map page does this
also by the way.

The reason I wanted to bring up the php in spite of your saying it was
not an option is this: using php, and other languages also, can
greatly reduce the time of maintaining pages. You are trying to find
a way to save on maintaining bottom links, but php can help reduce
maintenance time in many ways.

I started using php when I realize so much of my html code from page
to page was the same. Many sections on one page, from the header to
top links to side links to bottom links to parts of my content were
the same on other pages.

Why retype these sections when creating a new page? Not only that but
why spend time when I had to change a link on one page, say for the
left navigation links, when I could change it on all pages with a
minimum of typing?

For example, on some web sites I have done, I created what I call a
web site heading. The web site heading consists of a marketing tag
line, like "World's Greatest Widgets", and I put this on the top of
every page along with the appropriate heading tags. I do this with
the php include code shown above, referring to a web_heading.txt file
that contains the appropriate code.

Then about every two months or so, I go in and change the tag line to
something like, "Affordable Widgets" or "Plastics Widgets" or "Small
Business Widgets". Once I have changed one line in the php text file,
all of my web pages that have included this text file in them now have
a new heading in them.

Hope this helps. If you are uncomfortable about php or if the owner
of the web site is uncomfortable, I can email you some samples to show
how easy php is for doing what you want to do.

Best regards,

JAF
http://www.bscinc.net
http://www.affordablefloridainsurance.com
http://www.americanltci.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация