https://github.com/huhani/xe-comment-without-refresh
자꾸 중복 올리는 것 같아서 죄송합니다 ㅠㅠ
기능은
1. 새로고침 없는 댓글 작성
2. 새로고침 없는 댓글 수정
3. 새로고침 없는 댓글 삭제
4. 새로고침 없는 cpage 이동
5. 새로고침 없는 댓글 추천
6. 스티커 모듈 연동(스킨 설정에서 사용가능)
개발 환경은 php 5.6, XE 1.8.27, textarea에디터 사용을 기준으로 제작되었고 스티커 모듈 연동 기능은 모바일에선 권장하지 않습니다.
만약 잘 사용하신다면 깃허브에 별이라도 눌러주시면 감사하겠습니다 ㅠㅠ
board_extender 애드온 API:
1. document_srl과 comment_srl이 주어졌을 경우 자동으로 해당 댓글이 있는 cpage 찾아가기(전송값 중에 cpage값이 없어야 합니다):
http://domain_example.com/index.php?mid=testboard&document_srl=65535&comment_srl=2147483647&cpage_detect=1
2. 댓글 권환 체크하기(특히 비회원):
var params = { mid : current_mid, document_srl : document_srl, comment_srl : comment_srl }; exec_json('comment.getCommentGrant', params, function(ret_obj){ var error = ret_obj.error; var message = ret_obj.message; var commentGrant = ret_obj.grant; if(!commentGrant){ var password = prompt("비밀번호를 입력해주세요.", ""); if (password == null || password == ""){ return false; } });
테스트 : http://test.dnip.co.kr/index.php?mid=board&document_srl=418
+ 2016.12.31
스케치북 1.7.2로 업데이트 및 댓글단 ck에디터 호환작업 하였습니다.
+ 2017.01.31
XSS 취약점 수정 <http://xvezda.blog.me/220921753825>
전 아직 버튼도 제대로 이식을 못하고 있네요 여하튼 ㅠㅠ 좋은 자료 공유 해주셔서 감사합니다.