Not signed in (Sign In)

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

  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.<strong>php</strong>".
  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 :)
    • CommentAuthorMistermik
    • CommentTimeAug 15th 2011
     
    Hello I have the same problem that Mark had and I have spent the last 7 hours trying to figure it out. Can anyone tell me what I am missing? I am still very green to this.

    <?php include("PicGallery/gallery.php"); ?>
    <!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="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">


    <head>

    <?php the_gallery_head(); ?>

    <meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
    <meta http-equiv="content-language" content="{S_USER_LANG}" />
    <meta http-equiv="content-style-type" content="text/css" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="resource-type" content="document" />
    <meta name="distribution" content="global" />
    <meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    {META}
    <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

    <link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

    <script type="text/javascript">
    // <![CDATA[
    <!-- IF S_USER_PM_POPUP -->
    if ({S_NEW_PM})
    {
    popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
    }
    <!-- ENDIF -->

    function popup(url, width, height, name)
    {
    if (!name)
    {
    name = '_popup';
    }

    window.open(url.replace(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
    return false;
    }

    function jumpto()
    {
    var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
    var perpage = '{PER_PAGE}';
    var base_url = '{A_BASE_URL}';

    if (page !== null && !isNaN(page) && page > 0)
    {
    document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * perpage);
    }
    }

    /**
    * Find a member
    */
    function find_username(url)
    {
    popup(url, 760, 570, '_usersearch');
    return false;
    }

    /**
    * Mark/unmark checklist
    * id = ID of parent container, name = name prefix, state = state [true/false]
    */
    function marklist(id, name, state)
    {
    var parent = document.getElementById(id);
    if (!parent)
    {
    eval('parent = document.' + id);
    }

    if (!parent)
    {
    return;
    }

    var rb = parent.getElementsByTagName('input');

    for (var r = 0; r < rb.length; r++)
    {
    if (rb[r].name.substr(0, name.length) == name)
    {
    rb[r].checked = state;
    }
    }
    }

    <!-- IF ._file -->

    /**
    * Play quicktime file by determining it's width/height
    * from the displayed rectangle area
    *
    * Only defined if there is a file block present.
    */
    function play_qt_file(obj)
    {
    var rectangle = obj.GetRectangle();

    if (rectangle)
    {
    rectangle = rectangle.split(',')
    var x1 = parseInt(rectangle[0]);
    var x2 = parseInt(rectangle[2]);
    var y1 = parseInt(rectangle[1]);
    var y2 = parseInt(rectangle[3]);

    var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
    var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
    }
    else
    {
    var width = 200;
    var height = 0;
    }

    obj.width = width;
    obj.height = height + 16;

    obj.SetControllerVisible(true);

    obj.Play();
    }
    <!-- ENDIF -->

    // ]]>
    </script>

    </head>
    <body class="{S_CONTENT_DIRECTION}">

    <a name="top"></a>

    <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
    <td width="15" style="padding: 0;background: url('{T_IMAGESET_PATH}/left_bkg.gif') repeat-y; width: 15px;"></td>
    <td style="padding: 0;">

    <div id="wrapheader">



    <table cellpadding="0" cellspacing="0" width="100%" style="height: 100px;background: url({T_IMAGESET_PATH}/top_bkg.gif) repeat-x;">
    <tr>
    <td><center>


    <?php the_gallery(); ?>
    <table cellpadding="0" cellspacing="0">
    <tr>
    <td style="padding: 0;">
    <a href="{U_INDEX}"><img style="margin: -4px 40px -4px -4px;" src="{T_IMAGESET_PATH}/site_logo.gif" alt="{SITENAME}" /></a>
    </td><td>
    <h1>{SITENAME}</h1><span class="gen">{SITE_DESCRIPTION}</span>

    </td>
    </tr>
    </table>
    </center></td>
    </tr>
    </table>

    <table id="menu_bkg" cellpadding="0" cellspacing="0" width="100%" style="height: 34px;background: url({T_IMAGESET_PATH}/menu_bkg.gif) repeat-x;">
    <tr>
    <td style="padding: 0;">
    <center>

    <a href="{U_FAQ}">{L_FAQ}</a>

    <!-- IF U_RESTORE_PERMISSIONS --> &nbsp;-&nbsp;<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->

    <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;-&nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->

    <!-- IF not S_IS_BOT -->
    <!-- IF S_USER_LOGGED_IN -->
    <!-- IF S_DISPLAY_PM --> &nbsp;-&nbsp;<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
    <!-- ELSEIF S_REGISTER_ENABLED --> &nbsp;-&nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a>
    <!-- ENDIF -->
    <!-- ENDIF -->

    <!-- IF S_DISPLAY_SEARCH --> &nbsp;-&nbsp;<a href="{U_SEARCH}">{L_SEARCH}</a><!-- ENDIF -->
    <!-- IF not S_IS_BOT -->
    <!-- IF S_DISPLAY_MEMBERLIST --> &nbsp;-&nbsp;<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><!-- ENDIF -->
    <!-- IF S_USER_LOGGED_IN --> &nbsp;-&nbsp;<a href="{U_PROFILE}">{L_PROFILE}</a><!-- ENDIF -->
    <!-- ENDIF -->

    <!-- IF not S_IS_BOT -->&nbsp;-&nbsp;<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
    </center>
    </td>
    </tr>
    </table>


    <table cellpadding="0" cellspacing="0" width="100%" style="height: 30px;background: url({T_IMAGESET_PATH}/below_menu_bkg.gif) repeat-x;">
    <tr>
    <td style="padding: 0;">
    &nbsp;
    </td>
    </tr>
    </table>

    <div id="datebar">
    <table width="100%" cellspacing="0">
    <tr>
    <td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
    <td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
    </tr>
    </table>
    </div>

    </div>

    <div id="wrapcentre">

    <!-- IF S_DISPLAY_SEARCH -->
    <p class="searchbar">
    <span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
    <!-- IF S_USER_LOGGED_IN -->
    <span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
    <!-- ENDIF -->
    </p>
    <!-- ENDIF -->

    <br style="clear: both;" />

    <!-- INCLUDE breadcrumbs.html -->

    <br />


    php the gallery is 3/4ths the way down

    Thank you for your time