Skip navigation
LadyFulton
Currently Being Moderated

Editing an Old Site

Apr 18, 2012 1:15 PM

I'm having a major problem with dreamweaver.  I have uploaded a site that belongs to a friend of mine.  The site is currently missing a header and all that is viewable is a gray box where it should be.  I tried pasting a new header over the old one.  I tried making a new template with a header and imposing it over the existing web page.  Everytime I upload, it changes the header on every page.  Unfortunately, in dreamweaver in live view it shows the new header and when i choose preview in browser it shows the new header.  But on the actual upload, it only displays a grey box. 

 

Also, when I saved this new header template thing for the home page, now it does not allow me to edit the rest of the page.  I am very worried about this because I followed the instructions to a perfect T and I have just had no luck.  I need to get this fixed and up as soon as possible.  I did not know it overwrote files so I no longer have the original that I can put back in the mean time. I need help please.  Very much!

 
Replies
  • Currently Being Moderated
    Apr 18, 2012 1:17 PM   in reply to LadyFulton

    What is the link to the website so we can view it in our browsers?

     
    |
    Mark as:
  • Jim Carpenter
    546 posts
    Apr 6, 2006
    Currently Being Moderated
    Apr 18, 2012 2:00 PM   in reply to LadyFulton

    You need to make sure your site is defined properly: Site/Manage Sites or Site/New and define it if it isn't defined yet.

     

    I don't think your graphic is uploaded to the web server. You have spaces in the files name, which I would not recommend. The problem is it is not finding your updated address header.jpg (notice the spaces)

     

    This looks like it is because you have not defined a site for this website.

     

    Jim

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 2:03 PM   in reply to LadyFulton

    Page can't find image

     

    http://www.accentawningco.com/erbfab.com/Corel%20Auto-Preserve/updated %20address%20header.jpg

     

    Locate the image

    Correct the path to it

    Lose the spaces in the image file name

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 2:50 PM   in reply to LadyFulton

    This page is not a child page spawned from a DW template, so any legit HTML & CSS code should be editable in DW.

     

    It was apparently created in this software

    <meta name="Generator" content="Incomedia WebSite X5 Evolution 8.0.16 - www.websitex5.com" />

     

    If your image is viewable in a browser,  there is no need to go back to your graphics program.

     

    This is a simple link path problem - find the image, rename it without spaces, place it in your images folder and correct the path in your pages' links.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 5:09 PM   in reply to LadyFulton

    Perfect time to learn SSI (server Side Includes). R E A L L Y  E A S Y

    and IMHO, even better than DW templates.

    Look it up to grasp the concept

     

     

    Verify that your hosting supports PHP code (nearly all do) then all you have to do is

     

    copy just the HTML code that you wrote to display your header,

     

    paste it in a text file and save it as header.inc

     

    at the location in the page where you copied the header code,

    replace the previously copied code with this bit of code:

    <?php require_once("header.inc"); ?>

     

    Repeat for all pages where you want the header to appear

     

    Change your page file names from blabla.htm to blabla.php

     

    Upload the header.inc file and your pages to the server.

     

    If a change is ever needed, you need only modify the header.inc file and upload that one file

    and the change will instantly appear in all pages  on the server

     

    If you need any clarification, call me a  9 1 4 - 9 4 1 - 3 6 1 6

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 5:27 PM   in reply to LadyFulton

    Holy Smokes -

     

    I just took a look at your code and  saw this comment: <!--#include file="header.html" -->

    So it appears you were already using SSI

     

    *blush*   Sorry if I wasted your time

     

    So all you have to do is add the call for the include file as you have it on the home page, to the other pages.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 5:37 PM   in reply to Ken Binney

    The presence of <!--#include file="header.html" --> in the code suggests that the include statement is not being parsed (processed) by the server.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2012 3:39 AM   in reply to John Waller

    Hey John, how're ya doin' ?

     

    There has probably been so much confusion about the site she is working on,

    that either the include file got wiped out or the call statements or both.

     

    Lady Fulton, the only code we can see is after the server has processed the file.

    Do you have any local pages with a call for an include file?

    If yes. please post the code for us.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2012 8:51 AM   in reply to LadyFulton

    Please call me

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points