в index надо прописать, там где INDEXPAGE
дело в $indexpage=postify
во чо:
//getting index page
if(strpos(" ".template(\'index\'), "\\$indexpage")){
$query=$db->query("SELECT tid, fulltxt, allowhtml,bbcodeoff FROM $table_articles WHERE section=\'0\' AND alias=\'index\' ");
if($article = $db->fetch_array($query) ){
$articleid=$article[tid];
$db->query("UPDATE $table_articles SET views=views+1 WHERE tid=\'$articleid\' ");
$text=stripslashes($article[fulltxt]);
$indexpage=postify($text, $article[allowhtml], $article[bbcodeoff], $articleid, $sname, $articlealias, &$pageslink);
}
}