Quote:
Originally Posted by Paul M
Yes.
Find ;
PHP Code:
$commentdate= vbdate($vboptions['dateformat'], $reccom['comment_date'], 1);
$commenttime= vbdate($vboptions['timeformat'], $reccom['comment_date']);
eval('$reccombits .= "' . fetch_template('journal_recent_comments') . '";');
and replace with ;
PHP Code:
$commentdate= vbdate($vboptions['dateformat'], $reccom['comment_date'], 1);
$commenttime= vbdate($vboptions['timeformat'], $reccom['comment_date']);
require_once('./includes/functions_newpost.php');
$reccom['comment_text']= convert_url_to_bbcode($reccom['comment_text']);
require_once('./includes/functions_bbcodeparse.php');
$reccom['comment_text']= parse_bbcode2($reccom['comment_text'], 0, $setting['allow_imgcode'], $setting['allow_smilies'], $setting['allow_bbcode']);
eval('$reccombits .= "' . fetch_template('journal_recent_comments') . '";');
|
I finally got a chance to try this, but ran into a little problem. Part of OBK's import hack involves adding stripslashes to that block of code. So what I actually found was:
PHP Code:
$commentdate= vbdate($vboptions['dateformat'], $reccom['comment_date'], 1);
$commenttime= vbdate($vboptions['timeformat'], $reccom['comment_date']);
$reccom['comment_text']= unhtmlspecialchars(stripslashes($reccom['comment_text']));
$reccom['comment_title']= stripslashes($reccom['comment_title']);
eval('$reccombits .= "' . fetch_template('journal_recent_comments') . '";');
Which I changed to:
PHP Code:
$commentdate= vbdate($vboptions['dateformat'], $reccom['comment_date'], 1);
$commenttime= vbdate($vboptions['timeformat'], $reccom['comment_date']);
require_once('./includes/functions_newpost.php');
$reccom['comment_text']= convert_url_to_bbcode($reccom['comment_text']);
require_once('./includes/functions_bbcodeparse.php');
$reccom['comment_text']= parse_bbcode2($reccom['comment_text'], 0, $setting ['allow_imgcode'], $setting['allow_smilies'], $setting['allow_bbcode']);
$reccom['comment_text']= unhtmlspecialchars(stripslashes($reccom['comment_text']));
$reccom['comment_title']= stripslashes($reccom['comment_title']);
eval('$reccombits .= "' . fetch_template('journal_recent_comments') . '";');
See anything wrong with that?