[SOLVED]minimal synthax for wrapping

tistou

Joined: 2005-03-13
Posts: 16
Posted: Tue, 2005-05-10 15:22

hi,
Gallery is the most important part of my website, so instead of integrating it to my website, i would like to "wrap" the few other pages I have with Gallery's headers and footers.

to do that, i followed Gaile's tutorials and added a css horizontal menu in the wrapper.header.

Then, i copied albums.php (main page) to test.php and left only what seemed necessary to leave the wrapping system, and put my page's code inside.

Looks like i did this last operation wrong because I get this error in my browser :

Quote:
Warning: Cannot add header information - headers already sent by (output started at /mnt/data/ftp/www/test.php:9) in /mnt/data/ftp/www/lib/lang.php on line 356

Warning: Cannot add header information - headers already sent by (output started at /mnt/data/ftp/www/test.php:9) in /mnt/data/ftp/www/lib/lang.php on line 356

the w3c validator says there is no doctype but if I put "doctype();" inside the php code, the the browser will say the function doctype() is not defined... I can't find out where it is defined!

So if anyone could explain me what lines in albums.php are really necessary for the wrapping, i'd be very thankful!

anyways, here is the code of my test.php file :

<html>
<head>
<title> my title </title>
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="content-type" content="Mime-Type; charset=ISO-8859-1">
<meta name="content-language" content="fr-FR">

<link rel="stylesheet" type="text/css" href="mydomain.com/base.css.default">
<link rel="stylesheet" type="text/css" href="mydomain.com/css/screen.css">

<link rel="shortcut icon" href="mydomain.com/images/favicon.ico">
<link rel="alternate" title="<TITLE> RSS" href="mydomain.com/rss.php" type="application/rss+xml">
</head>
<body>

<?php
/*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2005 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id: albums.php,v 1.191.2.3 2005/03/10 02:29:33 cryptographite Exp $
*/

?>
<?php
require_once(dirname(__FILE__) . '/init.php');
require_once(dirname(__FILE__) . '/includes/stats/stats.inc.php');

includeHtmlWrap("wrapper.header");
?>

contents of my page

<!-- gallery.footer begin -->
<?php
includeHtmlWrap("wrapper.footer");
?>
<!-- gallery.footer end -->

</body>
</html>

 
tistou

Joined: 2005-03-13
Posts: 16
Posted: Tue, 2005-05-10 17:05

i solved the problem by gradually commenting out stuff
sorry for my useless post...

 
user32000

Joined: 2007-03-03
Posts: 2
Posted: Sat, 2007-03-10 16:08

I would think it a very useful post if you could please post the results of your 'gradually commenting out'? Thanks!

 
sherriep

Joined: 2007-03-10
Posts: 1
Posted: Sat, 2007-03-10 18:02

Gallery is the most important part of my website also, I would like to "wrap" the few other pages I have with Gallery's headers and footers as you have done. Could you give me detailed instructions as to what you edited and where you found it. I'm using V1.5 of gallery. Thank you!