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
가을에 피는 국화는 첫 봄의 상징으로 사랑받는 개나리를 시샘하지 않는다. 역시 봄에 피는 복숭아꽃이나 벚꽃을 부러워하지 않는다. 한여름 붉은 장미가 필 때, 나는 왜 이렇게 다른 꽃보다 늦게 피나 한탄하지도 않는다. 그저 묵묵히 준비하며 내공을 쌓고 있을 뿐이다. 그러다가 매미소리 그치고 하늘이 높아지는 가을, 드디어 자기 차례가 돌아온 지금, 국화는 오랫동안 준비해온 그 은은한 향기와 자태를 마음껏 뽐내는 것이다. (한비야)