1
przemeks
modifications
  • 2005/6/2 11:48

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


Hello, I have two questions about modifications my Xoops

1. Where i can modify content of page search.php

2. 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 ?

Login

Who's Online

177 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits