stop_post_count - Problem mit einbau
Verfasst: 05.08.2005 16:12
Hi.
Ich wollt mir grad den Mod stop_post_count installieren.
Alles ging soweit gut, nur ich hab Probleme mit einer Datei.
In der Anleitung steht:
Das erste geht ja noch alles gut.
Aber ich kann diesn Code hier nicht finden.
Der Code ist in meiner Datei nicht.
Ich benutz die version 2.0.17 falls das weiter hilft.
Achja.
die Datei ist hier
http://gfx-club.de/functions_post.txt
Ich wollt mir grad den Mod stop_post_count installieren.
Alles ging soweit gut, nur ich hab Probleme mit einer Datei.
In der Anleitung steht:
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);
#
#-----[ FIND ]------------------------------------------
#
if ( $mode != 'poll_delete' )
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $mode != 'poll_delete' && in_array($forum_id, $fid) == false )
#
Aber ich kann diesn Code hier nicht finden.
Code: Alles auswählen
#-----[ FIND ]------------------------------------------
#
if ( $mode != 'poll_delete' )
#
Ich benutz die version 2.0.17 falls das weiter hilft.
Achja.
die Datei ist hier
http://gfx-club.de/functions_post.txt