제목(wr_subject)를 안짤리게 하려면..
커스텀중에 요청이 있어서 확인해보니 제목이 길게 들어가야하는경우 (field type : text) 아래와같이 처리해야합니다. 머 다들 아실꺼 같아서..
1. 테이블 조정 : wr_subject 필드를 text로 수정
2. /bbs/write.php 수정
$subject = "";
if (isset($write['wr_subject'])) {
// 기존
// $subject = str_replace("\"", """, get_text(cut_str($write['wr_subject'], 255), 0));
// 변경
$subject = str_replace("\"", """, get_text($write['wr_subject']));
}
3. /bbs/write_update.php 수정
$wr_subject = '';
if (isset($_POST['wr_subject'])) {
// 기존
// $wr_subject = substr(trim($_POST['wr_subject']),0,255);
// 수정
$wr_subject = trim($_POST['wr_subject']);
$wr_subject = preg_replace("#[\\\]+$#", "", $wr_subject);
}
단지 255자의 제한을 없앤겁니다.
4. 스킨별 write.skin.php
<div id="autosave_wrapper" class="write_div">
<textarea id="wr_subject" required class="frm_input full_input required" style='width:100%; height:100px;' placeholder="제목" name="wr_subject"><?php echo $subject ?></textarea>
</div>
표준 게시판이며, 저는 이렇게 수정을 해서 처리했습니다.
혹시라도 도움이 되시길..
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4946 | node.js | 6년 전 | 2614 | ||
| 4945 | node.js | 6년 전 | 2386 | ||
| 4944 | node.js | 6년 전 | 2524 | ||
| 4943 | node.js | 6년 전 | 2276 | ||
| 4942 | node.js | 6년 전 | 2256 | ||
| 4941 | node.js | 6년 전 | 2723 | ||
| 4940 | node.js | 6년 전 | 1869 | ||
| 4939 | node.js | 6년 전 | 1996 | ||
| 4938 | node.js | 6년 전 | 2460 | ||
| 4937 | node.js | 6년 전 | 2253 | ||
| 4936 | node.js | 6년 전 | 2326 | ||
| 4935 | node.js | 6년 전 | 2139 | ||
| 4934 | node.js | 6년 전 | 2446 | ||
| 4933 | node.js | 6년 전 | 2250 | ||
| 4932 | node.js | 6년 전 | 2690 | ||
| 4931 | node.js | 6년 전 | 2073 | ||
| 4930 | node.js | 6년 전 | 2000 | ||
| 4929 | node.js | 6년 전 | 8635 | ||
| 4928 | node.js | 6년 전 | 3754 | ||
| 4927 | node.js | 6년 전 | 2397 | ||
| 4926 | node.js | 6년 전 | 2507 | ||
| 4925 | node.js | 6년 전 | 2087 | ||
| 4924 | node.js | 6년 전 | 3376 | ||
| 4923 | node.js | 6년 전 | 2225 | ||
| 4922 | node.js | 6년 전 | 1995 | ||
| 4921 | node.js | 6년 전 | 2049 | ||
| 4920 | node.js | 6년 전 | 1768 | ||
| 4919 | node.js | 6년 전 | 2034 | ||
| 4918 | node.js | 6년 전 | 2181 | ||
| 4917 | node.js | 6년 전 | 2398 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기