This is temporalily fix before this issue will be solved:
line 18 - $pref was empty, adding as global helped.
global $sql, $ns, $pref;
replaced
//$text = preg_replace("/{(.*?)}/e", '$1', $NEWFORUMPOSTSTYLE_HEADER);
with
$var = array('TOTAL_TOPICS' => $TOTAL_TOPICS,
'TOTAL_REPLIES' => $TOTAL_REPLIES,
'TOTAL_VIEWS' => $TOTAL_VIEWS
);
$text .= e107::getParser()->simpleParse($NEWFORUMPOSTSTYLE_HEADER, $var);
and item:
//$text .= preg_replace("/{(.*?)}/e", '$1', $NEWFORUMPOSTSTYLE_MAIN);
$varmain = array(
'THREAD' => $THREAD,
'FORUM' => $FORUM,
'VIEWS' => $VIEWS,
'REPLIES' => $REPLIES,
);
$text .= e107::getParser()->simpleParse($NEWFORUMPOSTSTYLE_MAIN, $varmain );
footer:
//$text .= preg_replace("/{(.*?)}/e", '$1', $NEWFORUMPOSTSTYLE_FOOTER);
$text .= e107::getParser()->simpleParse($NEWFORUMPOSTSTYLE_FOOTER, $var);