3일동안 안보기

정보 게시판

<포인트 안내>

최초가입시 1000점

각 게시판 글 작성시 100점

댓글 작성시 30점

서버팩 다운로드 -1000점

홍보게시글 -500점

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

페이지 정보

profile_image
작성자 altip
댓글 0건 조회 5,735회 작성일 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 453건 1 페이지
정보 게시판 목록
번호 제목 글쓴이 조회 추천 비추천 날짜
453 via 2 0 0 17:16
452 via 3 0 0 17:03
451 via 3 0 0 17:02
450 via 2 0 0 16:37
449 via 2 0 0 16:35
448 via 2 0 0 16:26
447 via 2 0 0 16:22
446 via 3 0 0 16:10
445 via 3 0 0 16:09
444 via 3 0 0 16:08
443 via 2 0 0 15:55
442 via 2 0 0 15:55
441 via 2 0 0 15:42
440 via 2 0 0 15:42
439 via 2 0 0 15:40
438 via 2 0 0 15:30
437 via 2 0 0 15:30
436 via 3 0 0 15:25
435 via 3 0 0 15:18
434 via 3 0 0 15:18

검색


회원 로그인

SNS

포인트랭킹

1 lime 3,880점
2 Jake 2,230점
3 b0yg7k 2,000점
4 7gzqb6 1,800점
5 하루 1,500점
6 ghoots 1,410점
7 지누 1,205점
8 물범 1,100점

접속자집계

오늘
1,739
어제
2,416
최대
5,025
전체
593,418