배추스킨 공부중인데요

배추스킨 공부중인데요

QA

배추스킨 공부중인데요

본문

이모티콘관련해서 보고있는데 이모티콘  mw.emoticon이 폴더에 있는 이모티콘을 가져와서 등록해라

onclick같은게 없는데 어떻게 작동이되는건가요?

view.comment.skin.php말고 다른곳과 연결이 되어있는건가요?

 


<?php
if (trim($mw_basic[cf_comment_write_notice])) { 
    $comment_write_notice = $mw_basic[cf_comment_write_notice];
    $comment_write_notice = addslashes($comment_write_notice);
    $comment_write_notice_html = $comment_write_notice;
    $comment_write_notice_html = nl2br($comment_write_notice_html);
    $comment_write_notice_html = preg_replace("/\n/", "", $comment_write_notice_html);
    $comment_write_notice_html = preg_replace("/\r/", "", $comment_write_notice_html);
    $comment_write_notice = preg_replace("/\n/", "\\n", $comment_write_notice);
    $comment_write_notice = preg_replace("/\r/", "", $comment_write_notice);
       
if (!is_g5()) {
?>
<script>
$(document).ready(function () {
<?php if ($is_comment_editor) { ?>
    <?php if ($mw_basic[cf_editor] == "cheditor") { ?>
    ed_wr_content.editArea.blur();
    ed_wr_content.editArea.onfocus = function () {
        var ed = ed_wr_content.outputBodyHTML();
        if (ed == "<?=$comment_write_notice_html?>") {
            ed_wr_content.doc.body.innerHTML = '';
        }
    }
    <?php } else if ($mw_basic[cf_editor] == 'geditor') { ?>
    ged = document.getElementById("geditor_wr_content_frame").contentWindow.document.body;
    ged.onfocus = function () {
        var ed = document.getElementById('wr_content').value;
        if (ed == "<?$comment_write_notice_html?>") {
            ged.innerHTML = '';
        }
    }
    <?php } ?>
<?php } else { ?>
    $("#wr_content").focus(function () {
        if ($("#wr_content").val() == "<?=$comment_write_notice?>") {
            $("#wr_content").val('');
        }
    });
<?php } ?>
});
</script>
<?php } } ?>     
 
 
 
<form name="fviewcomment" method="post" action="<?php echo $g4['bbs_path']?>/write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off" style="margin:0;" enctype="multipart/form-data">
  <div class="comment_function">
     <?php if ($mw_basic[cf_comment_emoticon] && !$is_comment_editor && !$write_error) {?>
    <button type="button" class="fa-button" name="btn_emoticon" style="*margin-right:10px;"><i class="fa fa-smile-o"></i> <span class="media-comment-button">이모티콘</span></button>
    <script>
    board_skin_path = '<?php echo $board_skin_path?>';
    bo_table = '<?php echo $bo_table?>';
    </script>
    <script src="<?php echo $board_skin_path?>/mw.js/mw.emoticon.js"></script>
    <?php } //comment_emoticon ?>
  
</form>
 

이 질문에 댓글 쓰기 :

답변 2

배추게시판을 보면 폴더들이 많고 코드가 많이 있습니다. 호출함수 lib파일이 있습니다.

 

그것때문에 자유자재로 사용할수 있습니다.

 

해당 게시판으로 이동후 게시판 관리자 페이지 말고 배추스킨 설정 페이지로 들어가시면 기본설정 화면에 이모티콘 사용관련 항목 있습니다

답변을 작성하시기 전에 로그인 해주세요.
전체 21
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT