3일동안 안보기

정보 게시판

<포인트 안내>

최초가입시 1000점

각 게시판 글 작성시 100점

댓글 작성시 30점

서버팩 다운로드 -1000점

홍보게시글 -500점

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

페이지 정보

profile_image
작성자 altip
댓글 0건 조회 5,593회 작성일 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 69건 1 페이지
정보 게시판 목록
번호 제목 글쓴이 조회 추천 비추천 날짜
69 altip 852 0 0 01-25
68 아포칼립스 1508 0 0 12-17
67 altip 2011 0 0 10-10
66 altip 2344 0 0 08-14
65 lime 3010 0 0 07-26
64 아포칼립스 3134 0 0 06-25
63 아포칼립스 3393 0 0 06-25
62 물범 3709 0 0 06-18
61 아포칼립스 3779 0 0 04-12
60 아포칼립스 3530 0 0 04-09
59 아포칼립스 3496 0 0 04-04
58 아포칼립스 3508 0 0 04-04
57 아포칼립스 3475 0 0 03-29
56 아포칼립스 70537 0 0 03-16
55 아포칼립스 3779 0 0 03-16
54 아포칼립스 3729 0 0 03-16
53 altip 3642 0 0 03-14
52 아포칼립스 3419 0 0 03-12
51 altip 3452 0 0 03-10
50 altip 6667 0 0 01-14

검색


회원 로그인

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,136
어제
1,724
최대
5,025
전체
585,049