질문/조언팁/리소스 공유

eden 게시판 기준입니다

 

            </div>
            <input type="hidden" name="mid" value="{$module_infod}" />
            <input type="hidden" name="page" value="{$page}" />
            <input type="hidden" name="document_srl" value="{$comment->get('document_srl')}" />
            <input type="hidden" name="comment_srl" value="{$comment->get('comment_srl')}" />
          </form>

          <[email protected]>

                {@
                $args->comment_srl = $comment->comment_srl;
                $output = executeQuery('comment.getDeclaredComment', $args);
                $limit = 1;
                }

        <block cond="$output->data->declared_count>=$limit">
        <span style="color:red">[이 댓글은 누적된 신고로 블라인드 처리되었습니다]</span>
        </block>

        <block cond="$output->data->declared_count<=$limit">

          <div class="ed margin-bottom-xxsmall">
            <block cond="$comment->get('depth')">
              {@ $oComment = &getModel('comment');$comment_parent = $oComment->getComment($comment->parent_srl);}
              <span class="ed label-primary display-inline-block float-left margin-right-xsmall">@{$comment_parent->getNickName()}</span>
            </block>
            {$comment->getContent(false)}
          </div>

        </block>
                                                      

 

대충 이런식.

$limit = 1; 은 신고수로 알아서 수정하시면 됩니다.

글쓴이 도토리묵

profile
개인블로그: https://dtmk.tistory.com

서버에 요청 중입니다. 잠시만 기다려 주십시오...