검색을 해보시면 원하는 답을 찾을수도 있답니다.
팁관련 답변은 누구나 하실 수 있습니다.
0
조회 수 : 614 신고 : 0
추천수 10단위당 메달이 1개씩 노출되고, 추천수에 따라 배경색이 변하며, 일정수의 추천수를 받을시 아이콘이 붙게됩니다.
- 추천수 50개이상
- 추천수 30개이상
- 추천수 20개이상
- 추천수 10개이상
- 추천수 3개이상
댓글 '1'
http://www.xpressengine.com/17921850 글을 참고해보세요..
XE 1.4.0.5 기준으로
/modules/comment/comment.model.php 여시고
180~194 줄을 아래처럼 수정해 보세요.
$comment_list = $output->data;
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;
}