Implementing Site Template into layout of Coppermine Implementing Site Template into layout of Coppermine
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Implementing Site Template into layout of Coppermine

Started by willstein, September 27, 2005, 08:21:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

willstein

I am trying to add the <header> include and the <footer> include that my site uses into coppermine as well.

When I do, the site looks ok, but the following errors are returend:

Warning: Cannot modify header information - headers already sent by (output started at /home/stfusa/public_html/includes/TemplateTop.php:27) in /home/stfusa/public_html/gallery/themes/water_drop/theme.php on line 813

Warning: Cannot modify header information - headers already sent by (output started at /home/stfusa/public_html/includes/TemplateTop.php:27) in /home/stfusa/public_html/gallery/themes/water_drop/theme.php on line 814

Warning: Cannot modify header information - headers already sent by (output started at /home/stfusa/public_html/includes/TemplateTop.php:27) in /home/stfusa/public_html/gallery/include/functions.inc.php on line 51


----------
The following is the code for TemplateTop.php
----------

<?
session_start();
header("Cache-control: private");

include ($shost."includes/dbInfo.php");
$database = "users";

if(!array_key_exists('username', $_SESSION))  {
$access = 1;
}
else {
$username = $_SESSION['username'];
$query = "SELECT * FROM $database WHERE username = '$username'";
$result = mysql_query($query);
$access = mysql_result($result, 0, "access");
}

if($access < $security) {
?> <META HTTP-EQUIV="Refresh" CONTENT="2;URL=<? echo $ihost; ?>pleaselogin.php"> <?
exit();
}

?>

<html>
<head>
<title>Special Task Force USA - <? echo $title ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<link rel="stylesheet" type="text/css" href="/stfusa.css">
</head>

<body background="<? echo $ihost; ?>images/bg.gif" text="#333333" link="#990000" vlink="#990000" alink="#990000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="770" border="0" cellpadding="0" cellspacing="0" class="bodyborder">
  <tr>
    <td colspan="2" valign="bottom"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="148" align="absbottom">
      <param name="movie" value="/flash/header.swf">
      <param name="quality" value="high">
      <embed src="/flash/header.swf" width="770" height="148" align="absbottom" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
    </object></td>
  </tr>
  <tr>
    <td width="25%" valign="top" bgcolor="#32195B"><div align="center">
      <?php include($shost."/includes/categories.php"?>
    </div></td>
    <td width="75%" valign="top">


Any suggestions would be appreciated.

Joachim Müller

coppermine doesn't work that way. This has been discussed in the past, search this sub-board for "custom header".

willstein

#2
I've been looking extensively but I couldn't find it (or didnt recognize it). Any suggestions?

Joachim Müller

oh yeah? I was able to find several postings that explain this in detail, e.g. http://forum.coppermine-gallery.net/index.php?topic=9863.0, doing the very thing I told you to do: use the search. You could have taken a look at the FAQ as well...