Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 12-11-2003, 03:38 AM   #1 (permalink)
Senior Member
 
Join Date: 10-14-03
Location: UK
Posts: 153
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
Problems with joining up 2 pages.

Hi,

I am trying to add a common footer page to my main pages.

I seem to be able to do this in php (with dreamweaver) at this test site:
http://www.privatesales24.com/php/

But when I try to do this with FrontPage using the "include page" function the footer page is not included:
http://www.privatesales24.com/fp/

I can see that the codes are there on the main page (index.htm):
<p>&nbsp;</p>
<!--webbot bot="Include" U-Include="footer.htm" TAG="BODY" startspan --><!--webbot bot="Include" endspan i-checksum="0" -->

Anyone familiar with FrontPage?

Could it be a server side problem? I am hosting it at a Unix server.
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-11-2003, 04:35 AM   #2 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,468
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to behold
Send a message via MSN to LazyJim
I do not know FP, but I would guess FP requires FP extensions on the host.

simply look up the code in your page made in DW and tranfer the PHP "island" of code to the FP code.

if u don't want to use PHP another option is SSI (server side includes) which work like a cross between the PHP and the FP solutions, but again, like any of those solutions, requires the host to have particular software installed. I think PHP is the most common of the three to be installed on hosts.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-11-2003, 02:46 PM   #3 (permalink)
Senior Member
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 339
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
Don't use the FP webbots. FP will always let you down. Guaranteed.

Use PHP or SSI. They will both be available on any half-decent hosting plan.

Alternatively, as I suggested recently on another thread, do it yourself manually. I run sites with thousands of pages using "find and replace" to update page components such as footers. It has fewer drawbacks than benefits and frees you from having to worry about anything like PHP or SSI. Honestly, it's just not the archaic system that some people will tell you it is. I've used them all and I'll stick with doing it manually.

It helps to use comments, then you can use regular expressions to find and replace. EG:
<!-- Begin Footer -->
Footer Stuff
<!-- End Footer -->
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-11-2003, 03:38 PM   #4 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,468
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to behold
Send a message via MSN to LazyJim
that means ppl have to download the code for headers and footers etc for every page!

SSI and PHP are common enough not to cause problems with finding the right host.

any sever performance lost to processing the includes would be offset by the extra time and bandwidth used to server the code multiple times.

so it's a trade-off, does your server suffer from too much PHP processing overheads, or too much loading?

This is a useful time for frames - they don't require processing or downloading after the 1st time! Other alternatives to frames should be available, but aren't really yet I don't think.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-11-2003, 04:49 PM   #5 (permalink)
Senior Member
 
Join Date: 10-14-03
Location: UK
Posts: 153
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
Dave and Jim, thanks for the comments.

Quote:
I run sites with thousands of pages using "find and replace" to update page components such as footers. It has fewer drawbacks
I don't have thousands of pages but I don't quite fancy the manual bit of uploading even 100 pages ....!
I think I'll stick to php for now.
But may I ask this: if I use php would the SE robots read the 3 joined pages (head, main and footer) as a single page everytime?
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-11-2003, 05:08 PM   #6 (permalink)
Senior Member
 
Join Date: 10-13-03
Posts: 220
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
I'd think that they would.

The 3 pages are seperate entities on the server only. When someone, or something, requests the page that they are included on, they are served as 1 page.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-11-2003, 05:56 PM   #7 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,468
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to behold
Send a message via MSN to LazyJim
yes they would be seen as a whole single page as Distorted says.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-11-2003, 06:21 PM   #8 (permalink)
Senior Member
 
Join Date: 10-14-03
Location: UK
Posts: 153
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
Fantastica! Thanks chaps.
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-13-2003, 11:07 AM   #9 (permalink)
Senior Member
 
Join Date: 10-14-03
Location: UK
Posts: 153
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
Hi all,

I am using php to join up the 3 pages (header,main,footer) and I was just wondering - should I put the TITLE and META TAGs on all 3 pages?

These tags ...
<html>
<head>
<title>xxx</title>
<meta name="description" content="xxxx.">
<meta name="keywords" content="xx">
</head>
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-13-2003, 11:15 AM   #10 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,504
iTrader: 0 / 0%
kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
no
that should all be in header...

if you want to different titles
on main page do $title = "Main Page"
then include header file..

in header file do
<title><?php echo $title; ?></title>
__________________
http://www.kylevarga.com - My blog.
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-13-2003, 06:39 PM   #11 (permalink)
Senior Member
 
Join Date: 10-14-03
Location: UK
Posts: 153
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
Thanks.

In that case should I also do the same for the keyword and description tags?
$keyword = "Main Page"

Google might not use the keyword tags but I think it uses the description in the SERPS - I would like it to describe each main page differently to suit its content.
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing 100's of pages...Google problems Matt1 Google Forum 5 09-12-2006 01:31 PM
Google sitemap problems and missing pages @ support pages ayanev Google Forum 2 03-19-2006 10:42 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 06:12 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.