Add some debug information and see what you can find out... Like, for example, if the phrase is really defined, to start with..
PHP Code:
$floodcheck= $DB_site->query_first("SELECT comment_date AS lastcomdate FROM ".TABLE_PREFIX."journal_comments WHERE commenter_id=".$bbuserinfo['userid']." ORDER BY comment_date DESC");
echo "1";
if((TIMENOW - $floodcheck['lastcomdate'])<= $setting['floodint'])
{
echo "2";
$vbphrase['journalfloodcheck']= construct_phrase($vbphrase['journalfloodcheck'], $setting['floodint'], 'commenting');
echo "<br>" . $vbphrase['journalfloodcheck'];
eval(print_standard_error($vbphrase[journalfloodcheck], false));
}
exit;
Then again, you can just use a string instead of a phrase, unless you run a multilingual forum.