3일동안 안보기

정보 게시판

<포인트 안내>


그누보드의 댓글에도 스마트에디터2 적용하기

페이지 정보

profile_image
작성자 altip
댓글 0건 조회 34,350회 작성일 24-01-12 08:55

본문

1) 상단에... 


 

<?


$commnet_editor = true;

$is_dhtml_editor = true;

if($commnet_editor)

include_once(G5_EDITOR_LIB);

$editor_html = editor_html('wr_content', $content, $is_dhtml_editor);


?>


를 넣으세요...


 


2) $comment = $list[$i]['content']; 다음줄에...

 


아래의 코드를 추가하세요.


$comment = nl2br(stripslashes($list[$i]['wr_content'])); //댓글 태그적용


 


3) 


<span class="sound_only">내용</span>


 <?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>

 <?php

    if($commnet_editor)

    {

     echo $editor_html;

     }

    else

    {

    ?>


    <textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용" placeholder="댓글내용을 입력해주세요" 

    <?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>

    <?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>


    <?}?>


<script>


 


<span class="sound_only">내용</span> 과


<script> 사이에 위의 코드로 교체하세요...


 


4. function fviewcomment_submit(f) { 밑에 아래의 코드를 추가하세요.

    

    <?php echo get_editor_js('wr_content', $is_dhtml_editor); ?>

    <?php echo chk_editor_js('wr_content', $is_dhtml_editor); ?

추천0 비추천0

댓글목록

등록된 댓글이 없습니다.

Total 70건 1 페이지
  • RSS
정보 게시판 목록
번호 제목 글쓴이 조회 추천 비추천 날짜
70 altip 3711 0 0 03-11
69 altip 10251 0 0 01-25
68 아포칼립스 11661 0 0 12-17
67 altip 13212 0 0 10-10
66 altip 14222 0 0 08-14
65 lime 14716 0 0 07-26
64 아포칼립스 15086 0 0 06-25
63 아포칼립스 15127 0 0 06-25
62 물범 14682 0 0 06-18
61 아포칼립스 13685 0 0 04-12
60 아포칼립스 14381 0 0 04-09
59 아포칼립스 14402 0 0 04-04
58 아포칼립스 14331 0 0 04-04
57 아포칼립스 14355 0 0 03-29
56 아포칼립스 90473 0 0 03-16
55 아포칼립스 15152 0 0 03-16
54 아포칼립스 14398 0 0 03-16
53 altip 13986 0 0 03-14
52 아포칼립스 14350 0 0 03-12
51 altip 16966 0 0 03-10

검색


회원 로그인

SNS

포인트랭킹

1 lime 4,580점
2 Jake 2,230점
3 ghoots 1,610점
4 불금이다 1,500점
5 MapMC 1,500점
6 기사1 1,500점
7 하루 1,500점
8 지누 1,205점

검색랭킹

1 모드
2 포지
3 1
4 java new
5 -
6 crashed
7 오류코드
8 픽셀몬
9 AND
10 game

접속자집계

오늘
175
어제
3,518
최대
15,272
전체
2,224,249