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
유쾌한 사람은 자기 일에만 몰두하는 사람이 아니다. 때론 자신의 일을 전부 제쳐놓고 타인의 문제에 전력을 쏟는 열정이 있는 사람이다. 타인에게 자신의 힘을 나누어주고 마음을 열어주는 것은 자신의 삶을 행복하게 만드는 방법이다.