Problem beim Einbinden einer eigenen Startseite
Verfasst: 18.09.2008 02:12
Hi
Ich bin bei dem Versuch eine eigene Startseite einzubinden und wollte erst einmal ein funktionierendes Grundgerüst schaffen.
Nun, es ist mir nicht gelungen,...
Ich bin so vorgegangen:
Ich habe in .htacess folgende Zeile oben eingefügt, um die Startseite gleich zu Anfang zu laden:
DirectoryIndex lalforumstart.php index.php index.html index.htm
Sie sieht also so aus:
Dann habe ich eine .php Siete erstellt , sie lalforumstart.php genannt und in's root - Verzeichnis von phpbb3 gestellt, sie sieht so aus:
Noch ohne Inhaltsbereich, ich weiß 
Dann habe ich eine lalforumstart.html erstellt, un diese in's template-Verzeichnis meines styles gestellt, sie sieht so aus:
Die includes hatte ich schon an allen Stellen ausprobiert, also vor dem html - tag etc etc ..
Egal, was ich mache, ich bekomme, die Seite mit dem Board - Style, mit dem Header, dem Footer, aber ganz oben im Header erscheinen immer wieder die Zeilen:
<[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3545: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3547: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3548: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3549: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
Wie schaffe ich mir die vom Hals ?
Gibz irgendwo eine Newbie - Anleitung für den "Inhalt - Bereich" ?
Danke
lg
Michael
Ich bin bei dem Versuch eine eigene Startseite einzubinden und wollte erst einmal ein funktionierendes Grundgerüst schaffen.
Nun, es ist mir nicht gelungen,...
Ich bin so vorgegangen:
Ich habe in .htacess folgende Zeile oben eingefügt, um die Startseite gleich zu Anfang zu laden:
DirectoryIndex lalforumstart.php index.php index.html index.htm
Sie sieht also so aus:
Code: Alles auswählen
DirectoryIndex lalforumstart.php index.php index.html index.htm
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
Code: Alles auswählen
<<?php
// Benötigte Dateien und Variablen von phpBB
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Session auslesen und Benutzer-Informationen laden
$user->session_begin();
$user->setup();
$auth->acl($user->data);
/*
* Inhaltsbereich
*/
// Header und Titel der Seite
page_header('Forum Start');
// Angabe eurer Content-Seite
$template->set_filenames(array(
'body' => 'lalforumstart.html')
);
// Footer
page_footer();
?>
Dann habe ich eine lalforumstart.html erstellt, un diese in's template-Verzeichnis meines styles gestellt, sie sieht so aus:
Code: Alles auswählen
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en" lang="en">
<head>
<title>Forum Start/title>
</head>
<body>
<!-- INCLUDE overall_header.html -->
<h1>TEST</h1>
<a href="index.php">Zum Forum</a>
<!-- INCLUDE overall_footer.html -->
</body>
</html>
Egal, was ich mache, ich bekomme, die Seite mit dem Board - Style, mit dem Header, dem Footer, aber ganz oben im Header erscheinen immer wieder die Zeilen:
<[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3545: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3547: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3548: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3549: Cannot modify header information - headers already sent by (output started at /lalforumstart.php:1)
Wie schaffe ich mir die vom Hals ?
Gibz irgendwo eine Newbie - Anleitung für den "Inhalt - Bereich" ?
Danke
lg
Michael