| 원작자 | 얼터1 |
|---|---|
| 출처 | ![]() |
| 적용여부 | 적용 |
최신 댓글 위젯을 사용하게되면, 비밀글의 댓글이 노출되는 문제가 있지요.
비밀스런 질문에 비밀스런 답을 한 경우라면 당황스러울수 있는데...
목마른자가 우물을 판다고, 임시로 수정해봤습니다.
단점은, 비밀글의 댓글을 출력하지 않는만큼 최신댓글 숫자가 가변적으로 줄어든다는 것입니다.
그래도 노출되는 것보다야 괜찮겠지요?!
/modules/comment/comment.model.php 를 다음과 같이 수정합니다.
버전 1.2.6 기준으로 181줄째부터 입니다.
if($comment_list) {
if(!is_array($comment_list)) $comment_list = array($comment_list);
$comment_count = count($comment_list);
$oDocumentModel = &getModel('document'); // 추가
foreach($comment_list as $key => $attribute) {
if(!$attribute->comment_srl) continue;
$oDocument = $oDocumentModel->getDocument($attribute->document_srl); // 추가
if($oDocument->isSecret()) continue; // 추가
$oComment = null;
$oComment = new commentItem();
$oComment->setAttribute($attribute);
if($oComment->isSecret()) continue; // 추가
$result[$key] = $oComment;
}
$output->data = $result;
}



자료실
MH 슬라이딩 배너 0....
MH 위젯스타일
prettyphoto - 본문내...
SCM 플레이어 사용법
XE 1.4.4.2버전 이후에...
네비게이션 위젯
IE 버젼별로 css 따로...
문서보기 유저 지정
문하우스 게시판스킨 V...
내용글 출력시 주소창에...





