PHP & Others

그누보드 게시판 입력제한 늘리기

컨텐츠 정보

본문

 

/bbs/write_update.php

 

  

1$wr_content '';
2if (isset($_POST['wr_content'])) {
3    $wr_content substr(trim($_POST['wr_content']),0,65536); //여기를 변경
4    $wr_content = preg_replace("#[\\\]+$#"""$wr_content);
5}


$wr_content = substr(trim($_POST['wr_content']),0,65536); 
위 라인을 아래처럼 변경합니다
$wr_content = trim($_POST['wr_content']);


DB 해당 테이블의 wr_content 를 text 에서 mediumtext, longtext 등으로 변경합니다 

 

 

/lib/editor.lib.php

 

function editor_html($id, $content)

{

    //return "<textarea id=\"$id\" name=\"$id\" style=\"width:100%;\" maxlength=\"65536\">$content</textarea>";

    return "<textarea id=\"$id\" name=\"$id\" style=\"width:100%;\">$content</textarea>";

 

}






/plugin/editor/smarteditor2/editor.lib.php


//$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;height:300px\">$content</textarea>";

 

    $html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" style=\"width:100%;height:300px\">$content</textarea>";

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
이슬비가 내리고 있다. 당신은 밖에 나가서 우산을 편다. 그것으로 충분하다.“구질구질하게 또 비가 오는군!” 이런 말을 한들 무슨 소용이 있는가. 비도, 구름도, 바람도 결코 마음대로 되지 않는데 어째서 “비 한번 시원스럽게 내리는군”하고 말하지 못하는가. <<날마다 행복해지는 255가지 이야기>> (알랭)