In the file includes/functions_newpost.php
replace :
PHP Code:
//Fermeture apres X posts Grog6 VBulletinDEV
$fermeture = $DB_site->query_first("SELECT fermeture FROM forum WHERE forumid = $foruminfo[forumid]");
if ($fermeture[fermeture] != "x") {
$reponses = $DB_site->query_first("SELECT replycount FROM thread WHERE threadid = $threadinfo[threadid]");
if ($fermeture['fermeture'] <= ($reponses['replycount']))
$DB_site->query("UPDATE thread SET open= '0' WHERE threadid = '$threadinfo[threadid]'");
}
PHP Code:
//Fermeture apres X posts Grog6 VBulletinDEV
$fermeture = $DB_site->query_first("SELECT fermeture FROM " . TABLE_PREFIX . "forum WHERE forumid = $foruminfo[forumid]");
if ($fermeture[fermeture] != "x" and $threadinfo[threadid] != '') {
$reponses = $DB_site->query_first("SELECT replycount FROM " . TABLE_PREFIX . "thread WHERE threadid = $threadinfo[threadid]");
if ($fermeture['fermeture'] <= ($reponses['replycount']))
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open= '0' WHERE threadid = '$threadinfo[threadid]'");
}
or Newthread will not work for any forums with set limit on replies