http://miniwini.com/miniwinis/bbs/index.php?bid=share&m=clip&mode=read&id=3012&p=1http://reedyfox.com/bbs/zboard.php?id=building&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&keyword=이모&select_arrange=headnum&desc=asc&no=35&read.html이 팁은 사용을 권하지 않습니다. 이 팁에 대한 오류는 이 곳에 나타나있습니다.
글 수정 시 이미지 태그와 변환 부분에서 글 자체가 지저분해지기 때문이죠.
그래서 이 팁이 필요하신 분은 아래 팁으로 바꿉니다.
위쯔님의 미니위니 게시물 입력툴을 다른 게시판에서도.. ver 1.0.0.1


### show/hide 스크립트 by 위쯔~ in http://miniwini.com [새창에서 열기]
### textarea 포커스해서 채워넣기 by 술도 in
http://suldo.net [새창에서 열기]
### 아이콘 캡쳐 및 소스 노가다 by 리디 -_-;;;

1. 스킨디렉의 view_comment.php 최상단에 다음을 넣는다.

<?php
$c_smile1 = "<img src=../2img/emo/smile1.gif border=0 align=absmiddle>";
$c_smile2 = "<img src=../2img/emo/smile2.gif border=0 align=absmiddle>";
$c_smile3 = "<img src=../2img/emo/smile3.gif border=0 align=absmiddle>";
$c_smile4 = "<img src=../2img/emo/smile4.gif border=0 align=absmiddle>";
$c_smile5 = "<img src=../2img/emo/smile5.gif border=0 align=absmiddle>";
$c_smile6 = "<img src=../2img/emo/smile6.gif border=0 align=absmiddle>";
$c_hand1 = "<img src=../2img/emo/hand1.gif border=0 align=absmiddle>";
$c_hand2 = "<img src=../2img/emo/hand2.gif border=0 align=absmiddle>";
$c_hand3 = "<img src=../2img/emo/hand3.gif border=0 align=absmiddle>";
$c_hand4 = "<img src=../2img/emo/hand4.gif border=0 align=absmiddle>";
$c_hand5 = "<img src=../2img/emo/hand5.gif border=0 align=absmiddle>";
$c_oops1 = "<img src=../2img/emo/oops1.gif border=0 align=absmiddle>";
$c_oops2 = "<img src=../2img/emo/oops2.gif border=0 align=absmiddle>";
$c_oops3 = "<img src=../2img/emo/oops3.gif border=0 align=absmiddle>";
$c_oops4 = "<img src=../2img/emo/oops4.gif border=0 align=absmiddle>";
$c_oops5 = "<img src=../2img/emo/oops5.gif border=0 align=absmiddle>";
$c_oops6 = "<img src=../2img/emo/oops6.gif border=0 align=absmiddle>";
$c_oops7 = "<img src=../2img/emo/oops7.gif border=0 align=absmiddle>";
$c_oops8 = "<img src=../2img/emo/oops8.gif border=0 align=absmiddle>";
$c_oops9 = "<img src=../2img/emo/oops9.gif border=0 align=absmiddle>";
$c_notgood1 = "<img src=../2img/emo/notgood1.gif border=0 align=absmiddle>";
$c_notgood2 = "<img src=../2img/emo/notgood2.gif border=0 align=absmiddle>";
$c_notgood3 = "<img src=../2img/emo/notgood3.gif border=0 align=absmiddle>";
$c_notgood4 = "<img src=../2img/emo/notgood4.gif border=0 align=absmiddle>";
$c_notgood5 = "<img src=../2img/emo/notgood5.gif border=0 align=absmiddle>";
$c_notgood6 = "<img src=../2img/emo/notgood6.gif border=0 align=absmiddle>";
$c_notgood7 = "<img src=../2img/emo/notgood7.gif border=0 align=absmiddle>";
$c_sick1 = "<img src=../2img/emo/sick1.gif border=0 align=absmiddle>";
$c_sick2 = "<img src=../2img/emo/sick2.gif border=0 align=absmiddle>";
$c_sick3 = "<img src=../2img/emo/sick3.gif border=0 align=absmiddle>";
$c_sick4 = "<img src=../2img/emo/sick4.gif border=0 align=absmiddle>";
$c_sick5 = "<img src=../2img/emo/sick5.gif border=0 align=absmiddle>";
$c_sick6 = "<img src=../2img/emo/sick6.gif border=0 align=absmiddle>";
$c_sick7 = "<img src=../2img/emo/sick7.gif border=0 align=absmiddle>";

$c_memo = str_replace("[[ 웃음]]" , $c_smile1 , $c_memo);
$c_memo = str_replace("[[ 씨익]]" , $c_smile2 , $c_memo);
$c_memo = str_replace("[[ 으힛]]" , $c_smile3 , $c_memo);
$c_memo = str_replace("[[ 윙크]]" , $c_smile4 , $c_memo);
$c_memo = str_replace("[[ 므흣]]" , $c_smile5 , $c_memo);
$c_memo = str_replace("[[ 메렁]]" , $c_smile6 , $c_memo);
$c_memo = str_replace("[[ 하이]]" , $c_hand1 , $c_memo);
$c_memo = str_replace("[[ 원츄]]" , $c_hand2 , $c_memo);
$c_memo = str_replace("[[ 비추]]" , $c_hand3 , $c_memo);
$c_memo = str_replace("[[ 헤헷]]" , $c_hand4 , $c_memo);
$c_memo = str_replace("[[ 무효]]" , $c_hand5 , $c_memo);
$c_memo = str_replace("[[ 벙뜸]]" , $c_oops1 , $c_memo);
$c_memo = str_replace("[[ 으에]]" , $c_oops2 , $c_memo);
$c_memo = str_replace("[[ 으으]]" , $c_oops3 , $c_memo);
$c_memo = str_replace("[[ 에혀]]" , $c_oops4 , $c_memo);
$c_memo = str_replace("[[ 부끄]]" , $c_oops5 , $c_memo);
$c_memo = str_replace("[[ 헉]]" , $c_oops6 , $c_memo);
$c_memo = str_replace("[[ 제발비밀]]" , $c_oops7 , $c_memo);
$c_memo = str_replace("[[ 기도]]" , $c_oops8 , $c_memo);
$c_memo = str_replace("[[ 잔다]]" , $c_oops9 , $c_memo);
$c_memo = str_replace("[[ 아니]]" , $c_notgood1 , $c_memo);
$c_memo = str_replace("[[ 뜨아]]" , $c_notgood2 , $c_memo);
$c_memo = str_replace("[[ 이게머여]]" , $c_notgood3 , $c_memo);
$c_memo = str_replace("[[ 얼었음]]" , $c_notgood4 , $c_memo);
$c_memo = str_replace("[[ 저것이]]" , $c_notgood5 , $c_memo);
$c_memo = str_replace("[[ 으이그]]" , $c_notgood6 , $c_memo);
$c_memo = str_replace("[[ 한판붙자]]" , $c_notgood7 , $c_memo);
$c_memo = str_replace("[[ 우울]]" , $c_sick1 , $c_memo);
$c_memo = str_replace("[[ 낭패]]" , $c_sick2 , $c_memo);
$c_memo = str_replace("[[ 엉엉]]" , $c_sick3 , $c_memo);
$c_memo = str_replace("[[ 열이펄펄]]" , $c_sick4 , $c_memo);
$c_memo = str_replace("[[ 우엑]]" , $c_sick5 , $c_memo);
$c_memo = str_replace("[[ 마스크]]" , $c_sick6 , $c_memo);
$c_memo = str_replace("[[ 취한다]]" , $c_sick7 , $c_memo);
?>



2. view_write_comment.php 의 맨위에 다음 스크립트를 넣고

<script language="JavaScript">
<!--
function AddChar(ch) {
        document.write.memo.value+=ch;
        document.write.memo.focus();
} //-->
</script>


적당한 곳에 다음을 넣는다. textarea 위나 아래가 좋을듯....


<a class=t7b_4a4d4a style='cursor:hand' onclick="if(MyMenu.style.display=='none'){MyMenu.style.display=''}else{MyMenu.style.display='none'}">Use Emoticons in Nate-on</a>
<!--이모티콘 시작-->
<span id=MyMenu style='line-height:150%;display:none;'>
<table width=100% border=0 cellpadding=0 cellspacing=3><tr><td>
<a href="JavaScript:onclick=AddChar('[[ 웃음]]');"><img src=../2img/emo/smile1.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 씨익]]');"><img src=../2img/emo/smile2.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 으힛]]');"><img src=../2img/emo/smile3.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 윙크]]');"><img src=../2img/emo/smile4.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 므흣]]');"><img src=../2img/emo/smile5.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 메렁]]');"><img src=../2img/emo/smile6.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 하이]]');"><img src=../2img/emo/hand1.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 원츄]]');"><img src=../2img/emo/hand2.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 비추]]');"><img src=../2img/emo/hand3.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 헤헷]]');"><img src=../2img/emo/hand4.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 무효]]');"><img src=../2img/emo/hand5.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 벙뜸]]');"><img src=../2img/emo/oops1.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 으에]]');"><img src=../2img/emo/oops2.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 으으]]');"><img src=../2img/emo/oops3.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 에혀]]');"><img src=../2img/emo/oops4.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 부끄]]');"><img src=../2img/emo/oops5.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 헉]]');"><img src=../2img/emo/oops6.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 제발비밀]]');"><img src=../2img/emo/oops7.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 기도]]');"><img src=../2img/emo/oops8.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 잔다]]');"><img src=../2img/emo/oops9.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 아니]]');"><img src=../2img/emo/notgood1.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 뜨아]]');"><img src=../2img/emo/notgood2.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 이게머여]]');"><img src=../2img/emo/notgood3.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 얼었음]]');"><img src=../2img/emo/notgood4.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 저것이]]');"><img src=../2img/emo/notgood5.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 으이그]]');"><img src=../2img/emo/notgood6.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 한판붙자]]');"><img src=../2img/emo/notgood7.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 우울]]');"><img src=../2img/emo/sick1.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 낭패]]');"><img src=../2img/emo/sick2.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 엉엉]]');"><img src=../2img/emo/sick3.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 열이펄펄]]');"><img src=../2img/emo/sick4.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 우엑]]');"><img src=../2img/emo/sick5.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 마스크]]');"><img src=../2img/emo/sick6.gif border=0 align=absmiddle></a>
<a href="JavaScript:onclick=AddChar('[[ 취한다]]');"><img src=../2img/emo/sick7.gif border=0 align=absmiddle></a>
</td></tr></table>
</span>


3. 위에서 지정된 경로는 자기 편할대로 바꾼다. 그 경로에 네이트온 이모티콘 이미지들을 왕창 풀어놓는다. 그리고 변환을 막기 위해 [[ 다음에 빈칸을 넣었으니까 실제로 적용할때는 빈칸을 제거하도록..;;;


4. 끝~

2번에서 다음 소스를 사용하면 커서가 위치한 곳에 이모티콘을 삽입할 수 있다.

http://reedyfox.com/bbs/zboard.php?id=qna&page=8&page_num=20&select_arrange=headnum&desc=&sn=off&ss=on&sc=on&keyword=&no=253&category= [새창에서 열기]

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기