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 <BR> (maked by nl2br() ) to html code.

I wont transform text by this functions but standard <PRE> isn't satisfacting me and i'm trying to put nl2br() somwhere to change enters (signs of noew line) to <BR>.

function codeConv($text$xcode 1$image 1){
        if(
$xcode != 0){
            
$patterns "/[code](.*)[/code]/esU";
            if (
$image != 0) {
                
// image allowed
                
                
$replacements "'<pre><div class="XoopsCode">'.MyTextSanitizer::codeSanitizer('$1').'</div></pre>'";

                
//$text =& $this->xoopsCodeDecode($text);
            
} else {
                
// image not allowed
                
                
$replacements "'<pre><div class="XoopsCode">'.MyTextSanitizer::codeSanitizer('$1', 0).'</div></pre>'";
                
                
//$text =& $this->xoopsCodeDecode($text, 0);
            
}
            
$text =  preg_replace($patterns$replacements$text);
        }
        return 
$text;
    }


Can anyone help me ?

Login

Who's Online

82 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 82


more...

Donat-O-Meter

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

Latest GitHub Commits