글쓰기에 내용을 부분을 여러게 만들수 없나요?? > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

글쓰기에 내용을 부분을 여러게 만들수 없나요?? 정보

글쓰기에 내용을 부분을 여러게 만들수 없나요??

본문

<? if ($is_dhtml_editor) { ?>
            <?=cheditor2('wr_98', $content);?>
        <? } else { ?>
        <table width=100% cellpadding=0 cellspacing=0>
        <tr>
            <td width=50% align=left valign=bottom>
                <span style="cursor: pointer;" onclick="textarea_decrease('wr_98', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_original('wr_98', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_increase('wr_98', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
            <td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
        </tr>
        </table>
        <textarea id="wr_98" name="wr_98" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
        <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_98', 'char_count');"<?}?>><?=$content?></textarea>
        <? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_98', 'char_count'); </script><?}?>
        <? } ?>

위와 같이

기본 wr_content 부분을 wr_98로 수정하고.
DB에도 필드 wr_98로 생성했는데 글쓰기는 하면 DB에 저장이 안되네요.

DB필드도 텍스트로 잘만들었고요.
  • 복사

댓글 전체

if ($is_dhtml_editor) {
    include_once("$g4[path]/lib/cheditor4.lib.php");
    echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
    echo cheditor1('wr_98', '100%', '250');
}

위 함수 말씀하시거조. 해봤으나 동일한 현상이 좀더 연구를.. 해봐야겠어요. 내용부분은 여러게 추가 하고 싶은데 쉽지가 안네요 ㅎㅎ
ㅇ ㅏ그리고 필드 추가 하셨을땐 업뎃스킨에....

$sql = "UPDATE $write_table
            SET wr_98 = '$wr_98'
            WHERE wr_id = '$wr_id' ";
sql_query($sql);

대충이정도...쑤셔 넣어줘야합니다~
© SIRSOFT
현재 페이지 제일 처음으로