ich wollte heute diesen Hack (von http://bbmod.sourceforge.net/index.php?mode=mod&id=4) in mein 2.0.6 Board einbauen. Soweit gab es auch keine Probleme beim Einbau - alles funktionierte, sprich der Beitragszähler erhöhte sich nicht. Doch wenn man auf "Neuen Beitrag" klickt, erschien folgende Fehlermeldung:
Code: Alles auswählen
Warning: Cannot add header information - headers already sent by (output started at /home/.sites/91/site417/web/tc/phpBB2/includes/functions_post.php:1663) in /home/.sites/91/site417/web/tc/phpBB2/includes/page_header.php on line 453
Warning: Cannot add header information - headers already sent by (output started at /home/.sites/91/site417/web/tc/phpBB2/includes/functions_post.php:1663) in /home/.sites/91/site417/web/tc/phpBB2/includes/page_header.php on line 454
Warning: Cannot add header information - headers already sent by (output started at /home/.sites/91/site417/web/tc/phpBB2/includes/functions_post.php:1663) in /home/.sites/91/site417/web/tc/phpBB2/includes/page_header.php on line 455
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
if ( $topic_update_sql != '' )
{
$sql = "UPDATE " . TOPICS_TABLE . " SET
$topic_update_sql
WHERE topic_id = $topic_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
}
#
#-----[ AFTER, ADD ]----------------------------------
#
$board_config['no_post_count_forum_id'] = $GLOBALS['board_config']['no_post_count_forum_id'];
if( strstr($board_config['no_post_count_forum_id'], ',') )
{
$fids = explode(',', $board_config['no_post_count_forum_id']);
while( list($foo, $id) = each($fids) )
{
$fid[] = intval( trim($id) );
}
}
else
{
$fid[] = intval( trim($board_config['no_post_count_forum_id']) );
}
reset($fid);
#
Danke für Eure Hilfe im voraus,
mueller