MyBB.de Forum

Normale Version: Problem mit Newsplugin
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Tag Leute..Ich verwende auf meiner Seite das Newsplugin und bekomme aber immer folgenden Fehler..Dieser steht über den News drüber..Also zuerst Fehler und dann News..

Code:
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/k/net/pytalhost/kh-unlimited/web/index.php:11) in /srv/www/httpd/phost/k/net/pytalhost/kh-unlimited/web/board/inc/functions.php on line 1171

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/k/net/pytalhost/kh-unlimited/web/index.php:11) in /srv/www/httpd/phost/k/net/pytalhost/kh-unlimited/web/board/inc/functions.php on line 1171

Was soll ich machen?
Lad die index.php neu hoch.
Mak schrieb:Lad die index.php neu hoch.
An den Pfaden sieht man, dass die index.php nicht zum Forum gehört. Wink

Kannst du den Inhalt mal posten?
PHP-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
link rel="stylesheet" href="http://www.kh-unlimited.pytalhost.net/style.css" type="text/css" />
<
title>KH-Unlimited &raquoIndex</title>
</
head>
<
body>
<
table class="layout_table">
<
tr>
<? include(
"header.php"?>
</tr>
<tr>
<td class="layout_navi">
<? include("navi.php") ?>
</td>
<td class="layout_content">
<?php

define
("IN_MYBB"1);
define("KILL_GLOBALS"1);
define("NO_ONLINE"1);

// The Directory to the forum you are using this on. 
// You do not need a beggining or trailing slash
$directory_to_forum "board";

chdir($directory_to_forum);

require 
dirname(__FILE__)."/".$directory_to_forum."/global.php";

$plugins->run_hooks("site_news_plugin_run");

?>
<p>Hier steht eigentlich nur Dummytext.</p>
</td>
</tr>
<tr>
<? include("footer.php") ?>
</tr>
</table>
</body>
</html> 

Bitte..Meine index.php
Probiere es so:
PHP-Code:
<?php
define
("IN_MYBB"1);
define("KILL_GLOBALS"1);
define("NO_ONLINE"1);

// The Directory to the forum you are using this on. 
// You do not need a beggining or trailing slash
$directory_to_forum "board";

chdir($directory_to_forum);

require 
dirname(__FILE__)."/".$directory_to_forum."/global.php";
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://www.kh-unlimited.pytalhost.net/style.css" type="text/css" />
<title>KH-Unlimited &raquo; Index</title>
</head>
<body>
<table class="layout_table">
<tr>
<? include("header.php") ?>
</tr>
<tr>
<td class="layout_navi">
<? include("navi.php") ?>
</td>
<td class="layout_content">
<?php
$plugins
->run_hooks("site_news_plugin_run");
?>
<p>Hier steht eigentlich nur Dummytext.</p>
</td>
</tr>
<tr>
<? include("footer.php") ?>
</tr>
</table>
</body>
</html> 
Es geht fast..Es sieht jetzt so aus...

EDIT: Fehler gefunden und behoben..Klappt alles..