I am running vb 2.2.5...
In the .txt file, it says to look for :
PHP Code:
return "</normalfont><blockquote><pre><smallfont>PHP:</smallfont><hr>$buffer<hr></pre></blockquote><normalfont>";
}
// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
$foundcode = str_replace("\\\"","\"",$foundcode);
return "</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>" . str_replace("<br>", "", str_replace("<br />", "", $foundcode) ) . "<hr></pre></blockquote><normalfont>";
but in my functions.php I have :
PHP Code:
return "</normalfont><blockquote><smallfont>PHP:</smallfont><hr><pre>$buffer</pre><hr><smallfont>(double click the code to copy it)</smallfont></blockquote><normalfont>";
}
// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
$foundcode = str_replace("\\\"","\"",$foundcode);
return "</normalfont><blockquote><smallfont>code:</smallfont><hr><pre>" . str_replace("<br>", "", str_replace("<br />", "", $foundcode) ) . "</pre><hr><smallfont>(double click the code to copy it)</smallfont></blockquote><normalfont>";
}
I tried replacing :
PHP Code:
return "</normalfont><blockquote><smallfont>PHP:</smallfont><hr><pre>$buffer</pre><hr><smallfont>(double click the code to copy it)</smallfont></blockquote><normalfont>";
}
// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
$foundcode = str_replace("\\\"","\"",$foundcode);
return "</normalfont><blockquote><smallfont>code:</smallfont><hr><pre>" . str_replace("<br>", "", str_replace("<br />", "", $foundcode) ) . "</pre><hr><smallfont>(double click the code to copy it)</smallfont></blockquote><normalfont>";
}
with :
PHP Code:
return "</normalfont><table border=\"0\" align=\"center\" width=\"90%\" cellpadding=\"3\" cellspacing=\"1\"><tr><td><smallfont><b>PHP:</b></smallfont></td></tr><tr><td style=\"BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #1D6AA0;\"><pre>" . $buffer . "</pre></td></tr></table><normalfont>";
}
// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
$foundcode = str_replace("\\\"","\"",$foundcode);
return "</normalfont><table border=\"0\" align=\"center\" width=\"90%\" cellpadding=\"3\" cellspacing=\"1\"><tr><td><smallfont><b>code:</b></smallfont></td></tr><tr><td style=\"BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #1D6AA0;\"><pre>" . $foundcode . "</pre></td></tr></table><normalfont>";
but I got a parse error...
What went wrong?
Satan