1
chetvictor
newBB, User text and HTML Help
  • 2004/12/17 4:49

  • chetvictor

  • Just popping in

  • Posts: 15

  • Since: 2004/11/21


Ok a few Problems here one i need to change the amount of text a user can put in the extra info box on there profile as i have it set up so they can add html problem is 255 charecters isnt much for any html. I have changed the number from 255 in the edit user php file to 9000

$edituser->setVar('user_sig'xoops_substr($user_sig0500));
        
$user_viewemail = (!empty($user_viewemail)) ? 0;
        
$edituser->setVar('user_viewemail'$user_viewemail);
        
$edituser->setVar('user_aim'$user_aim);
        
$edituser->setVar('user_yim'$user_yim);
        
$edituser->setVar('user_msnm'$user_msnm);
        if ( isset(
$password) && $password != '') {
            
$edituser->setVar('pass'md5($password));
        }
        
$attachsig = isset($attachsig) ? intval($attachsig) : 0;
        
$edituser->setVar('attachsig'$attachsig);
        
$edituser->setVar('timezone_offset'$timezone_offset);
        
$edituser->setVar('uorder'$uorder);
        
$edituser->setVar('umode'$umode);
        
$edituser->setVar('notify_method'$notify_method);
        
$edituser->setVar('notify_mode'$notify_mode);
        
$edituser->setVar('bio'xoops_substr($bio09000));


just to try it but no sucess also i turned on the html use for the userinf php but now it show line breaks in my forum axamples are below look at the signature at the bottom of the user page then look at the forum link and you can see.

User Info

Forum Topic

any light on this would be nice
Thanks
Chet

2
Draven
Re: newBB, User text and HTML Help
  • 2004/12/17 7:17

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


I believe the problem is that the text sanitizer that runs on that input does not allow HTML and there for "cleans" the text so that the HTML characters are removed. Also the sanitizer turns all \n (new line) to <BR>'s which adds the space.

Predator would be the best guy to talk to since Newbb is his baby. I haven't looked at the code much so I may be wrong, but I believe that is the problem you describe.

3
chetvictor
Re: newBB, User text and HTML Help
  • 2004/12/22 1:24

  • chetvictor

  • Just popping in

  • Posts: 15

  • Since: 2004/11/21


Thanks he fixed me up ...

Function displayTarea is used for the signature

// function &displayTarea(&$text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1)
 
in newbb/class/post.php around line 422:


 if (
$forumdata['allow_sig'] && ($this->getVar('attachsig') || $eachposter->attachsig())) {
                
$poster_sig $myts->displayTarea($eachposter->getVar("user_sig""N"), 011);
            }else 
$poster_sig '';


so change to 1,1,1


Figured i would post what we did so if others want to do it


Chet

Login

Who's Online

244 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter

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

Latest GitHub Commits