
04-01-2005, 06:14 PM
|
 |
|
|
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by tmhall
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?
|
That seems fine to me.! I don't see any reasons why it shouldn't work..
|