Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9
  1. #1
    Member suz4x4's Avatar
    Join Date
    Mar 2007
    Location
    Long Island, NY
    Posts
    78
    Member #
    14978
    My server allows for SSI and the include is working but it is pushing things around I am guessing it has something to do with the css? and I have no clue where to being on how to fix it. It took me all day just to get the include to even work. I want to make it easier to change all the links on the header and footer instead of changing every page.

    This is the test include page & this page is how I need it to look (this does not have any includes in it)

    If there is a better way to do it or I am doing something wrong please let me know, Thanks for you help!
    Sue

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,694
    Member #
    5580
    Liked
    717 times
    Right away, I see a problem ....

    <body>

    <!-- header -->
    <div id="header">
    <!-- header -->
    <div id="header">
    <img src="../i/logo.jpg" width="750" height="73" alt="Colleran, O'Hara &amp; Mills" />



    There are multiple <div id="header">

    ==============

    What exactly is the SSI part that you're including?

    Now days, SSI is sort of sliding away as people are now using PHP instead.

    PHP also had "includes" along with scripting to control content.

    Here's an example of what I mean ...
    http://www.palosantodesigns.com/

    All of the pages are dynamically created using PHP.
    If you mouse over the links and look at the URLs, you'll see that
    there is really only one PHP script (called "page.php") and a code attached
    that tells the script which text file to include for the content.

    Although it uses text files instead of a database, it's very similar to the way
    most PHP sites work, like WordPress blogs, forums, etc. PHP scripting creates
    the web pages on the fly by filling the content from a database or text files.

    This allows the client to edit a text file, which in fact is editing the content.


  4. #3
    Member suz4x4's Avatar
    Join Date
    Mar 2007
    Location
    Long Island, NY
    Posts
    78
    Member #
    14978
    Hi,

    Thanks for your reply, I see where you see the multiple header when I view the source but on my end in my editor I see something different so I will post the code I see which shows the include comment in it not the multiple header divs. I will have to learn php then to do it that way or is it something that could be done easily?
    What I am trying to achieve is having the header and footer as a include so If I have any changes that I will only have to edit those pages instead of all the pages as it is set up now.
    Thanks for you help and here is the code below...

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="EN-US">
    
    <head>
        <title>Colleran, O'Hara &amp; Mills - A full Service Law Firm Specializing in Labor Law</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <meta name="robots" content="index, follow" />
        <meta name="description" content="Colleran, O'Hara &amp; Mills - A full Service Law Firm Specializing in Labor Law" />
        <meta name="keywords" content="Colleran, O'Hara & Mills, Taft Hartley Benifit Funds, Taft Hartley, Labor Law, Employment Law, Law Firm, litigation, attorney, funds" />
        <meta name="author" content= "Susan A. O'Rourke" />    
        
        <link rel="stylesheet" href="../css/csscohm2.css" type="text/css" media="screen,print" />
        
    </head>
    
    <body>
    
    <!-- header -->
    <div id="header">
        <!--#include virtual="/includes/header.ssi" -->
        </div>
        <div id="header-wrap">
            <img src="../i/header-pic/cohmcollage.jpg" width="220" height="214" alt="collage of images representing COHM" class="headerpic" />
            <div id="top-block">
                <div style="padding:10px;"><!-- Google CSE Search Box Begins  -->
    <form action="http://www.google.com/cse" id="searchbox_017951731933203588137:lpwy8upkdsc">
      <input type="hidden" name="cx" value="017951731933203588137:lpwy8upkdsc" />
      <input type="text" name="q" size="25" />
      <input type="submit" name="sa" value="Search" />
    </form>
    <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_017951731933203588137%3Alpwy8upkdsc&lang=en"></script>
    <!-- Google CSE Search Box Ends --></div>
                <div class="top-block-left">
                    <div><img src="../i/specializing.gif" alt="A Full Service Law Firm Specializing in Labor Unions &amp; Taft Hartley Benifit Funds" style="padding-top: 20px;" /></div>
                </div>
                <div class="top-block-right" style="background-image:   url(../i/header-pic/block.jpg);">
                <address>Colleran, O'Hara &amp; Mills L.L.P.<br />
                        1225 Franklin Ave, Suite 450<br />
                        Garden City, NY 11530<br />
                        Phone: 516-248-5757<br />
                        Fax: 516-742-1765</address>
                </div>
            </div>
    </div>
    
    <!-- END OF header -->
    
    <div id="content-wrap">
    <!-- content -->
    <div id="content">
        <h2>COLLERAN, O'HARA &amp; MILLS L.L.P.</h2>
    <img src="../i/home/nyc_r.jpg" alt="view of nyc at night" title="View of NYC at night" height="90" width="140" class="floatright" />    
    <p>Colleran O'Hara &amp; Mills LLP has been committed to providing our clients with superior professional 
    legal services since 1963. Colleran O'Hara &amp; Mills is distinguished by the depth, scope and diversity
     of its talented attorneys. Over the past forty-five years, Colleran O'Hara &amp; Mills LLP has been a 
     leader in the field of representing labor organizations and their related health and benefit funds.</p><br />
        
    <img src="../i/home/nyc_construction_worker.jpg" alt="construction worker in nyc" title="Construction Worker in NYC" height="93" width="140" class="floatleft" />        
        <p>The Firm's attorneys have decades of experience practicing in the areas of
          ERISA, Collective  Bargaining, NLRB Proceedings, Union Governance and Organizing,
          Arbitration, Election Laws and
        General Litigation. The Firm's lawyers have practiced extensively in Federal
          and State Courts,  including the Supreme Court of the United States, and
          administrative agencies such as National 
        Labor Relations Board(“NLRB”)and New York State Public Employment Relations
        Board (“PERB”).</p>
        <br />
            
    <img src="../i/home/construction_site_silhouette.jpg" alt="silhouette of construction site" title="Sillhouette of Construction Site in NYC" height="90" width="137" class="floatright" />        
        <p>The Firm has extensive experience in the representation of employee
          benefit funds,  having pioneered in the areas of pension, health and annuity
          funds, pre-paid legal services funds,
         apprenticeship funds and a range of supplemental funds including vacation
          funds, additional  benefit funds, scholarship funds and mortgage programs
          for fund participants. For over forty years, 
         the firm has been committed and dedicated to providing its clients with
          superior legal representation in various areas of the law.  The firm prides
          itself in its ability to meet the personalized needs of its clients.</p>
        <br />
    
    </div>
    <!-- END OF content -->
    
    <!-- sidebar -->
    <div id="sidebar">
        <h4>Latest News</h4>
        <p>COH&amp;M's attorneys are committed to staying up to date with the law and news
          in thier field. <a href="news.html">read more</a></p>
        <div class="line"></div>
        <h4>Practice Areas</h4>    
        <p>COH&M is a full service labor law firm qualified to serve your needs. <a href="areas_of_practice.html">read more</a></p>
        
        <div class="line"></div>
        
        <h4>Contact Us</h4>
        <p>To contact COH&M call or email our office today. <a href="contact.html">read more</a> </p>
        
        <div class="line"></div>    
        <h4>Statement of Client Rights</h4>
    <p>Know your Rights. <a href="statement_of_client_rights.html">read more</a> </p>
        <div class="line"></div>    
    </div>
    <!-- END OF sidebar -->
    <div class="push"></div>
    </div>
    
    <!-- footer -->
    <div id="footer">
        
    <!--#include virtual="/includes/footer.shtml" --></div>
    <!--END OF footer -->
    
    </body>
    </html>

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,694
    Member #
    5580
    Liked
    717 times
    Look at this part:

    <!-- header -->
    <div id="header">
    <!--#include virtual="/includes/header.ssi" -->
    </div>


    Within "header.ssi", you already have <div id="header"> defined,
    so swap the part shown above with this:

    <!-- header -->
    <!--#include virtual="/includes/header.ssi" -->



    The same thing with the footer ...

    Change this:

    <!-- footer -->
    <div id="footer">

    <!--#include virtual="/includes/footer.shtml" --></div>
    <!--END OF footer -->



    To this:

    <!-- footer -->
    <!--#include virtual="/includes/footer.shtml" --></div>


  6. #5
    Member suz4x4's Avatar
    Join Date
    Mar 2007
    Location
    Long Island, NY
    Posts
    78
    Member #
    14978
    I see what you pointed out so does that mean you should have the
    div id= on the page that is going to be included or should it be on the page you are inserting the include comment into? but not on both? just so I understand in for the future.
    what you suggested worked for the perfect for the footer but the header is still not aligned properly. not sure what I am doing wrong.

    Thanks for your help!
    Sue

  7. #6
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,694
    Member #
    5580
    Liked
    717 times
    Yes, one or the other, but not both.
    It's a personal preference which one to do.
    I like the way you did it, with the <div> defined in the included file.

    I'll study the other problem and get back to you.

    EDIT:

    So here's what I did ...

    I viewed the "good" page and printed out the HTML on paper.
    I viewed the "bad" page and printed out the HTML on paper.

    I layed them side-by-side on the kitchen table and compared them ...


    The "good" page has this:

    Fax: 516-742-1765</address>
    </div>
    </div>
    </div>
    </div>
    <!-- END OF header -->



    The "bad" page has this (missing a </div>)

    Fax: 516-742-1765</address>
    </div>
    </div>
    </div>
    <!-- END OF header -->



    The "good" page has this:

    <p class="copy">Last Updated March, 2008</p><p>
    </p></div>
    <!--END OF footer -->

    </body>
    </html>



    The "bad" page has this (extra </div>)

    <p class="copy">Last Updated March, 2008</p><p>
    </p></div>
    <!--END OF footer -->

    </div>
    <!--END OF footer -->

    </body>
    </html>


  8. #7
    Member suz4x4's Avatar
    Join Date
    Mar 2007
    Location
    Long Island, NY
    Posts
    78
    Member #
    14978
    Thank you that is a good way to find what your mistakes are! I will add the missing info and see if that fixes the issue. thank you for your help and sorry it took me so long to get back to you! I'll let you know how I make out with it.:classic:
    Q~

  9. #8
    Member suz4x4's Avatar
    Join Date
    Mar 2007
    Location
    Long Island, NY
    Posts
    78
    Member #
    14978
    Hi,

    I am stumped again.... the footer is working fine the header still is off on the include page. What it should look like is here. I tried adding and deleting divs and nothing changed at all so I left it as it was. I obviously am missing what is causing it to shift. I looked it over and I guess I have viewed it so many times I don't see the mistake.

    Thanks for you help,

    Sue

  10. #9
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,694
    Member #
    5580
    Liked
    717 times
    suz ...

    If you can trust me on this,
    PM (private message) me with your FTP account information.

    I can go in and try to find the problem.
    It's too hard for me to duplicate your site (too many graphics, etc.)

    I can tell you're getting frustrated. I have no problem going in and helping out.

    Once I'm done, you can change your password to something else.



Remove Ads

Posting Permissions

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

Search tags for this page

ssi includes not working properly

Click on a term to search for related topics.
All times are GMT -6. The time now is 11:05 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com