Dejar los 'code' originales
1. Abre:
/components/com_kunena/sources/interpreter.fireboard.inc.php
2. Cambia (linea 268):
case 'code':
$types = array ("php", "mysql", "html", "js", "javascript");
$code_start_html = '<div style="background: #EEEEEE; border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 700px; max-height: 300px; text-align: left;">';
if (in_array($tag->options["type"], $types)) {
$t_type = $tag->options["type"];
}
else {
$t_type = "php";
}
// make sure we show line breaks
$code_start_html .= "<code class=\"{$t_type}\">";
$code_end_html = '</code></div>';
// Preserve spaces and tabs in code
$codetext = str_replace("\t", "__FBTAB__", $between);
$codetext = htmlspecialchars($codetext, ENT_QUOTES);
$codetext = str_replace(" ", " ", $codetext);
$tag_new = $code_start_html. $codetext .$code_end_html;
#reenter regular replacements
$task->in_code = FALSE;
return TAGPARSER_RET_REPLACED;
break;
Por:
case 'code':
$types = array ("php", "mysql", "html", "js", "javascript");
$code_start_html = '<div class="fbcode"><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr><td><b>'._FB_MSG_CODE.'</b></td></tr><tr><td><hr />';
if (in_array($tag->options["type"], $types)) {
$t_type = $tag->options["type"];
}
else {
$t_type = "php";
}
// make sure we show line breaks
$code_start_html .= "<code class=\"{$t_type}\">";
$code_end_html = '</code><hr /></td></tr></table></div>';
// Preserve spaces and tabs in code
$codetext = str_replace("\t", "__FBTAB__", $between);
$codetext = htmlspecialchars($codetext, ENT_QUOTES);
$codetext = str_replace(" ", " ", $codetext);
$tag_new = $code_start_html. $codetext .$code_end_html;
#reenter regular replacements
$task->in_code = FALSE;
return TAGPARSER_RET_REPLACED;
break;