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>";

관련자료

등록된 댓글이 없습니다.
Today's proverb
진정한 우정은 느리게 자라나는 나무와 같다. (조지워싱턴)