Je crée un forum phpbb et j'ai un probleme avec un morceau de php qui manque juste apres "if":
if ( )
{
$sql = "SELECT *
FROM " . TOPICS_TABLE ."
WHERE topic_id = $topic_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}
$topic = $db->sql_fetchrow($result);
$topic_reply_sql = ( ($topic['topic_replies'] +1) >= $max_reply && $max_reply > 0 ) ? ', topic_status = 1' : '';
C'est un mod qui permet de limiter le nombre de post par topic mais il me manque ce bout de code!!!le mod est telechargeable ici : Mod nombre max de reponse au sujet
Merci