en regardant un peu meiux tes modifications que tu as effectués sur les tables, il y a comme un petit soucis
tu ne récupères pas les valeurs de l'auto-increment donc lorsque tu créeras de nouveaux sujets, il se pourra que tu tombera sur une valeur déjà existante et là erreur MySQL
pour la table prefix_bb_posts
CREATE TABLE IF NOT EXISTS `prefix_bb_posts` (
`post_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`pid` int(10) unsigned NOT NULL DEFAULT '0',
`topic_id` int(8) unsigned NOT NULL DEFAULT '0',
`forum_id` smallint(4) unsigned NOT NULL DEFAULT '0',
`post_time` int(10) unsigned NOT NULL DEFAULT '0',
`uid` int(10) unsigned NOT NULL DEFAULT '0',
`poster_name` varchar(255) NOT NULL DEFAULT '',
`poster_ip` int(11) NOT NULL DEFAULT '0',
`subject` varchar(255) NOT NULL DEFAULT '',
`dohtml` tinyint(1) unsigned NOT NULL DEFAULT '0',
`dosmiley` tinyint(1) unsigned NOT NULL DEFAULT '1',
`doxcode` tinyint(1) unsigned NOT NULL DEFAULT '1',
`dobr` tinyint(1) unsigned NOT NULL DEFAULT '1',
`doimage` tinyint(1) unsigned NOT NULL DEFAULT '1',
`icon` varchar(25) NOT NULL DEFAULT '',
`attachsig` tinyint(1) unsigned NOT NULL DEFAULT '0',
`approved` smallint(2) NOT NULL DEFAULT '1',
`post_karma` int(10) unsigned NOT NULL DEFAULT '0',
`attachment` text,
`require_reply` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`post_id`),
KEY `uid` (`uid`),
KEY `pid` (`pid`),
KEY `forum_id` (`forum_id`),
KEY `topic_id` (`topic_id`),
KEY `subject` (`subject`(40)),
KEY `forumid_uid` (`forum_id`,`uid`),
KEY `topicid_uid` (`topic_id`,`uid`),
KEY `post_time` (`post_time`),
KEY `topicid_postid_pid` (`topic_id`,`post_id`,`pid`),
FULLTEXT KEY `search` (`subject`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=648
et pour la table prefixe_post_text, tu as oublié la valeur de l'auto_increment et en plus ton champs post_id n'est plus auto incrémenté
CREATE TABLE IF NOT EXISTS `prefix_bb_posts_text` (
`post_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`post_text` text,
`post_edit` text,
PRIMARY KEY (`post_id`),
FULLTEXT KEY `search` (`post_text`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=648;
Pour ton problème a 0, je pense que MySQL rencontre une erreur, et il est incapable de transmettre les données pour le calcul des statistiques, regarde en mode debug dans la partie requête MySQL si une est en rouge lorsque tu te trouves sur la page index.php du forum