1
Hello, I have two questions about modifications my Xoops
1. Where i can modify content of page
search.php2. Text between
code and
/code i changing by file
module.textsanitizer.php. How change functions to add function nl2br() but without changing
(maked by nl2br() ) to html code.
I wont transform text by this functions but standard
isn't satisfacting me and i'm trying to put nl2br() somwhere to change enters (signs of noew line) to
.
function codeConv($text, $xcode = 1, $image = 1){
if($xcode != 0){
$patterns = "/[code](.*)[/code]/esU";
if ($image != 0) {
// image allowed
$replacements = "'XoopsCode">'.MyTextSanitizer::codeSanitizer('$1').'
'";
//$text =& $this->xoopsCodeDecode($text);
} else {
// image not allowed
$replacements = "'XoopsCode">'.MyTextSanitizer::codeSanitizer('$1', 0).'
'";
//$text =& $this->xoopsCodeDecode($text, 0);
}
$text = preg_replace($patterns, $replacements, $text);
}
return $text;
}
Can anyone help me ?