XE 보드 모듈의 스킨 중 SketchBook5 에서 댓글(comment) 쓰기 권한을 가진 경우만 댓글을 표시하는 방법
.../sketchbook5/_read.html 파일을 수정함.
397 398 399 400 401 402 403 404 | <!--@else--> <!--// Comment Write : Top --> < include cond="$oDocument->allowComment() && !$mi->cmt_wrt_position" target="_comment_write.html" /> <!--// Comment List --> < div id = "cmtPosition" aria-live = "polite" >< include target = "_comment.html" /></ div > <!--// Comment Write : Bottom --> < include cond="$oDocument->allowComment() && $mi->cmt_wrt_position=='cmt_wrt_btm'" target="_comment_write.html" /> <!--@end--> |
아래와 같이 수정함.
398 399 | <!--// Comment Write : Top --> < include cond="$grant->write_comment && $oDocument->allowComment() && !$mi->cmt_wrt_position" target="_comment_write.html" /> |
400 401 | <!--// Comment List --> < div id = "cmtPosition" aria-live = "polite" >< include cond="$grant->write_comment" target="_comment.html" /></ div > |
402 403 | <!--// Comment Write : Bottom --> < include cond="$grant->write_comment && $oDocument->allowComment() && $mi->cmt_wrt_position=='cmt_wrt_btm'" target="_comment_write.html" /> |
- $grant->write_comment 댓글쓰기 권한이 있는 사람에게만 댓글이 나타남
- $grant->write_document 글쓰기 권한이 있는 사람에게만 댓글이 나타남
- $is_logged 로그인된 사용자에게만 댓글이 나타남