Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

Please sign in or apply for membership to remove the ads
  1.  
    Hi,

    Please can somebody help me here! The following is my page:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
    <?php require("/gallery/gallery.php"); ?>
    <!-- #BeginTemplate "master.dwt" -->

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- #BeginEditable "doctitle" -->
    <title>Photos</title>
    <!-- #EndEditable -->
    <link href="style3.css" rel="stylesheet" type="text/css" />
    <base target="_self" />
    <?php the_gallery_head(); ?>
    </head>

    <body>

    <!-- Begin Container -->
    <div id="container">
    <!-- Begin Masthead -->
    <div id="masthead" style="width: 744px; color: #000000; background-color: #FFFF99">
    <img src="images/pub%20-%20front%20on.jpg" alt="" height="132" width="167" /><p>
    Phone: (01398) 361374<br />
    Fax: (01398) 361375<br />
    Email: <a href="mailto:info@staplecrossinn.co.uk">
    info@staplecrossinn.co.uk</a></p>
    <h2>The Staplecross Inn at Hockworthy</h2>
    </div>
    <!-- End Masthead -->
    <!-- Begin Page Content -->
    <div id="page_content" style="width: 741px">
    <!-- Begin Sidebar -->
    <div id="sidebar">
    <ul>
    <li><a href="index.htm">Home</a></li>
    <li><a href="menu.htm">Menu</a></li>
    <li><a href="pics.htm">Pictures</a></li>
    <li><a href="local.htm">Local Attractions</a></li>
    <li><a href="findus.htm">Find us</a></li>
    <li><a href="booking.htm">Book a Table</a></li>
    <li><a href="contact.htm">Contact Us</a></li>
    </ul>
    </div>
    <!-- End Sidebar -->
    <!-- End Sidebar -->
    <!-- Begin Content -->
    <div id="content" style="left: 8px; top: 0px; width: 552px">
    <!-- #BeginEditable "content" -->
    <h2>Photo Gallery</h2>
    <?php the_gallery(); ?>
    <!-- #EndEditable --></div>
    <!-- End Content --></div>
    <!-- End Page Content -->

    <!-- Begin Footer -->
    <div id="footer" style="width: 744px; height: 50px;">
    <p><a href="index.htm">Home</a> | <a href="menu.htm">Menu</a> |
    <a href="pics.htm">Pictures</a> |
    <a href="local.htm">Local Attractions</a> |
    <a href="findus.htm">Find Us</a> |
    <a href="booking.htm">Book a Table</a> |
    <a href="contact.htm">Contact Us</a><br />
    Copyright © 2008 The Staplecross Inn. All Rights Reserved. Last Updated
    24/06/2008 </p>
    </div>
    <!-- End Footer --></div>
    <!-- End Container -->

    </body>

    <!-- #EndTemplate -->

    </html>

    This is online at www.staplecrossinn.co.uk/gallery.htm

    Can somebody please tell me why it doesn't work?

    If you goto staplecrossinn.co.uk/galley/index.php the gallery appears but not intgrated into the main frame!
    •  
      CommentAuthor_Eric_
    • CommentTimeJul 1st 2008
     
    The server must interpret your page as a PHP document. Try changing the file name to "gallery.php".
  2.  
    If I change the extension to gallery.php I now get HTTP 500 Internal Server??
    •  
      CommentAuthor_Eric_
    • CommentTimeJul 1st 2008
     
    I've just tested your code on my own server (with a separate gallery) and it's working fine. Are you sure the path to Plogger's gallery.php is correct? Should that first slash be there?
    •  
      CommentAuthorkimparsell
    • CommentTimeJul 1st 2008
     
    Line 3 of your php template file: <?php include("gallery/gallery.php"); ?> needs to be moved to the very beginning of the file, before <!DOCTYPE html PUBLIC
    Also, you have some strange characters before <!DOCTYPE html PUBLIC What are those? If you can see them in your editor, delete them.

    Note: I removed the beginning slash in the php include, and changed require to include. Use the code that I have above, and see if that solves the issue.
  3.  
    Many Thanks,

    Seemes to work fine now :)