Page 1 of 3 123 LastLast
Results 1 to 15 of 40

Thread: SSI

  1. #1
    5 Star Lounger
    Join Date
    Jun 2001
    Location
    USA
    Posts
    708
    Thanks
    48
    Thanked 1 Time in 1 Post

    SSI

    <P ID="edit" class=small>(Edited by Jon_Rick on 04-Jan-06 07:54. )</P>Here's my problem (that post includes header.htm, and this post includes index.htm).

    WyllyWylly's reply is here, but changing header.htm to header.shtm didn't work.

    You can view the files at http://www.jonathanrick.com/index2.htm and http://www.jonathanrick.com/header.shtm.

    Thanks!

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: SSI

    Where is the server-side code to be processed? If it's in the index page, you would have to rename the index page with an extension that the web server examines for server-side includes.

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: SSI

    In addition to Jefferson's suggestion, be sure to verify that SSI is enabled on the server (or site, or virtual directory).

  4. #4
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: SSI

    There are two problems:<UL><LI>It's index2.htm that needs to be changed to index2.shtm (not header.htm to header.shtm).
    <LI>Your reference in index2.htm is to header.htm NOT header.shtm - either rename header.shtm back to header.htm or change the reference in index2 to header.shtm[/list]Hope this helps,
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

  5. #5
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: SSI

    Something I've discovered with my ISP is that .shtm files are not recognised; the file extension has to be .shtml. (.shtm files are displayed as text files, showing the page source in full, whereas .shtml files display correctly).
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

  6. #6
    5 Star Lounger
    Join Date
    Jun 2001
    Location
    USA
    Posts
    708
    Thanks
    48
    Thanked 1 Time in 1 Post

    Re: SSI

    Thanks guys for your help. Sorry for the delay in my response.

    I just called my host, which is 1&1, and unfortunately the package I'm using does not include SSI.

    Any way around this?

    To recap, I want to remove the header stuff from each individual Web page and instead link to one file that includes the header stuff.

    Thanks so much.

  7. #7
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: SSI

    Hi Jon

    There is another way, give me a little while I have samples of your files and I can put an example together for you.
    Jerry

  8. #8
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: SSI

    Hi Jon

    Back to our old friend the iframe originally mentioned by Jeff. Not my favourite method and one I have not used for a very long time. I have attached the files in a zip for you to look at.

    I was going to suggest another way which was using a library file (lbi) which developers use in Dreamweaver and is great as it is just a matter of dragging the contents from the library panel. If you use Dreamweaver or can get hold of a copy it is a very useful tool.

    I am still of the opinion of having a file stored away somewhere in its own folder on your PC and using it as a template, then you do not have to always keep writing the top code for your banner. Have a look at this attachment and I shall scurry off as I have an idea which I am experimenting with, but don't hold your breath
    Jerry

  9. #9
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: SSI

    Your MS hosting package should include ASP. You can do a very similar thing in ASP (naming your home page index.asp). Here's some more info:
    4GuysFromRolla.com - The low-down on #<code>include</code>s

  10. #10
    5 Star Lounger
    Join Date
    Jun 2001
    Location
    USA
    Posts
    708
    Thanks
    48
    Thanked 1 Time in 1 Post

    Re: SSI

    Hi Jerry,

    Thanks a lot for the attachment. It's now live at http://www.jonathanrick.com/index3.htm.

    There's just one thing: compare index3 with index.htm, and you'll notice two things about the Google ad:

    1. a border now surrounds it; and

    2. it's shifted to the left and down from the top right corner.

    Any idea what went wrong? Many thanks!

  11. #11
    5 Star Lounger
    Join Date
    Jun 2001
    Location
    USA
    Posts
    708
    Thanks
    48
    Thanked 1 Time in 1 Post

    Re: SSI

    Thanks Jefferson. It seems, however, that what Jerry worked out is easier.

  12. #12
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: SSI

    Hi Jon

    The border was done by me when I was testing your google add problem in the other thread. I put it there as a test...sorry to confuse you.

    Look at .floatright in the css and get rid of:


    border : 1px solid #000000 ;
    padding : 1px 1px 1px 1px ;

    I believe your original said

    .floatright { float: right; }

    The problem may also be that I added an external css (my preferred way of working as it keeps my html page code cleaner) and you have style tags. So there will be a doubling of css. As the bbanner has an external css, you can also delete the .floatright in your main html page as itis not required
    Jerry

  13. #13
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: SSI

    Ok Jon

    I shall have a look.

    I think I need to start from scratch as I was working from the old files. Give a little time and let us get this cracked for sure <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Jerry

  14. #14
    5 Star Lounger
    Join Date
    Jun 2001
    Location
    USA
    Posts
    708
    Thanks
    48
    Thanked 1 Time in 1 Post

    Re: SSI

    <P ID="edit" class=small>(Edited by Jon_Rick on 08-Jan-06 11:37. )</P>Jerry,

    I deleted what you said from mainjon.css, so the border is now gone.

    But deleting ".floatright" from index3.htm doesn't have the desired effect: instead of tilting the Google ad up and to the right, it puts the ad and the Jon pic in their own frame on the far left...

    Thanks.

  15. #15
    5 Star Lounger
    Join Date
    Jun 2001
    Location
    USA
    Posts
    708
    Thanks
    48
    Thanked 1 Time in 1 Post

    Re: SSI

    Hi Jerry,

    I don't know what happened, but index3 now looks good.

    Almost [img]/forums/images/smilies/smile.gif[/img]. Open index.htm, look at the position of the Google ad, then open index3.htm in the same window.

    Notice the change?

    Index3 shifts the ad down and to the left. Can you figure out why this happens?

    Thanks as always,

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •